Root commit.
This commit is contained in:
commit
7183fd6b99
21 changed files with 974 additions and 0 deletions
17
sb-backlight-update
Executable file
17
sb-backlight-update
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
|
||||
function send_notification() {
|
||||
brightness=$(printf "%.0f\n" $(brightnessctl i | grep -i current | awk '{print $4}' | sed 's/(//' | sed 's/)//'))
|
||||
dunstify -a "changebrightness" -u low -r "9992" -h int:value:"$brightness" "brightness: ${brightness}%" -t 2000
|
||||
}
|
||||
|
||||
case $1 in
|
||||
up)
|
||||
brightnessctl s +25 -q
|
||||
send_notification $1
|
||||
;;
|
||||
down)
|
||||
brightnessctl s 25- -q
|
||||
send_notification $1
|
||||
;;
|
||||
esac
|
Loading…
Add table
Add a link
Reference in a new issue