Base scripts for Artix and startx config.
This commit is contained in:
1 parent
9d2999d5c0
commit
459bfff2ca
8 files changed
+218
No files matched your search
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -- /sys/class/backlight/*/
|
||||
|
||||
read -r curr_brightness <"${1%/}/brightness"
|
||||
read -r max_brightness <"${1%/}/max_brightness"
|
||||
|
||||
brightness_per=$((100 * curr_brightness / max_brightness))
|
||||
|
||||
printf "Bri:%d%%\n" "$brightness_per"
|
||||
Reference in new issue
Block a user