gaming mode for steam now lives in its own modules
This commit is contained in:
@@ -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("XF86AudioPlay", hl.dsp.exec_cmd("playerctl play-pause"), { locked = true })
|
||||||
hl.bind("XF86AudioPrev", hl.dsp.exec_cmd("playerctl previous"), { 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 ----
|
---- WINDOWS AND WORKSPACES ----
|
||||||
--------------------------------
|
--------------------------------
|
||||||
|
|||||||
@@ -2,4 +2,17 @@
|
|||||||
flake.modules.nixos.steam = { ... }: {
|
flake.modules.nixos.steam = { ... }: {
|
||||||
programs.steam.enable = true;
|
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" }
|
||||||
|
)
|
||||||
|
)
|
||||||
|
'';
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user