From 85036b55a5d35245b59cf6e8cdf15c9bb55d45eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Fri, 24 Mar 2023 17:04:34 +0100 Subject: [PATCH] feat(i3): fix slock --- configs/i3.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/configs/i3.nix b/configs/i3.nix index ead87a2..9c2c65d 100644 --- a/configs/i3.nix +++ b/configs/i3.nix @@ -99,14 +99,19 @@ in { ''; }; - home-manager.users.me.xsession.windowManager.i3 = { + home-manager.users.me.xsession.windowManager.i3 = let + modifier = "Mod4"; + in { enable = true; + extraConfig = '' + bindsym --release ${modifier}+Shift+w exec /run/wrappers/bin/slock + ''; config = rec { fonts = { names = ["Sans"]; size = 10.0; }; - modifier = "Mod4"; + inherit modifier; window = { titlebar = false; border = 1; @@ -216,9 +221,6 @@ in { "k" = "resize shrink height 10 px or 5 ppt"; "l" = "resize grow width 10 px or 5 ppt"; }; - extraConfig = '' - bindsym --release ${modifier}+Shift+w exec /run/wrappers/bin/slock - ''; keybindings = { "${modifier}+Shift+h" = "move left 25 px"; "${modifier}+Shift+j" = "move down 25 px";