feat: huge update
This commit is contained in:
parent
9c621760cf
commit
757b759b4a
47 changed files with 221 additions and 286 deletions
|
|
@ -17,8 +17,6 @@ function set_light() {
|
|||
DIRS=(/sys/class/backlight/*)
|
||||
CUR="$(get_current "${DIRS[0]}")"
|
||||
|
||||
echo "$CUR"
|
||||
echo "\$(($CUR + $1 - $CUR % $1 + $CUR % $1 / $1 * $1))"
|
||||
case "${1:0:1}" in
|
||||
'') echo "$CUR"; exit ;;
|
||||
'+'|'-') CUR="$(($CUR + $1 - $CUR % $1 + $CUR % $1 * 10 / $1 / 5 * $1))" ;;
|
||||
|
|
@ -32,6 +30,3 @@ echo "$CUR"
|
|||
for d in "${DIRS[@]}"; do
|
||||
set_light "$d"
|
||||
done
|
||||
|
||||
notify-send -t 1000 -u low -i display-brightness-symbolic \
|
||||
-h string:synchronous:light -h int:value:"$CUR" "$CUR%"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue