aboutsummaryrefslogtreecommitdiffstats
path: root/sxhkd/default.nix
blob: b17bdc0c7d6cf5975148ac8e1769c18f7ca03a33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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}
			'';
		};
	};
}