aboutsummaryrefslogtreecommitdiffstats
path: root/sxhkd/default.nix
diff options
context:
space:
mode:
authorArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2024-09-17 10:12:18 +0530
committerArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2024-09-17 10:12:18 +0530
commitcbd5b66b89fba2ad23a9da7372cf916305efad1f (patch)
tree0a5580244e3fe87b05c581681e558925d0635ad7 /sxhkd/default.nix
downloadhome-manager-config-cbd5b66b89fba2ad23a9da7372cf916305efad1f.tar.gz
home-manager-config-cbd5b66b89fba2ad23a9da7372cf916305efad1f.zip
Initial commit.
Diffstat (limited to 'sxhkd/default.nix')
-rw-r--r--sxhkd/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/sxhkd/default.nix b/sxhkd/default.nix
new file mode 100644
index 0000000..b17bdc0
--- /dev/null
+++ b/sxhkd/default.nix
@@ -0,0 +1,24 @@
+{ ... }:
+
+{
+ 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}
+ '';
+ };
+ };
+}