diff --git a/.config/X11/xprofile b/.config/X11/xprofile index 7c66c5f..120282d 100644 --- a/.config/X11/xprofile +++ b/.config/X11/xprofile @@ -10,7 +10,7 @@ redshift & dunst &> /dev/null & #temp fix gentoo-pipewire-launcher && wpctl set-volume @DEFAULT_AUDIO_SINK@ 50% & # 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 & sbacklight set 3 & setbg & 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 ;;