remove lazy launching
This commit is contained in:
parent
d7ff7490fd
commit
d64ce5b799
2 changed files with 0 additions and 18 deletions
|
|
@ -32,7 +32,6 @@
|
|||
|
||||
modules = {
|
||||
hyprland.enable = true;
|
||||
wofi.lazy = false;
|
||||
};
|
||||
|
||||
# The home.packages option allows you to install Nix packages into your
|
||||
|
|
@ -48,8 +47,6 @@
|
|||
obs-studio
|
||||
wayvnc
|
||||
|
||||
(lib.mkIf (!config.modules.wofi.lazy) steam-run)
|
||||
|
||||
btop
|
||||
|
||||
dconf
|
||||
|
|
|
|||
|
|
@ -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