You are not logged in.

#1 2014-07-05 14:10:20

Dragon707
Member
From: The Netherlands
Registered: 2013-06-04
Posts: 61
Website

[SOLVED] BSPWM & SXHKD moving between vrtdsktps based on mouse potitio

Hi,

I like to see a solution for the following situation; i have a triple monitor setup with on each monitor 4 virtual desktops. However, to switch to those desktops i have to use the MOD+1-4 for the first desktop, MOD+5-8 for the 2nd and for the third desktop i need the next keys.

I would like to only use the MOD+1-4, and just switch the desktop which is active. For example:
Mouse is on monitor 1: MOD+1-4 changes the workspaces on monitor 1
Mouse is on monitor 2: MOD+1-4 changes the workspaces on monitor 2
etc..

The current config i have (the default one):

super + {_,shift + }{1-9,0}
    bspc {desktop -f,window -d} ^{1-9,10}

is this possible to do, if so, which is a great way to do it smile ?

Answer:

bspc {desktop -f,window -d} focused:^{1-9,10}

Original subject: BSPWM and SXHKD moving between virtualdesktops based on mouse potition

Last edited by Dragon707 (2014-07-05 15:36:26)


ArchLinux is Awesome

GitHub   •   Dotfiles   •   Contact me   •   DELETE...!

Offline

#2 2014-07-05 14:31:57

o_caino
Member
Registered: 2013-06-06
Posts: 167

Re: [SOLVED] BSPWM & SXHKD moving between vrtdsktps based on mouse potitio

Take a look at the Desktop and Monitor selectors on the man page.

DESKTOP_SEL := <desktop_name>
                        | [MONITOR_SEL:]^<n>
                        | (CYCLE_DIR|last|[MONITOR_SEL:]focused|older|newer)[.oc
cupied|.free][.urgent][.local]

[...]

MONITOR_SEL := <monitor_name>
                        | ^<n>
                        | (DIR|CYCLE_DIR|last|primary|focused|older|newer)[.occupied|.free]

Notice the desktop selector [MONITOR_SEL:]^<n> and below.
I only have a single monitor, so this is all I can help wink

Last edited by o_caino (2014-07-05 14:32:40)

Offline

#3 2014-07-05 15:08:38

Dragon707
Member
From: The Netherlands
Registered: 2013-06-04
Posts: 61
Website

Re: [SOLVED] BSPWM & SXHKD moving between vrtdsktps based on mouse potitio

o_caino wrote:

Take a look at the Desktop and Monitor selectors on the man page.

DESKTOP_SEL := <desktop_name>
                        | [MONITOR_SEL:]^<n>
                        | (CYCLE_DIR|last|[MONITOR_SEL:]focused|older|newer)[.oc
cupied|.free][.urgent][.local]

[...]

MONITOR_SEL := <monitor_name>
                        | ^<n>
                        | (DIR|CYCLE_DIR|last|primary|focused|older|newer)[.occupied|.free]

Notice the desktop selector [MONITOR_SEL:]^<n> and below.
I only have a single monitor, so this is all I can help wink

Thanks for your reply!

However, ive tried the following, but it doesnt seems to work.

super + {_,shift + }{1-9,0}
    bspc monitor -focused {desktop -f,window -d} ^{1-9,10}

ArchLinux is Awesome

GitHub   •   Dotfiles   •   Contact me   •   DELETE...!

Offline

#4 2014-07-05 15:26:43

o_caino
Member
Registered: 2013-06-06
Posts: 167

Re: [SOLVED] BSPWM & SXHKD moving between vrtdsktps based on mouse potitio

I think it would be something like

bspc {desktop -f,window -d} focused:^{1-9,10}

Offline

#5 2014-07-05 15:34:41

Dragon707
Member
From: The Netherlands
Registered: 2013-06-04
Posts: 61
Website

Re: [SOLVED] BSPWM & SXHKD moving between vrtdsktps based on mouse potitio

o_caino wrote:

I think it would be something like

bspc {desktop -f,window -d} focused:^{1-9,10}

Thanks, it works!
I still dont get the syntax haha, time to mess around with it smile


ArchLinux is Awesome

GitHub   •   Dotfiles   •   Contact me   •   DELETE...!

Offline

Board footer

Powered by FluxBB