remove lazy launching
This commit is contained in:
parent
af544de7fe
commit
e7c4625437
2 changed files with 0 additions and 18 deletions
|
|
@ -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
|
||||
'')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue