Merge branch 'dev' into venus

mpd: fix check for existing instance
scripts: fix displayselect layout selection
This commit is contained in:
David JULIEN 2022-11-19 19:16:04 +01:00
commit 6332ebd1da
2 changed files with 2 additions and 2 deletions

View File

@ -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 &

View File

@ -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 ;;