From dc4a5461ab22148fdb02b11339539c72f3a978db Mon Sep 17 00:00:00 2001 From: Alexis Jhon Gaspar Date: Sat, 30 Sep 2023 21:57:09 +0800 Subject: [PATCH] Added restart dwm function to the shutdown script and made startup sounds mandatory --- desktop/startdwm | 1 - dwm-flexipatch/config.def.h | 1 + scripts/shutdown | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/desktop/startdwm b/desktop/startdwm index e8208cc..429a3ca 100755 --- a/desktop/startdwm +++ b/desktop/startdwm @@ -4,7 +4,6 @@ wal -R # could be changed picom -b # launches compositor /usr/local/bin/dwmblocks & # launches slstatus/dwmblocks /usr/bin/dunst & # launches dunst daemon -paplay /usr/share/sounds/Oxygen-Sys-Special.ogg # autoplay sound, optional nm-applet & # optional, launch network-manager applet /usr/local/bin/eww daemon & # launch eww in start up, assumes eww is copied to $PATH /usr/local/bin/eww open main & # make sure the config is copied diff --git a/dwm-flexipatch/config.def.h b/dwm-flexipatch/config.def.h index 436de2c..04960db 100644 --- a/dwm-flexipatch/config.def.h +++ b/dwm-flexipatch/config.def.h @@ -405,6 +405,7 @@ static const char *layoutmenu_cmd = "layoutmenu.sh"; #if COOL_AUTOSTART_PATCH static const char *const autostart[] = { + "paplay", "/usr/share/sounds/Oxygen-Sys-Special.ogg", NULL, NULL /* terminate */ }; #endif // COOL_AUTOSTART_PATCH diff --git a/scripts/shutdown b/scripts/shutdown index 78e4aaf..7f17e4a 100755 --- a/scripts/shutdown +++ b/scripts/shutdown @@ -6,6 +6,7 @@ cat <