bspwm icon indicating copy to clipboard operation
bspwm copied to clipboard

Automatically move node to desktop

Open BigfootN opened this issue 7 years ago • 7 comments

Hello,

I am trying to add the following rule in my bspwmrc:

bspc rule -a spotify desktop=music

Unfortunately when opening spotify, it opens on the current desktop, not the music desktop.

My bspwm version is the following: 0.9.7.

Thank you very much in advance for any help.

BigfootN avatar May 20 '19 13:05 BigfootN

The syntax:

bspc rule -a (<class_name>|*)[:(<instance_name>|*)] desktop=music

I believe spotify's <class_name> is "Spotify", not "spotify". You can find out with xprop | grep WM_CLASS.

So this will probably fix:

bspc rule -a Spotify desktop=music

mdutra avatar May 20 '19 17:05 mdutra

Thank you for your response.

I tried your solution but unfortunately it still doesn't work.

And xprop | grep WM_CLASS returns:

WM_CLASS(STRING) = "spotify", "Spotify"

Thank you again in advance for any help.

BigfootN avatar May 20 '19 18:05 BigfootN

No problem.

Run this command to see if it prints your desktop name "music" (all lowercase):

bspc query -D --names

mdutra avatar May 21 '19 02:05 mdutra

bspc query -D --names does return music in the list.

Thank you again in advance for any help.

BigfootN avatar May 21 '19 09:05 BigfootN

It seems to be a problem with Spotify as mentioned here #291.

mdutra avatar May 21 '19 18:05 mdutra

This is, indeed, a duplicate of #291.

baskerville avatar May 22 '19 07:05 baskerville

Thank you for your precious help.

BigfootN avatar May 22 '19 12:05 BigfootN