stuff
This commit is contained in:
parent
2d014546bd
commit
6c33475f9a
1
hosts/tkaronto/modules/gamemode.nix
Symbolic link
1
hosts/tkaronto/modules/gamemode.nix
Symbolic link
@ -0,0 +1 @@
|
||||
../../../modules/gamemode/default.nix
|
35
modules/gamemode/default.nix
Normal file
35
modules/gamemode/default.nix
Normal file
@ -0,0 +1,35 @@
|
||||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
programs = inputs.hyprland.packages.${pkgs.system}.default;
|
||||
|
||||
startscript = pkgs.writeShellScript "gamemode-start" ''
|
||||
export PATH=$PATH:${programs}
|
||||
export HYPRLAND_INSTANCE_SIGNATURE=$(ls -w1 /tmp/hypr | tail -1)
|
||||
hyprctl --batch 'keyword decoration:blur 0 ; keyword animations:enabled 0 ; keyword misc:no_vfr 1'
|
||||
'';
|
||||
|
||||
endscript = pkgs.writeShellScript "gamemode-end" ''
|
||||
export PATH=$PATH:${programs}
|
||||
export HYPRLAND_INSTANCE_SIGNATURE=$(ls -w1 /tmp/hypr | tail -1)
|
||||
hyprctl --batch 'keyword decoration:blur 1 ; keyword animations:enabled 1 ; keyword misc:no_vfr 0'
|
||||
'';
|
||||
in {
|
||||
programs.gamemode = {
|
||||
enable = true;
|
||||
enableRenice = true;
|
||||
settings = {
|
||||
general = {
|
||||
softrealtime = "auto";
|
||||
renice = 15;
|
||||
};
|
||||
custom = {
|
||||
start = "${startscript}";
|
||||
end = "${endscript}";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
@ -17,7 +17,10 @@
|
||||
inputs.hyprland.homeManagerModules.default
|
||||
];
|
||||
|
||||
home.sessionVariables.GDK_SCALE = "2";
|
||||
home.sessionVariables = {
|
||||
GDK_SCALE = "2";
|
||||
QT_SCALE_FACTOR = "2";
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
wf-recorder
|
||||
|
@ -223,6 +223,8 @@ in {
|
||||
''
|
||||
)
|
||||
obs-studio
|
||||
libreoffice-fresh
|
||||
helvum
|
||||
];
|
||||
};
|
||||
programs = {
|
||||
|
Loading…
Reference in New Issue
Block a user