remove lazy launching

This commit is contained in:
Noa Aarts 2024-04-09 14:37:32 +02:00
parent d7ff7490fd
commit d64ce5b799
2 changed files with 0 additions and 18 deletions

View file

@ -5,27 +5,12 @@ in
{
options.modules.wofi = {
enable = lib.mkEnableOption "enable wofi app launcher";
lazy = lib.mkEnableOption "enable lazy desktop entries";
};
imports = [
../common/colors.nix
];
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [
(lib.mkIf cfg.lazy inputs.lazy.packages.${pkgs.system}.lazy-desktop)
(lib.mkIf cfg.lazy (writeShellApplication {
name = "lo";
runtimeInputs = [ xdg-utils ];
text = ''
echo "opening $*"
xdg-open "$*"
'';
}))
(lib.mkIf cfg.lazy (writeShellApplication {
name = "mt";
runtimeInputs = [ xdg-utils ];
text = ''xdg-mime query filetype "$@"'';
}))
(writeShellScriptBin "wofi-launch" ''
${wofi}/bin/wofi --show drun
'')