From 42db510b8f2e4dc843cfbd176da1599b0f77b107 Mon Sep 17 00:00:00 2001 From: mjallen18 Date: Tue, 1 Jul 2025 08:28:51 -0500 Subject: [PATCH] add idle inhibitor to waybar --- hosts/desktop/configuration.nix | 2 +- .../hyprland/config/hypr/default.nix | 5 +++++ .../hyprland/config/waybar/default.nix | 19 ++++++++++++++++++- modules/gaming/default.nix | 18 ++++++++++++------ 4 files changed, 36 insertions(+), 8 deletions(-) diff --git a/hosts/desktop/configuration.nix b/hosts/desktop/configuration.nix index 8fb3648..5c2007d 100755 --- a/hosts/desktop/configuration.nix +++ b/hosts/desktop/configuration.nix @@ -73,7 +73,7 @@ in }; }; - chaotic.mesa-git.enable = true; + chaotic.mesa-git.enable = false; # Environment configuration environment = { diff --git a/modules/desktop-environments/hyprland/config/hypr/default.nix b/modules/desktop-environments/hyprland/config/hypr/default.nix index b43105d..929259b 100755 --- a/modules/desktop-environments/hyprland/config/hypr/default.nix +++ b/modules/desktop-environments/hyprland/config/hypr/default.nix @@ -256,6 +256,7 @@ in "idleinhibit, tag:horizonrdp" "float, tag:horizonrdp" "size 2160 7680, tag:horizonrdp" + # "move onscreen 0 0, tag:horizonrdp" # float the vmware window cause its annoying to use in fullscreen "float, class:(.*[Vv][Mm]ware-view),title:([Vv][Mm]ware [Hh]orizon [Cc]lient)" ]; @@ -282,6 +283,10 @@ in experimental = { xx_color_management_v4 = true; }; + + debug = { + full_cm_proto = true; + }; }; extraConfig = '' diff --git a/modules/desktop-environments/hyprland/config/waybar/default.nix b/modules/desktop-environments/hyprland/config/waybar/default.nix index 4082e38..ff7b6ff 100755 --- a/modules/desktop-environments/hyprland/config/waybar/default.nix +++ b/modules/desktop-environments/hyprland/config/waybar/default.nix @@ -57,6 +57,7 @@ in "wireplumber#sink" "wireplumber#source" "bluetooth" + "idle_inhibitor" "clock" "custom/weather" ]; @@ -203,6 +204,14 @@ in tooltip-format-enumerate-connected = { }; }; + idle_inhibitor = { + format = "{icon}"; + format-icons = { + activated = "󰐂"; + deactivated = "󱩜"; + }; + }; + clock = { format = "{:%I:%M %p}"; tooltip-format = "{calendar}"; @@ -312,11 +321,19 @@ in /* ------------- */ + #idle_inhibitor { + color: ${settings.nord.frost.nord10}; + background-color: ${settings.nord.polarNight.nord0}; + ${defaultOpacity} + ${borderRight} + } + #bluetooth { color: ${settings.nord.frost.nord9}; background-color: ${settings.nord.polarNight.nord0}; ${defaultOpacity} - ${borderRight} + ${defaultCenterOptions} + border-radius: 0; } #wireplumber.source { diff --git a/modules/gaming/default.nix b/modules/gaming/default.nix index 83766d4..64d1249 100755 --- a/modules/gaming/default.nix +++ b/modules/gaming/default.nix @@ -31,13 +31,19 @@ in }; }; # "gamescope -f -H 2160 -W 3840 -r 240 --adaptive-sync --hdr-enabled - programs.alvr = { - enable = true; - openFirewall = true; + programs = { + alvr = { + enable = true; + openFirewall = true; + }; + + gamescope = { + enable = true; + capSysNice = true; + }; + + gamemode.enable = true; }; - - programs.gamemode.enable = true; - # Hardware configs hardware = { # Xbox controllers