moar modules
This commit is contained in:
parent
a1175ba492
commit
011009d22f
17 changed files with 556 additions and 240 deletions
|
|
@ -2,7 +2,9 @@
|
|||
with lib;
|
||||
let
|
||||
editor = config.programs.editor;
|
||||
terminal = "foot";
|
||||
pkg = editor.package;
|
||||
terminal = config.programs.terminal.package;
|
||||
termcmd = "${terminal}/bin/${terminal.pname}";
|
||||
menu = "wofi --show dmenu";
|
||||
in
|
||||
{
|
||||
|
|
@ -13,9 +15,6 @@ in
|
|||
default = pkgs.vscodium;
|
||||
example = "pkgs.vscode";
|
||||
};
|
||||
command = mkOption {
|
||||
default = "/bin/codium";
|
||||
};
|
||||
neovim = mkEnableOption "neovim mode";
|
||||
};
|
||||
};
|
||||
|
|
@ -37,12 +36,12 @@ in
|
|||
case $repo in
|
||||
clone-repo)
|
||||
url=$(wl-paste)
|
||||
${terminal} -e -- git clone "$url" ;;
|
||||
*) [ -e "$repo" ] && ${editor.package}${editor.command} $repo ;;
|
||||
${termcmd} -e -- git clone "$url" ;;
|
||||
*) [ -e "$repo" ] && ${pkg}/bin/${pkg.pname} $repo ;;
|
||||
esac
|
||||
'';
|
||||
install = false;
|
||||
hotkey = "C";
|
||||
hotkeys = [{key = "C";}];
|
||||
}];
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue