diff --git a/modules/desktop/hyprland/hyprland.lua b/modules/desktop/hyprland/hyprland.lua index 24a3e56..ac2abb9 100644 --- a/modules/desktop/hyprland/hyprland.lua +++ b/modules/desktop/hyprland/hyprland.lua @@ -368,16 +368,6 @@ hl.bind("XF86AudioPause", hl.dsp.exec_cmd("playerctl play-pause"), { locked = tr hl.bind("XF86AudioPlay", hl.dsp.exec_cmd("playerctl play-pause"), { locked = true }) hl.bind("XF86AudioPrev", hl.dsp.exec_cmd("playerctl previous"), { locked = true }) --- Gaming Mode - -hl.bind(MainMod .. "+ SHIFT + G", - hl.dsp.exec_cmd( - "nix run nixpkgs#gamescope -- -W 2560 -H 1440 -f -e -- steam -bigpicture", - { workspace = "9" } - ) -) - - -------------------------------- ---- WINDOWS AND WORKSPACES ---- -------------------------------- diff --git a/modules/gaming/steam.nix b/modules/gaming/steam.nix index 88dc335..8e60796 100644 --- a/modules/gaming/steam.nix +++ b/modules/gaming/steam.nix @@ -2,4 +2,17 @@ flake.modules.nixos.steam = { ... }: { programs.steam.enable = true; }; + + # requires dotfiles-modules.modules.nixos.hyprland to function + # this is also only compatible with a home on the qepc system + flake.modules.homeManager.qepc-steamtv = { pkgs, ... }: { + dotfiles-modules.hyprland.extraConfig = '' + hl.bind(MainMod .. "+ SHIFT + G", + hl.dsp.exec_cmd( + "${pkgs.gamescope}/bin/gamescope -W 2560 -H 1440 -f -e -- steam -bigpicture", + { workspace = "9" } + ) + ) + ''; + }; }