improved game mode and added blender to the applications
This commit is contained in:
@@ -6,10 +6,18 @@
|
|||||||
# requires dotfiles-modules.modules.nixos.hyprland to function
|
# requires dotfiles-modules.modules.nixos.hyprland to function
|
||||||
# this is also only compatible with a home on the qepc system
|
# this is also only compatible with a home on the qepc system
|
||||||
flake.modules.homeManager.qepc-steamtv = { pkgs, ... }: {
|
flake.modules.homeManager.qepc-steamtv = { pkgs, ... }: {
|
||||||
dotfiles-modules.hyprland.extraConfig = ''
|
dotfiles-modules.hyprland.extraConfig =
|
||||||
|
let
|
||||||
|
audioDeviceSearchTerm = "SONY TV";
|
||||||
|
script = pkgs.writeShellScriptBin "switch-to-steam-tv" ''
|
||||||
|
nu -c 'wpctl set-default (wpctl status | lines | where ($it | str contains "${audioDeviceSearchTerm}") | str replace -r "│\\s*(\\d+).*" "$1" | first)'
|
||||||
|
${pkgs.gamescope}/bin/gamescope -W 2560 -H 1440 -f -e -- steam -bigpicture
|
||||||
|
'';
|
||||||
|
in
|
||||||
|
''
|
||||||
hl.bind(MainMod .. "+ SHIFT + G",
|
hl.bind(MainMod .. "+ SHIFT + G",
|
||||||
hl.dsp.exec_cmd(
|
hl.dsp.exec_cmd(
|
||||||
"${pkgs.gamescope}/bin/gamescope -W 2560 -H 1440 -f -e -- steam -bigpicture",
|
"${script}/bin/switch-to-steam-tv",
|
||||||
{ workspace = "9" }
|
{ workspace = "9" }
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
{ self, inputs, ... }:
|
{ self, inputs, ... }:
|
||||||
let
|
let
|
||||||
|
blender =
|
||||||
|
pkgs:
|
||||||
|
pkgs.blender.override {
|
||||||
|
config.cudaSupport = true;
|
||||||
|
config.rocmSupport = false;
|
||||||
|
};
|
||||||
|
|
||||||
tools = pkgs: [
|
tools = pkgs: [
|
||||||
pkgs.playerctl
|
pkgs.playerctl
|
||||||
pkgs.imagemagick
|
pkgs.imagemagick
|
||||||
@@ -8,6 +15,7 @@ let
|
|||||||
pkgs.steam-run
|
pkgs.steam-run
|
||||||
pkgs.sops
|
pkgs.sops
|
||||||
pkgs.pavucontrol
|
pkgs.pavucontrol
|
||||||
|
(blender pkgs)
|
||||||
];
|
];
|
||||||
|
|
||||||
social = pkgs: [
|
social = pkgs: [
|
||||||
|
|||||||
Reference in New Issue
Block a user