i3 assign spotify to workspace

The name of the pictureThe name of the pictureThe name of the pictureClash 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!







share|improve this question





















  • 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














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!







share|improve this question





















  • 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












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!







share|improve this question













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!









share|improve this question












share|improve this question




share|improve this question








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
















  • 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















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















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



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














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













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?