From 98c5d04bb264cc903b935897b2188d8f2be4c7a1 Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Wed, 12 Dec 2018 14:45:10 +0100 Subject: i3blocks modules. --- i3blocks/i3brightness.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 i3blocks/i3brightness.sh (limited to 'i3blocks/i3brightness.sh') diff --git a/i3blocks/i3brightness.sh b/i3blocks/i3brightness.sh new file mode 100755 index 0000000..0347ae6 --- /dev/null +++ b/i3blocks/i3brightness.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +value=$(cat /sys/class/backlight/intel_backlight/brightness) +max=$(cat /sys/class/backlight/intel_backlight/max_brightness) +echo "☀️$(($(($value*100))/$max))%" -- cgit v1.2.1