dunst aufrufe

This commit is contained in:
Michael Grote 2022-07-21 14:51:16 +02:00
parent 1661b10883
commit e7b9bbe54b
3 changed files with 11 additions and 4 deletions

View file

@ -47,5 +47,3 @@
foreground = colors.foreground foreground = colors.foreground
frame_color = "#FF8A00" frame_color = "#FF8A00"
timeout = 30 timeout = 30
highlight = #FFFFFF

View file

@ -5,5 +5,6 @@ then
i3-msg 'workspace 1; exec --no-startup-id /usr/local/bin/alacritty' i3-msg 'workspace 1; exec --no-startup-id /usr/local/bin/alacritty'
else else
# wenn alacritty schon läuft wechsle nur zu workspace 1 # wenn alacritty schon läuft wechsle nur zu workspace 1
dunstify -u low "alacritty is already running"
i3-msg 'workspace 1' i3-msg 'workspace 1'
fi fi

View file

@ -46,15 +46,23 @@ function display_off {
if [[ -n "$1" ]]; then if [[ -n "$1" ]]; then
case "$1" in case "$1" in
--reboot | -r) --reboot | -r)
sleep 3
dunstify -u critical "reboot"
reboot reboot
;; ;;
--shutdown | -s) --shutdown | -s)
sleep 3
dunstify -u critical "shutdown"
shutdown shutdown
;; ;;
--suspend | -sd) --suspend | -sd)
sleep 3
dunstify -u critical "suspend"
suspend suspend
;; ;;
--hibernate | -hb) --hibernate | -hb)
sleep 3
dunstify -u critical "hibernate"
hibernate hibernate
;; ;;
--help | -h) --help | -h)