diff options
author | aszlig <aszlig@redmoonstudios.org> | 2014-07-14 22:47:14 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2014-07-14 22:47:14 +0200 |
commit | 1018cd7cc704f08e3329cb758a73e6da98d4e087 (patch) | |
tree | 7ee1659af7cce5cbd5d0f6c0236b10fac3edb87c /machines | |
parent | c65f5ba3a7eb43e01f098d63f8d22cdc1e78d8bd (diff) |
i3: Add NixOS options to configure workspaces.
This allows for a more dynamic workspace assignments, especially when varying between the number of heads. We now not only can use the NixOS module system to set workspaces but also assign applications to them. And the default workspace layout is to evenly spread out the heads among the available heads. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'machines')
-rw-r--r-- | machines/dnyarri.nix | 5 | ||||
-rw-r--r-- | machines/mmrnmhrm.nix | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/machines/dnyarri.nix b/machines/dnyarri.nix index bda86e1d..378e29db 100644 --- a/machines/dnyarri.nix +++ b/machines/dnyarri.nix @@ -132,4 +132,9 @@ with import ../lib; services.xserver.videoDrivers = [ "ati" ]; services.xserver.xrandrHeads = [ "HDMI-0" "DVI-0" ]; + + aszlig.i3.workspaces."6" = { + label = "Chromium"; + assign = singleton { class = "^Chromium(?:-browser)?\$"; }; + }; } diff --git a/machines/mmrnmhrm.nix b/machines/mmrnmhrm.nix index 7e299b52..c8866545 100644 --- a/machines/mmrnmhrm.nix +++ b/machines/mmrnmhrm.nix @@ -52,4 +52,14 @@ with import ../lib; services.xserver.videoDrivers = [ "nouveau" ]; services.xserver.xrandrHeads = [ "DVI-I-1" "VGA-1" ]; + + aszlig.i3.workspaces."1" = { + label = "XMPP"; + assign = singleton { class = "^(?:Tkabber|Gajim)\$"; }; + }; + + aszlig.i3.workspaces."3" = { + label = "Chromium"; + assign = singleton { class = "^Chromium(?:-browser)?\$"; }; + }; } |