Hello,
I have it working to the point that I have picture on all monitors and polybar is present on each.
But I can only switch workspace/desktop with super + number on one monitor.
Is there a way to make it switch on focused monitor?
Or set it ctrl + number for left monitor, super + number for middle and alt + number for right?
Thats how I have it in sway right now.
I have this in bspwmrc:
bspc monitor DP1-2 -d I II III IV V VI VII VIII IX X
bspc monitor DP2-1 -d I II III IV V VI VII VIII IX X
bspc monitor DP2-2 -d I II III IV V VI VII VIII IX X
I think the issue with what you are trying to do would be defining the βfocused monitorβ. I donβt know of a way to bring whatever desktop you choose to the current active monitor (there could be a way though, Iβm certainly not a pro). There are certainly set ups where you could have specific desktops on specific monitors though and the moving through those with the set shortcuts would also move you around to different monitors. Hopefully this helps some and if not we can wait for one of the real pros to chime in.
Thought I should answer a bit of my own question.
I have now manage to get it to switch on focused monitor using super + number.
I can also manage to get it to send to other workspace on focused monitor.
What does not work yet is sending to other montior.
This is what I changed so far:
super + {_,shift + }{1-9,0}
bspc {desktop -f,node -d} '^{1-9,10}'
To:
super + {_,shift + }{1-9,0}
107 bspc {desktop -f,node -d} focused:'^{1-9,10}'
Hi guys, this makes it more fun with multiple-monitors
focus or send to the given desktop
{alt,ctrl,super + shift} + {1-9,0}
{ bspc desktop --focus
, bspc desktop --swap
, bspc node --to-desktop
} {I,II,III,IV,V,VI,VII,VIII,IX,X}
and
keep bspwm monitors synced
ctrl + alt + Right
bspc monitor -f DP-0 ; bspc desktop -f next ; bspc monitor -f HDMI-0 ; bspc desktop -f next
ctrl + alt + Left
bspc monitor -f DP-0 ; bspc desktop -f prev; bspc monitor -f HDMI-0 ; bspc desktop -f prev
Hi guys check out this script it works great took me a while to build and test it but works really great !
#!/bin/sh
#this script swaps 7 desktops of the first en second monitor and also swaps their names.
src_desktop_name=β$(bspc query -D -d β^1:^1β --names)β || exit 1
dst_desktop_name=β$(bspc query -D -d β^2:^1β --names)β || exit 1
bspc desktop β^1:^1β -n β$dst_desktop_nameβ -s β^2:^1β
bspc desktop β^1:^1β -n β$src_desktop_nameβ
src_desktop_name=β$(bspc query -D -d β^1:^2β --names)β || exit 1
dst_desktop_name=β$(bspc query -D -d β^2:^2β --names)β || exit 1
bspc desktop β^1:^2β -n β$dst_desktop_nameβ -s β^2:^2β
bspc desktop β^1:^2β -n β$src_desktop_nameβ
src_desktop_name=β$(bspc query -D -d β^1:^3β --names)β || exit 1
dst_desktop_name=β$(bspc query -D -d β^2:^3β --names)β || exit 1
bspc desktop β^1:^3β -n β$dst_desktop_nameβ -s β^2:^3β
bspc desktop β^1:^3β -n β$src_desktop_nameβ
src_desktop_name=β$(bspc query -D -d β^1:^4β --names)β || exit 1
dst_desktop_name=β$(bspc query -D -d β^2:^4β --names)β || exit 1
bspc desktop β^1:^4β -n β$dst_desktop_nameβ -s β^2:^4β
bspc desktop β^1:^4β -n β$src_desktop_nameβ
src_desktop_name=β$(bspc query -D -d β^1:^5β --names)β || exit 1
dst_desktop_name=β$(bspc query -D -d β^2:^5β --names)β || exit 1
bspc desktop β^1:^5β -n β$dst_desktop_nameβ -s β^2:^5β
bspc desktop β^1:^5β -n β$src_desktop_nameβ
src_desktop_name=β$(bspc query -D -d β^1:^6β --names)β || exit 1
dst_desktop_name=β$(bspc query -D -d β^2:^6β --names)β || exit 1
bspc desktop β^1:^6β -n β$dst_desktop_nameβ -s β^2:^6β
bspc desktop β^1:^6β -n β$src_desktop_nameβ
src_desktop_name=β$(bspc query -D -d β^1:^7β --names)β || exit 1
dst_desktop_name=β$(bspc query -D -d β^2:^7β --names)β || exit 1
bspc desktop β^1:^7β -n β$dst_desktop_nameβ -s β^2:^7β
bspc desktop β^1:^7β -n β$src_desktop_nameβ
Made the script with love hope you guys want to try it out
3 Likes
Hi Guys if you divide all 7 scripts in each of its own bash file itβs even works better
I have it like this in my sxhkdrc file
ctrl + alt + 1
~/.config/bspwm/scripts/swappy1.sh
ctrl + alt + 2
~/.config/bspwm/scripts/swappy2.sh
ctrl + alt + 3
~/.config/bspwm/scripts/swappy3.sh
ctrl + alt + 4
~/.config/bspwm/scripts/swappy4.sh
ctrl + alt + 5
~/.config/bspwm/scripts/swappy5.sh
ctrl + alt + 6
~/.config/bspwm/scripts/swappy6.sh
ctrl + alt + 7
~/.config/bspwm/scripts/swappy7.sh
I did call it swappy just to keep it short