i3 assign spotify to workspace
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
As the title suggests I'm trying to assign Spotify to a specific workspace but with no luck.
My i3 config file looks like this
#Startup-programs
exec firefox
exec spotify
assign [class="Spotify"] $ws4
assign [class="Firefox"] $ws2
xprop
on Spotify gives me this output
_NET_WM_ICON(CARDINAL) =
WM_CLASS(STRING) = "spotify", "Spotify"
WM_NAME(STRING) = "Spotify"
_NET_WM_NAME(UTF8_STRING) = "Spotify"
_NET_WM_DESKTOP(CARDINAL) = 0
WM_STATE(WM_STATE):
window state: Normal
icon window: 0x0
XdndProxy(WINDOW): window id # 0x1a00002
WM_NORMAL_HINTS(WM_SIZE_HINTS):
program specified location: 0, 0
window gravity: Static
_NET_WM_PID(CARDINAL) = 27058
WM_LOCALE_NAME(STRING) = "it_IT.UTF-8"
WM_CLIENT_MACHINE(STRING) = "placobravo"
WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, _NET_WM_PING
At startup both firefox and spotify loads, but only firefox gets placed in its right workspace, and I really can't get what's going on since I'm using the exactly same syntax. I already tried using a different workspace but it doesn't work.
After a bit more of searching I've found a solution in another post
https://github.com/i3/i3/issues/2060
Quite strange that I didn't find this answer before, even though I searched a lot. Anyway, I ended up using
for_window [class="Spotify"] move to workspace $ws4
This solved the problem!
xorg i3
add a comment |Â
up vote
1
down vote
favorite
As the title suggests I'm trying to assign Spotify to a specific workspace but with no luck.
My i3 config file looks like this
#Startup-programs
exec firefox
exec spotify
assign [class="Spotify"] $ws4
assign [class="Firefox"] $ws2
xprop
on Spotify gives me this output
_NET_WM_ICON(CARDINAL) =
WM_CLASS(STRING) = "spotify", "Spotify"
WM_NAME(STRING) = "Spotify"
_NET_WM_NAME(UTF8_STRING) = "Spotify"
_NET_WM_DESKTOP(CARDINAL) = 0
WM_STATE(WM_STATE):
window state: Normal
icon window: 0x0
XdndProxy(WINDOW): window id # 0x1a00002
WM_NORMAL_HINTS(WM_SIZE_HINTS):
program specified location: 0, 0
window gravity: Static
_NET_WM_PID(CARDINAL) = 27058
WM_LOCALE_NAME(STRING) = "it_IT.UTF-8"
WM_CLIENT_MACHINE(STRING) = "placobravo"
WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, _NET_WM_PING
At startup both firefox and spotify loads, but only firefox gets placed in its right workspace, and I really can't get what's going on since I'm using the exactly same syntax. I already tried using a different workspace but it doesn't work.
After a bit more of searching I've found a solution in another post
https://github.com/i3/i3/issues/2060
Quite strange that I didn't find this answer before, even though I searched a lot. Anyway, I ended up using
for_window [class="Spotify"] move to workspace $ws4
This solved the problem!
xorg i3
You could try using[instance="spotify"]
instead. It might be that the class name "Spotify" does not get assigned until after the window was already created.
â Adaephon
Jun 7 at 6:45
This didnt work, but I found a solution. I've updated the post
â Placobravo
Jun 7 at 9:33
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
As the title suggests I'm trying to assign Spotify to a specific workspace but with no luck.
My i3 config file looks like this
#Startup-programs
exec firefox
exec spotify
assign [class="Spotify"] $ws4
assign [class="Firefox"] $ws2
xprop
on Spotify gives me this output
_NET_WM_ICON(CARDINAL) =
WM_CLASS(STRING) = "spotify", "Spotify"
WM_NAME(STRING) = "Spotify"
_NET_WM_NAME(UTF8_STRING) = "Spotify"
_NET_WM_DESKTOP(CARDINAL) = 0
WM_STATE(WM_STATE):
window state: Normal
icon window: 0x0
XdndProxy(WINDOW): window id # 0x1a00002
WM_NORMAL_HINTS(WM_SIZE_HINTS):
program specified location: 0, 0
window gravity: Static
_NET_WM_PID(CARDINAL) = 27058
WM_LOCALE_NAME(STRING) = "it_IT.UTF-8"
WM_CLIENT_MACHINE(STRING) = "placobravo"
WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, _NET_WM_PING
At startup both firefox and spotify loads, but only firefox gets placed in its right workspace, and I really can't get what's going on since I'm using the exactly same syntax. I already tried using a different workspace but it doesn't work.
After a bit more of searching I've found a solution in another post
https://github.com/i3/i3/issues/2060
Quite strange that I didn't find this answer before, even though I searched a lot. Anyway, I ended up using
for_window [class="Spotify"] move to workspace $ws4
This solved the problem!
xorg i3
As the title suggests I'm trying to assign Spotify to a specific workspace but with no luck.
My i3 config file looks like this
#Startup-programs
exec firefox
exec spotify
assign [class="Spotify"] $ws4
assign [class="Firefox"] $ws2
xprop
on Spotify gives me this output
_NET_WM_ICON(CARDINAL) =
WM_CLASS(STRING) = "spotify", "Spotify"
WM_NAME(STRING) = "Spotify"
_NET_WM_NAME(UTF8_STRING) = "Spotify"
_NET_WM_DESKTOP(CARDINAL) = 0
WM_STATE(WM_STATE):
window state: Normal
icon window: 0x0
XdndProxy(WINDOW): window id # 0x1a00002
WM_NORMAL_HINTS(WM_SIZE_HINTS):
program specified location: 0, 0
window gravity: Static
_NET_WM_PID(CARDINAL) = 27058
WM_LOCALE_NAME(STRING) = "it_IT.UTF-8"
WM_CLIENT_MACHINE(STRING) = "placobravo"
WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, _NET_WM_PING
At startup both firefox and spotify loads, but only firefox gets placed in its right workspace, and I really can't get what's going on since I'm using the exactly same syntax. I already tried using a different workspace but it doesn't work.
After a bit more of searching I've found a solution in another post
https://github.com/i3/i3/issues/2060
Quite strange that I didn't find this answer before, even though I searched a lot. Anyway, I ended up using
for_window [class="Spotify"] move to workspace $ws4
This solved the problem!
xorg i3
edited Jun 7 at 9:37
asked Jun 6 at 18:19
Placobravo
213
213
You could try using[instance="spotify"]
instead. It might be that the class name "Spotify" does not get assigned until after the window was already created.
â Adaephon
Jun 7 at 6:45
This didnt work, but I found a solution. I've updated the post
â Placobravo
Jun 7 at 9:33
add a comment |Â
You could try using[instance="spotify"]
instead. It might be that the class name "Spotify" does not get assigned until after the window was already created.
â Adaephon
Jun 7 at 6:45
This didnt work, but I found a solution. I've updated the post
â Placobravo
Jun 7 at 9:33
You could try using
[instance="spotify"]
instead. It might be that the class name "Spotify" does not get assigned until after the window was already created.â Adaephon
Jun 7 at 6:45
You could try using
[instance="spotify"]
instead. It might be that the class name "Spotify" does not get assigned until after the window was already created.â Adaephon
Jun 7 at 6:45
This didnt work, but I found a solution. I've updated the post
â Placobravo
Jun 7 at 9:33
This didnt work, but I found a solution. I've updated the post
â Placobravo
Jun 7 at 9:33
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f448261%2fi3-assign-spotify-to-workspace%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
You could try using
[instance="spotify"]
instead. It might be that the class name "Spotify" does not get assigned until after the window was already created.â Adaephon
Jun 7 at 6:45
This didnt work, but I found a solution. I've updated the post
â Placobravo
Jun 7 at 9:33