From 72f50e6d7b4c8190970e4066fa485359323b32dd Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sat, 20 Jul 2024 17:08:03 -0400 Subject: [PATCH] home/hyprland: remove scripts inherits --- homeManagerModules/desktop/hyprland/settings.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/homeManagerModules/desktop/hyprland/settings.nix b/homeManagerModules/desktop/hyprland/settings.nix index b62d15de..c1c37bd4 100644 --- a/homeManagerModules/desktop/hyprland/settings.nix +++ b/homeManagerModules/desktop/hyprland/settings.nix @@ -5,7 +5,7 @@ ... }: let cfg = config.ar.home; - inherit (import ./scripts.nix {inherit config lib pkgs;}) clamshell idleD tablet wallpaperD; + scripts = import ./scripts.nix {inherit config lib pkgs;}; # Media/hardware commands brightness = rec { @@ -104,11 +104,11 @@ in { ",xf86audioprev,exec,${media.prev}" ",xf86audionext,exec,${media.next}" ] - ++ builtins.map (switch: ",switch:${switch},exec,${tablet}") cfg.desktop.hyprland.tabletMode.tabletSwitches + ++ builtins.map (switch: ",switch:${switch},exec,${scripts.tablet}") cfg.desktop.hyprland.tabletMode.tabletSwitches ++ lib.lists.optionals (cfg.desktop.hyprland.laptopMonitors != []) [ - ",switch:on:Lid Switch,exec,${clamshell} on" - ",switch:off:Lid Switch,exec,${clamshell} off" + ",switch:on:Lid Switch,exec,${scripts.clamshell} on" + ",switch:off:Lid Switch,exec,${scripts.clamshell} off" ]; bindle = [ @@ -150,9 +150,9 @@ in { exec-once = [ - wallpaperD + scripts.wallpaperD (lib.getExe pkgs.waybar) - idleD + scripts.idleD (lib.getExe pkgs.wayland-pipewire-idle-inhibit) (lib.getExe' pkgs.blueman "blueman-applet") (lib.getExe' pkgs.networkmanagerapplet "nm-applet")