From a22ebaff2ef77453b95c6b1076fefb7407eae7fb Mon Sep 17 00:00:00 2001 From: self Date: Mon, 19 Sep 2022 11:36:53 +0100 Subject: Check dunst/dwmblocks aren't running before start --- dwm/autostart_blocking_sah.sh | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'dwm') diff --git a/dwm/autostart_blocking_sah.sh b/dwm/autostart_blocking_sah.sh index 1776129..e1bd901 100755 --- a/dwm/autostart_blocking_sah.sh +++ b/dwm/autostart_blocking_sah.sh @@ -1,9 +1,18 @@ #!/bin/sh -feh --bg-scale $(shuf -n1 -e ~/bgs/*) --no-fehbg -dwmblocks & +feh --bg-scale "$(shuf -n1 -e ~/bgs/*)" --no-fehbg +if ! pgrep dwmblocks >/dev/null ; then + dwmblocks & +fi + alacritty & setxkbmap -option caps:swapescape # Notifications -dunst & + +if ! pgrep dunst >/dev/null ; then + dunst & +fi + + + -- cgit v1.2.1