Multimonitor audio control.
This commit is contained in:
parent
52cf8a7385
commit
c6ce6ef251
3 changed files with 43 additions and 20 deletions
|
@ -37,6 +37,7 @@ onescreen() {
|
|||
postrun() {
|
||||
feh --no-fehbg --bg-scale ~/.local/share/wallpaper
|
||||
{ killall dunst ; setsid -f dunst ;} >/dev/null 2>&1 # Restart dunst to ensure proper location on screen
|
||||
kill -46 $(pidof dwmblocks)
|
||||
}
|
||||
|
||||
# Get all possible displays
|
||||
|
@ -47,7 +48,7 @@ screens=$(echo "$allposs" | awk '/ connected/ {print $1}')
|
|||
|
||||
# If there's only one screen
|
||||
[ "$(echo "$screens" | wc -l)" -lt 2 ] &&
|
||||
{ onescreen "$screens"; postrun; exit ;}
|
||||
{ onescreen "$screens"; postrun; notify-send "💻 Only one screen detected."; exit ;}
|
||||
|
||||
# Get user choice including both and manual selection:
|
||||
chosen=$(printf -- "home-1\\nhome-2\\n----\\n%s\\n----\\nmulti" "$screens" | rofi -dmenu -i -p "Select display arangement") &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue