Add scripts for handling HiDPI
This commit is contained in:
parent
c5fbcc0a4b
commit
a3421d4e37
|
@ -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;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
config = {
|
config = {
|
||||||
valhalla = {
|
valhalla = {
|
||||||
hostname = "manu-surface";
|
hostname = "manu-surface";
|
||||||
|
hidpi = true;
|
||||||
linux.secureBoot = true;
|
linux.secureBoot = true;
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
|
|
|
@ -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
|
||||||
|
|
24
scripts/Arch/Software/steam/main.fish
Normal file
24
scripts/Arch/Software/steam/main.fish
Normal 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
|
Loading…
Reference in a new issue