diff --git a/home/hyprland/default.nix b/home/hyprland/default.nix index 3324ff9..2f30a9b 100644 --- a/home/hyprland/default.nix +++ b/home/hyprland/default.nix @@ -9,6 +9,7 @@ let inherit (lib) mapAttrsToList mkIf hasAttr; inherit (lib.my) getExe getExe'; + roles = osConfig.modules.system.roles; desktop = osConfig.modules.system.roles.desktop; in mkIf osConfig.programs.hyprland.enable { @@ -74,7 +75,7 @@ mkIf osConfig.programs.hyprland.enable { inactive_opacity = 1.0; shadow = { - enabled = true; + enabled = roles.portable.enable; range = 4; render_power = 3; color = "rgba(1a1a1aee)"; @@ -82,7 +83,7 @@ mkIf osConfig.programs.hyprland.enable { # https://wiki.hyprland.org/Configuring/Variables/#blur blur = { - enabled = true; + enabled = roles.portable.enable; size = 3; passes = 1; @@ -151,6 +152,7 @@ mkIf osConfig.programs.hyprland.enable { key_press_enables_dpms = true; mouse_move_enables_dpms = true; disable_autoreload = true; + vfr = true; }; bindm = [ "$mod,mouse:272,movewindow" ]; diff --git a/hosts/marr/default.nix b/hosts/marr/default.nix index a6d3eb8..b4b9b2d 100644 --- a/hosts/marr/default.nix +++ b/hosts/marr/default.nix @@ -24,6 +24,7 @@ in system = { roles = { desktop.enable = true; + portable.enable = true; }; outputs = { diff --git a/modules/portals.nix b/modules/portals.nix index dff3930..5e45762 100644 --- a/modules/portals.nix +++ b/modules/portals.nix @@ -7,10 +7,10 @@ lib.mkIf config.xdg.portal.enable { xdg.portal = { config = { - sway = { + common = { + default = "*"; "org.freedesktop.impl.portal.Screenshot.PickColor" = [ "${pkgs.hyprpicker}/bin/hyprpicker" ]; }; - common.default = "*"; }; # gtk portal needed to make gtk apps happy diff --git a/options/system/roles/default.nix b/options/system/roles/default.nix index c6bab79..3765aba 100644 --- a/options/system/roles/default.nix +++ b/options/system/roles/default.nix @@ -3,5 +3,6 @@ ./terminal.nix ./desktop.nix ./gaming.nix + ./portable.nix ]; } diff --git a/options/system/roles/portable.nix b/options/system/roles/portable.nix new file mode 100644 index 0000000..4cddd78 --- /dev/null +++ b/options/system/roles/portable.nix @@ -0,0 +1,9 @@ +{ lib, ... }: +let + inherit (lib) mkEnableOption; +in +{ + options.modules.system.roles.portable = { + enable = mkEnableOption "Laptop/Portable tweaks"; + }; +}