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 /modules/i3/i3.conf | |
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 'modules/i3/i3.conf')
-rw-r--r-- | modules/i3/i3.conf | 43 |
1 files changed, 2 insertions, 41 deletions
diff --git a/modules/i3/i3.conf b/modules/i3/i3.conf index d6273489..b6780f98 100644 --- a/modules/i3/i3.conf +++ b/modules/i3/i3.conf @@ -74,30 +74,6 @@ bindsym $mod+a focus parent # focus the child container bindsym $mod+semicolon focus child -# switch to workspace -bindsym $mod+1 workspace "@ws1@" -bindsym $mod+2 workspace "@ws2@" -bindsym $mod+3 workspace "@ws3@" -bindsym $mod+4 workspace "@ws4@" -bindsym $mod+5 workspace "@ws5@" -bindsym $mod+6 workspace "@ws6@" -bindsym $mod+7 workspace "@ws7@" -bindsym $mod+8 workspace "@ws8@" -bindsym $mod+9 workspace "@ws9@" -bindsym $mod+0 workspace "@ws10@" - -# move focused container to workspace -bindsym $mod+Shift+exclam move workspace "@ws1@" -bindsym $mod+Shift+at move workspace "@ws2@" -bindsym $mod+Shift+numbersign move workspace "@ws3@" -bindsym $mod+Shift+dollar move workspace "@ws4@" -bindsym $mod+Shift+percent move workspace "@ws5@" -bindsym $mod+Shift+asciicircum move workspace "@ws6@" -bindsym $mod+Shift+ampersand move workspace "@ws7@" -bindsym $mod+Shift+asterisk move workspace "@ws8@" -bindsym $mod+Shift+parenleft move workspace "@ws9@" -bindsym $mod+Shift+parenright move workspace "@ws10@" - # reload the configuration file bindsym $mod+Shift+L reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) @@ -138,23 +114,8 @@ mode "resize" { bindsym $mod+r mode "resize" -# workspace assignments -workspace "@ws1@" output @leftHead@ -workspace "@ws2@" output @leftHead@ -workspace "@ws3@" output @leftHead@ -workspace "@ws4@" output @leftHead@ -workspace "@ws5@" output @leftHead@ -workspace "@ws6@" output @rightHead@ -workspace "@ws7@" output @rightHead@ -workspace "@ws8@" output @rightHead@ -workspace "@ws9@" output @rightHead@ -workspace "@ws10@" output @rightHead@ - -# default applications -assign [class="^Tkabber$"] 1: tkabber -#exec --no-startup-id tkabber -assign [class="^Chromium(?:-browser)?$"] 3: chromium -#exec chromium +# workspace configuration +@wsConfig@ # ratmenu should be as unintrusive as possible for_window [class="^ratmenu$"] floating enable |