From e7b9bbe54b9900a7e6754b0048af6fd7d189e1bf Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Thu, 21 Jul 2022 14:51:16 +0200 Subject: [PATCH] dunst aufrufe --- dunstrc | 6 ++---- scripts/i3/start_alacritty.sh | 1 + scripts/pwr.sh | 8 ++++++++ 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/dunstrc b/dunstrc index 7017d41..a50a8ff 100644 --- a/dunstrc +++ b/dunstrc @@ -4,7 +4,7 @@ [global] # funktioniert erst ab 1.6.0 - gaps = true + gaps = true gap_size = 10 ##### monitor = 0 @@ -20,7 +20,7 @@ idle_threshold = 20 mouse_right_click = close_all - + font = pango:monospace 8 alignment = left @@ -47,5 +47,3 @@ foreground = colors.foreground frame_color = "#FF8A00" timeout = 30 - highlight = #FFFFFF - diff --git a/scripts/i3/start_alacritty.sh b/scripts/i3/start_alacritty.sh index 03ebf2f..ea03d3f 100755 --- a/scripts/i3/start_alacritty.sh +++ b/scripts/i3/start_alacritty.sh @@ -5,5 +5,6 @@ then i3-msg 'workspace 1; exec --no-startup-id /usr/local/bin/alacritty' else # wenn alacritty schon läuft wechsle nur zu workspace 1 + dunstify -u low "alacritty is already running" i3-msg 'workspace 1' fi diff --git a/scripts/pwr.sh b/scripts/pwr.sh index 0186080..8e59cd5 100755 --- a/scripts/pwr.sh +++ b/scripts/pwr.sh @@ -46,15 +46,23 @@ function display_off { if [[ -n "$1" ]]; then case "$1" in --reboot | -r) + sleep 3 + dunstify -u critical "reboot" reboot ;; --shutdown | -s) + sleep 3 + dunstify -u critical "shutdown" shutdown ;; --suspend | -sd) + sleep 3 + dunstify -u critical "suspend" suspend ;; --hibernate | -hb) + sleep 3 + dunstify -u critical "hibernate" hibernate ;; --help | -h)