diff --git a/scripts/idle.sh b/scripts/idle.sh index f0513dc..cae2d96 100755 --- a/scripts/idle.sh +++ b/scripts/idle.sh @@ -8,12 +8,12 @@ pkill swayidle swayidle -w \ timeout 300 \ "~/.scripts/wander.sh" \ - resume "~/.scripts/wander.sh" \ + resume 'brightnessctl -r' \ timeout 600 \ 'swaymsg "output * dpms off"' \ resume 'swaymsg "output * dpms on"' \ timeout 1200 \ 'systemctl suspend' \ - before-sleep 'swaymsg "output * dpms on"; swaylock -f --screenshots --clock --indicator --effect-blur 5x5' + before-sleep 'swaymsg "output * dpms on"; swaylock' # Screen needs to be turned back on or you will get a black screen after waking up again. diff --git a/scripts/notify.sh b/scripts/notify.sh index f396bc4..b98f0d2 100755 --- a/scripts/notify.sh +++ b/scripts/notify.sh @@ -18,7 +18,7 @@ while getopts ":bv" options; do value=$( brightnessctl | grep -o "[0-9]*%" ) title="Brightness: ${value}" timeout=2000 - class='top-center' + category='sysinfo' ;; v) # Get volume @@ -32,7 +32,7 @@ while getopts ":bv" options; do title="Volume: ${value:-'0%'}" timeout=2000 - class='top-center' + category='sysinfo' ;; *) panic @@ -60,7 +60,7 @@ fi # Send message notify-send "${title}" "${message}" \ -t "${timeout:=5000}" \ - -c "${class:=''}" \ + -c "${category:=''}" \ -h int:value:"${width:=0}" \ -h string:x-canonical-private-synchronous:byMe # Replace if previous still exists