open code shortcut

This commit is contained in:
Tristan 2023-04-24 12:25:30 +01:00
parent 48796999d5
commit f46b0962be

View file

@ -53,6 +53,11 @@ let
light -A 10
${my-deps.notify-send} "Brightness" -h int:value:$(light) -a brightness-up -t 1000
'');
open-code = (pkgs.writeShellScriptBin "open-code" ''
code_dir=~/Documents/code
ls $code_dir/ | ${my-deps.menu} | ${my-deps.xargs} -I_ code $code_dir/_
'');
};
lf-sixel = pkgs.callPackage ../../custom/lf-sixel/. { };
@ -153,6 +158,7 @@ in
bind = SUPER, M, exec, ${ my-deps.terminal } -e ncmpcpp
bind = SUPER, E, exec, ${ my-deps.terminal } -e neomutt
bind = SUPER, O, exec, pcmanfm
bind = SUPER, C, exec, ${ my-scripts.open-code }/bin/open-code
bind = SUPER, h, movefocus,l
bind = SUPER, l, movefocus,r