From ed1b2384e0c969111790d9b7d87e4a9089e1f61e Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Fri, 23 Apr 2021 18:08:41 +0200 Subject: [PATCH] home: i3: assign spotify to workspace 8 --- home/x/i3.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/home/x/i3.nix b/home/x/i3.nix index cc7e231..d9f5bb5 100644 --- a/home/x/i3.nix +++ b/home/x/i3.nix @@ -115,6 +115,12 @@ in window.commands = [ { command = "border pixel 2"; criteria = { class = "Alacritty"; }; } + + # NOTE: should be done with an assign command, but Spotify doesn't set + # its class until after initialization, so has to be done this way. + # + # See https://i3wm.org/docs/userguide.html#assign_workspace + { criteria = { class = "Spotify"; }; command = "move to workspace 8"; } ]; }; };