Commit 81264e232e88

Vincent Demeester <vincent@sbr.pm>
2019-02-04 18:50:52
i3: try i3-gaps ๐Ÿ˜…
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 400f687
Changed files (1)
modules
profiles
modules/profiles/i3.nix
@@ -46,6 +46,7 @@ in
     };
     xdg.configFile."alacritty/alacritty.yml".source = ./assets/xorg/alacritty.yml;
     xsession.windowManager.i3 = {
+      package = pkgs.i3-gaps;
       enable = true;
       config = {
         fonts = ["Fira Code 10"];
@@ -60,6 +61,10 @@ in
         keybindings = {
           "Mod4+Return" = "exec alacritty";
         };
+        gaps = {
+          inner = 0;
+          outer = 0;
+        };
         keycodebindings = {
           "Mod4+Shift+24" = "kill";
           "Mod4+33" = "exec \"${pkgs.rofi}/bin/rofi -show run -modi 'run,window' -kb-row-select 'Tab' -kb-row-tab '' -location 2 -hide-scrollbar -separator-style solid -font 'Ubuntu Mono 14'";
@@ -74,6 +79,16 @@ in
           "Mod4+Shift+45" = "move down";
           "Mod4+Shift+46" = "move up";
           "Mod4+Shift+47" = "move right";
+          # resize
+          "Mod4+Control+44" = "resize shrink width 5px or 5ppt";
+          "Mod4+Control+45" = "resize grow width 5px or 5ppt";
+          "Mod4+Control+46" = "resize shrink hight 5px or 5ppt";
+          "Mod4+Control+47" = "resize grow height 5px or 5ppt";
+          # gaps
+          "Mod4+Mod1+44" = "gaps inner current plus 5";
+          "Mod4+Mod1+45" = "gaps inner current minus 5";
+          "Mod4+Mod1+46" = "gaps outer current plus 5";
+          "Mod4+Mod1+47" = "gaps outer current minus 5";
           # Split
           "Mod4+43" = "split h";
           "Mod4+55" = "split v";