From 1018cd7cc704f08e3329cb758a73e6da98d4e087 Mon Sep 17 00:00:00 2001 From: aszlig Date: Mon, 14 Jul 2014 22:47:14 +0200 Subject: 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 --- machines/dnyarri.nix | 5 +++++ machines/mmrnmhrm.nix | 10 ++++++++++ 2 files changed, 15 insertions(+) (limited to 'machines') 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)?\$"; }; + }; } -- cgit 1.4.1