Fixed system notifications
This commit is contained in:
parent
312d3521d6
commit
85cc441958
2 changed files with 5 additions and 5 deletions
|
@ -8,12 +8,12 @@ pkill swayidle
|
||||||
swayidle -w \
|
swayidle -w \
|
||||||
timeout 300 \
|
timeout 300 \
|
||||||
"~/.scripts/wander.sh" \
|
"~/.scripts/wander.sh" \
|
||||||
resume "~/.scripts/wander.sh" \
|
resume 'brightnessctl -r' \
|
||||||
timeout 600 \
|
timeout 600 \
|
||||||
'swaymsg "output * dpms off"' \
|
'swaymsg "output * dpms off"' \
|
||||||
resume 'swaymsg "output * dpms on"' \
|
resume 'swaymsg "output * dpms on"' \
|
||||||
timeout 1200 \
|
timeout 1200 \
|
||||||
'systemctl suspend' \
|
'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.
|
# Screen needs to be turned back on or you will get a black screen after waking up again.
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ while getopts ":bv" options; do
|
||||||
value=$( brightnessctl | grep -o "[0-9]*%" )
|
value=$( brightnessctl | grep -o "[0-9]*%" )
|
||||||
title="Brightness: ${value}"
|
title="Brightness: ${value}"
|
||||||
timeout=2000
|
timeout=2000
|
||||||
class='top-center'
|
category='sysinfo'
|
||||||
;;
|
;;
|
||||||
v)
|
v)
|
||||||
# Get volume
|
# Get volume
|
||||||
|
@ -32,7 +32,7 @@ while getopts ":bv" options; do
|
||||||
|
|
||||||
title="Volume: ${value:-'0%'}"
|
title="Volume: ${value:-'0%'}"
|
||||||
timeout=2000
|
timeout=2000
|
||||||
class='top-center'
|
category='sysinfo'
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
panic
|
panic
|
||||||
|
@ -60,7 +60,7 @@ fi
|
||||||
# Send message
|
# Send message
|
||||||
notify-send "${title}" "${message}" \
|
notify-send "${title}" "${message}" \
|
||||||
-t "${timeout:=5000}" \
|
-t "${timeout:=5000}" \
|
||||||
-c "${class:=''}" \
|
-c "${category:=''}" \
|
||||||
-h int:value:"${width:=0}" \
|
-h int:value:"${width:=0}" \
|
||||||
-h string:x-canonical-private-synchronous:byMe # Replace if previous still exists
|
-h string:x-canonical-private-synchronous:byMe # Replace if previous still exists
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue