Actually Stowing Files

This commit is contained in:
ayushDumasia 2024-09-18 00:20:46 +05:30
parent 0f42a6b9c3
commit 500aecaea1
752 changed files with 1 additions and 67593 deletions

View file

@ -1,22 +0,0 @@
#!/bin/sh
# Use brightnessctl to naturally adjust laptop screen brightness and send a notification
currentbrightness=$(brightnessctl -e4 -m | awk -F, '{print substr($4, 0, length($4)-1)}')
if [ "$currentbrightness" -lt 30 ] && [ "$1" = "down" ]; then exit 1; fi
send_notification() {
brightness=$(brightnessctl -e4 -m | awk -F, '{print substr($4, 0, length($4)-1)}')
dunstify -a "Backlight" -u low -r 9994 -h int:value:"$brightness" -i "brightness" " Brightness" -t 1000
}
case $1 in
up)
brightnessctl -e4 set 1%+
send_notification "$1"
;;
down)
brightnessctl -e4 set 1%-
send_notification "$1"
;;
esac