Add scripts for handling HiDPI

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

View file

@ -72,6 +72,12 @@
description = "The X11 keyboard layout of the system.";
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 = {
valhalla = {
hostname = "manu-surface";
hidpi = true;
linux.secureBoot = true;
hardware = {

View file

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