feat: added notifications & daemons + simplified naming
notifications are for `dunst` a notification handler for my setup I added volume, charging, battery, time, and brightness notifications
This commit is contained in:
parent
413b470d99
commit
9b374bb70d
11 changed files with 281 additions and 15 deletions
24
notifs/brightness
Executable file
24
notifs/brightness
Executable file
|
|
@ -0,0 +1,24 @@
|
|||
#!/bin/bash
|
||||
|
||||
CURRENT_BRIGHTNESS=$(xbacklight -get)
|
||||
|
||||
bright_inc() {
|
||||
dunstify "Increasing Brightness" "Current Brightness: ${CURRENT_BRIGHTNESS}%" -i "display-brightness-medium-symbolic" -t 5000 -r 9991
|
||||
}
|
||||
|
||||
bright_dec() {
|
||||
dunstify "Decreasing Brightness" "Current Brightness: ${CURRENT_BRIGHTNESS}%" -i "display-brightness-low-symbolic" -t 5000 -r 9991
|
||||
|
||||
}
|
||||
|
||||
while test $# -gt 0; do
|
||||
case "$1" in
|
||||
inc)
|
||||
bright_inc && exit 0
|
||||
;;
|
||||
|
||||
dec)
|
||||
bright_dec && exit 0
|
||||
;;
|
||||
esac
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue