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 = {
|
modules = {
|
||||||
hyprland.enable = true;
|
hyprland.enable = true;
|
||||||
wofi.lazy = false;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# The home.packages option allows you to install Nix packages into your
|
# The home.packages option allows you to install Nix packages into your
|
||||||
|
|
@ -48,8 +47,6 @@
|
||||||
obs-studio
|
obs-studio
|
||||||
wayvnc
|
wayvnc
|
||||||
|
|
||||||
(lib.mkIf (!config.modules.wofi.lazy) steam-run)
|
|
||||||
|
|
||||||
btop
|
btop
|
||||||
|
|
||||||
dconf
|
dconf
|
||||||
|
|
|
||||||
|
|
@ -5,27 +5,12 @@ in
|
||||||
{
|
{
|
||||||
options.modules.wofi = {
|
options.modules.wofi = {
|
||||||
enable = lib.mkEnableOption "enable wofi app launcher";
|
enable = lib.mkEnableOption "enable wofi app launcher";
|
||||||
lazy = lib.mkEnableOption "enable lazy desktop entries";
|
|
||||||
};
|
};
|
||||||
imports = [
|
imports = [
|
||||||
../common/colors.nix
|
../common/colors.nix
|
||||||
];
|
];
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
home.packages = with pkgs; [
|
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" ''
|
(writeShellScriptBin "wofi-launch" ''
|
||||||
${wofi}/bin/wofi --show drun
|
${wofi}/bin/wofi --show drun
|
||||||
'')
|
'')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue