From 296518e619ee39a4c5599cf0474a23d484a01d90 Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Mon, 14 Nov 2022 11:06:51 +0100 Subject: [PATCH 1/2] [mpd] fix: checking for existing instance --- .config/X11/xprofile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/X11/xprofile b/.config/X11/xprofile index 1231896..a6d14fd 100644 --- a/.config/X11/xprofile +++ b/.config/X11/xprofile @@ -9,7 +9,7 @@ xss-lock -- slock & redshift & dunst &> /dev/null & #temp fix # MPD daemon start (if no other user instance exists) -[ ! -s "$XDG_CONFIG_HOME/mpd/pid" ] && mpd +[ -z "$(pgrep -fx mpd)" ] && mpd [ -z "$(pgrep -f sb-mpdup)" ] && sb-mpdup & pulsemixer --set-volume 50 sbacklight set 3 & From 1d9fc97dcf5404f6ff2e254cf49545e89b9f9c36 Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Thu, 17 Nov 2022 18:15:18 +0100 Subject: [PATCH 2/2] [scripts] fix: displayselect layout selection --- .local/bin/displayselect | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/displayselect b/.local/bin/displayselect index aa467aa..3c58a34 100755 --- a/.local/bin/displayselect +++ b/.local/bin/displayselect @@ -78,7 +78,7 @@ allposs=$(xrandr -q | grep -w "connected") screens=$(echo "$allposs" | awk '{print $1}') # Get user choice including multi-monitor and manual selection: -chosen=$(printf "default\\n\\nmulti-monitor\\n%s\\nmanual selection" "$screens" | dmenu -i -p "Select display arangement:") && +chosen=$(printf "default\\nmulti-monitor\\n%s\\nmanual selection" "$screens" | dmenu -i -p "Select display arangement:") && case "$chosen" in "default") default ;; "manual selection") arandr ; exit ;;