Add scripts for handling HiDPI

This commit is contained in:
Manuel Thalmann 2024-09-20 02:07:32 +02:00
parent 7351d526b5
commit 998994b8b3
4 changed files with 32 additions and 1 deletions

View file

@ -72,6 +72,12 @@
description = "The X11 keyboard layout of the system."; description = "The X11 keyboard layout of the system.";
default = null; default = null;
}; };
hidpi = mkOption {
type = types.bool;
description = "A value indicating whether the screen is hidpi.";
default = false;
};
}; };
}; };
} }

View file

@ -6,6 +6,7 @@
config = { config = {
valhalla = { valhalla = {
hostname = "manu-surface"; hostname = "manu-surface";
hidpi = true;
linux.secureBoot = true; linux.secureBoot = true;
hardware = { hardware = {

View file

@ -275,7 +275,6 @@ function deploySoftware -d "Deploys a the specified software action" -a action
and if collectionActive gaming and if collectionActive gaming
if $isInstall if $isInstall
yayinst \ yayinst \
steam \
chiaki-ng \ chiaki-ng \
osu-lazer-bin \ osu-lazer-bin \
libretro \ libretro \
@ -286,6 +285,7 @@ function deploySoftware -d "Deploys a the specified software action" -a action
end end
and source "$dir/../Software/Lutris/main.fish" $argv and source "$dir/../Software/Lutris/main.fish" $argv
and source "$dir/../Software/steam/main.fish" $argv
end end
and if collectionActive essential && $isInstall and if collectionActive essential && $isInstall

View file

@ -0,0 +1,24 @@
#!/bin/env fish
begin
set -l dir (status dirname)
source "$dir/../../Scripts/software.fish"
function installSW
yayinst steam
end
function configureSW -V dir
. "$dir/../../../Common/Scripts/config.fish"
if isEnabled valhalla.hidpi
begin
printf %s\n \
"#!/bin/bash" \
"export STEAM_FORCE_DESKTOPUI_SCALING=2.0"
end | sudo tee /etc/profile.d/steam.sh > /dev/null
end
end
runInstaller $argv
end