diff options
| author | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2024-09-17 22:55:39 +0530 |
|---|---|---|
| committer | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2024-09-17 22:55:39 +0530 |
| commit | cfb09be4801c1d41eda9113531a08e9d9e54ac62 (patch) | |
| tree | 24350701f77aea9d08e94da22da178b5efe30609 /sxhkd/default.nix | |
| parent | cbd5b66b89fba2ad23a9da7372cf916305efad1f (diff) | |
| download | home-manager-config-cfb09be4801c1d41eda9113531a08e9d9e54ac62.tar.gz home-manager-config-cfb09be4801c1d41eda9113531a08e9d9e54ac62.zip | |
Adding many changes.
Diffstat (limited to 'sxhkd/default.nix')
| -rw-r--r-- | sxhkd/default.nix | 53 |
1 files changed, 34 insertions, 19 deletions
diff --git a/sxhkd/default.nix b/sxhkd/default.nix index b17bdc0..8a987b1 100644 --- a/sxhkd/default.nix +++ b/sxhkd/default.nix @@ -1,24 +1,39 @@ { ... }: { - services.sxhkd = { - enable = true; - keybindings = { - "super + r" = "rofi -show run"; - "super + t" = "alacritty"; - "super + q" = "bspc node -c"; - "super + {1-9,0}" = "bspc desktop -f {1-9,10}"; - # resize windows - "super + alt + {h,j,k,l}" = '' - {bspc node @parent/second -z left -20 0; \ - bspc node @parent/first -z right -20 0, \ - bspc node @parent/second -z top 0 +20; \ - bspc node @parent/first -z bottom 0 +20, \ - bspc node @parent/first -z bottom 0 -20; \ - bspc node @parent/second -z top 0 -20, \ - bspc node @parent/first -z right +20 0; \ - bspc node @parent/second -z left +20 0} - ''; - }; + services.sxhkd.enable = true; + + services.sxhkd.keybindings = { + "super + r" = "rofi -show run"; + "super + t" = "alacritty"; + "super + f" = "alacritty -t 'File Explorer' --class 'File Explorer' -e lf"; + "super + q" = "bspc node -c"; + + # switch desktops + "super + {1-9,0}" = "bspc desktop -f {1-9,10}"; + + # move window to desktop + "super + shift + {1-9,0}" = "bspc node -d {1-9,10} --follow"; + + # tiled + "super + n" = "bspc node focused -t tiled"; + + # floating + "super + d" = "bspc node focused -t floating"; + + # fullscreen + "super + m" = "bspc node focused -t fullscreen"; + + # resize windows + "super + alt + {h,j,k,l}" = '' + {bspc node @parent/second -z left -20 0; \ + bspc node @parent/first -z right -20 0, \ + bspc node @parent/second -z top 0 +20; \ + bspc node @parent/first -z bottom 0 +20, \ + bspc node @parent/first -z bottom 0 -20; \ + bspc node @parent/second -z top 0 -20, \ + bspc node @parent/first -z right +20 0; \ + bspc node @parent/second -z left +20 0} + ''; }; } |
