adding desktop config
This commit is contained in:
commit
3a345929b9
21 files changed
+1131
No files matched your search
@@ -0,0 +1,47 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
xdg.configFile."sxhkd/sxhkdrc".text = ''
|
||||
# terminal / launcher
|
||||
super + Return
|
||||
${config.my.defaults.terminal}
|
||||
super + space
|
||||
dmenu_run
|
||||
|
||||
# close window / quit bspwm
|
||||
super + q
|
||||
bspc node -c
|
||||
super + alt + Escape
|
||||
bspc quit
|
||||
|
||||
# focus window
|
||||
super + {Left,Down,Up,Right}
|
||||
bspc node -f {west,south,north,east}
|
||||
|
||||
# move (swap) window
|
||||
super + shift + {Left,Down,Up,Right}
|
||||
bspc node -s {west,south,north,east}
|
||||
|
||||
# resize window
|
||||
super + alt + {Left,Down,Up,Right}
|
||||
bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
|
||||
|
||||
# go to workspace / send window to workspace
|
||||
super + {_,shift + }{1-9}
|
||||
bspc {desktop -f,node -d} '^{1-9}'
|
||||
|
||||
# workspace next/previous
|
||||
super + ctrl + {Left,Right}
|
||||
bspc desktop -f {prev,next}.local
|
||||
|
||||
# fullscreen / floating
|
||||
super + f
|
||||
bspc node -t "~fullscreen"
|
||||
super + shift + f
|
||||
bspc node -t "~floating"
|
||||
'';
|
||||
|
||||
home.activation.reloadSxhkd = lib.hm.dag.entryAfter [ "linkGeneration" ] ''
|
||||
${pkgs.procps}/bin/pkill -USR1 -x sxhkd || true
|
||||
'';
|
||||
}
|
||||
Reference in new issue
Block a user