From a4fb9a83d671a4c7f3ed44df77cdee36604b5411 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> Date: Tue, 15 Oct 2024 04:21:26 +0530 Subject: Refactoring code. Stopped using picom. Disabled unused packages and configurations. --- .../window-manager/sxhkd/keybindings/bspwm.nix | 44 +++++++++++----------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'modules/desktop/window-manager/sxhkd/keybindings/bspwm.nix') diff --git a/modules/desktop/window-manager/sxhkd/keybindings/bspwm.nix b/modules/desktop/window-manager/sxhkd/keybindings/bspwm.nix index 1d66d16..ed62ed4 100644 --- a/modules/desktop/window-manager/sxhkd/keybindings/bspwm.nix +++ b/modules/desktop/window-manager/sxhkd/keybindings/bspwm.nix @@ -1,38 +1,38 @@ -{ createKeybinding, pkgs }: +{ createKeybinding, pkgs, lib }: let bspc = "${pkgs.bspwm}/bin/bspc"; -in { - ${(createKeybinding +in lib.mkMerge [ + (createKeybinding "q" - "Kill current window.")} - = "${bspc} node -c"; + "Kill current window." + "${bspc} node -c") - ${(createKeybinding + (createKeybinding "{1-9,0}" - "Switch workspace.")} - = "${bspc} desktop -f {1-9,10}"; + "Switch workspace." + "${bspc} desktop -f {1-9,10}") - ${(createKeybinding + (createKeybinding "shift + {1-9,0}" - "Move window to workspace.")} - = "${bspc} node -d {1-9,10} --follow"; + "Move window to workspace." + "${bspc} node -d {1-9,10} --follow") - ${(createKeybinding + (createKeybinding "{n,d,m}" - "Set current window mode (tiled, floating, fullscreen).")} - = "${bspc} node focused -t {tiled,floating,fullscreen}"; + "Set current window mode (tiled, floating, fullscreen)." + "${bspc} node focused -t {tiled,floating,fullscreen}") - ${(createKeybinding + (createKeybinding "{_,shift + }{h,j,k,l}" - "Navigate between windows.")} - = "${bspc} node --{focus,swap} {west,south,north,east}"; + "Navigate between windows." + "${bspc} node --{focus,swap} {west,south,north,east}") # the indentation for each line is required to work with the help prompt - ${(createKeybinding + (createKeybinding "ctrl + {h,j,k,l}" - "Resize current window.")} - = '' + "Resize current window." + '' ${bspc} node {@parent/second -z left -20 0; \ @parent/first -z right -20 0, \ @parent/second -z top 0 +20; \ @@ -41,5 +41,5 @@ in { @parent/second -z top 0 -20, \ @parent/first -z right +20 0; \ @parent/second -z left +20 0} -''; -} +'') +] -- cgit v1.2.3