diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/.local/bin/bdown | 1 | ||||
-rwxr-xr-x | bin/.local/bin/bup | 1 | ||||
-rwxr-xr-x | bin/.local/bin/shut | 2 | ||||
-rwxr-xr-x | bin/.local/bin/temp | 2 |
4 files changed, 5 insertions, 1 deletions
diff --git a/bin/.local/bin/bdown b/bin/.local/bin/bdown new file mode 100755 index 0000000..253666c --- /dev/null +++ b/bin/.local/bin/bdown | |||
@@ -0,0 +1 @@ | |||
for f in /sys/class/backlight/*; do echo $(($(<$f/brightness)-5*$(<$f/max_brightness)/100)) > $f/brightness; done | |||
diff --git a/bin/.local/bin/bup b/bin/.local/bin/bup new file mode 100755 index 0000000..d7c55c3 --- /dev/null +++ b/bin/.local/bin/bup | |||
@@ -0,0 +1 @@ | |||
for f in /sys/class/backlight/*; do echo $(($(<$f/brightness)+5*$(<$f/max_brightness)/100)) > $f/brightness; done | |||
diff --git a/bin/.local/bin/shut b/bin/.local/bin/shut index 76a7bd0..9e560f8 100755 --- a/bin/.local/bin/shut +++ b/bin/.local/bin/shut | |||
@@ -5,7 +5,7 @@ RET=$(echo -e "shutdown\nreboot\nsleep\nlock\ncancel" | dmenu -l 5 -p "Sayonara" | |||
5 | case $RET in | 5 | case $RET in |
6 | shutdown) doas poweroff ;; | 6 | shutdown) doas poweroff ;; |
7 | reboot) doas reboot ;; | 7 | reboot) doas reboot ;; |
8 | sleep) xset s activate & sudo zzz ;; | 8 | sleep) xset s activate & sudo zzz;; |
9 | lock) xset s activate ;; | 9 | lock) xset s activate ;; |
10 | *) ;; | 10 | *) ;; |
11 | esac | 11 | esac |
diff --git a/bin/.local/bin/temp b/bin/.local/bin/temp new file mode 100755 index 0000000..fec8439 --- /dev/null +++ b/bin/.local/bin/temp | |||
@@ -0,0 +1,2 @@ | |||
1 | #!/bin/bash | ||
2 | paste <(cat /sys/class/thermal/thermal_zone*/type) <(cat /sys/class/thermal/thermal_zone*/temp) | column -s $'\t' -t | sed 's/\(.\)..$/.\1°C/' | ||