refactor(repo): most of these scripts are outdated, refactored desec
All checks were successful
/ test (push) Successful in 23s
All checks were successful
/ test (push) Successful in 23s
This commit is contained in:
parent
5b03adaaa9
commit
6682679493
18 changed files with 154 additions and 133 deletions
33
archived/notifs/brightness
Executable file
33
archived/notifs/brightness
Executable file
|
|
@ -0,0 +1,33 @@
|
|||
#!/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
|
||||
|
||||
}
|
||||
|
||||
keybind-func() {
|
||||
echo "$CURRENT_BRIGHTNESS"
|
||||
}
|
||||
|
||||
while test $# -gt 0; do
|
||||
case "$1" in
|
||||
inc)
|
||||
bright_inc && exit 0
|
||||
;;
|
||||
|
||||
dec)
|
||||
bright_dec && exit 0
|
||||
;;
|
||||
|
||||
keybind)
|
||||
keybind-func && exit 0
|
||||
;;
|
||||
|
||||
esac
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue