declare GDK_SCALE in host cfg

This commit is contained in:
Aly Raffauf 2024-07-07 22:23:19 -04:00
parent d2c45940d3
commit 0840f43ffd
8 changed files with 106 additions and 109 deletions

View file

@ -3,8 +3,7 @@
lib,
pkgs,
...
}: {
config = let
}: let
cfg = config.ar.home.defaultApps;
inherit
(import ./mimetypes.nix)
@ -15,8 +14,8 @@
imageFiles
videoFiles
;
in
lib.mkIf cfg.enable {
in {
config = lib.mkIf cfg.enable {
dconf = {
enable = true;
settings = {

View file

@ -102,8 +102,6 @@
region = "${bin} -m region -o ${folder}";
};
gdk_scale = "1.5";
clamshell = pkgs.writeShellScript "hyprland-clamshell" ''
NUM_MONITORS=$(${hyprctl} monitors all | grep Monitor | wc --lines)
if [ "$1" == "on" ]; then
@ -194,9 +192,6 @@
force_zero_scaling = true
}
# toolkit-specific scale
env = GDK_SCALE,${gdk_scale}
# Some default env vars.
env = XCURSOR_SIZE,${toString config.home.pointerCursor.size}
env = QT_QPA_PLATFORMTHEME,qt6ct

View file

@ -18,6 +18,7 @@
systemd-boot.enable = true;
};
environment.variables.GDK_SCALE = "1.5";
networking.hostName = "fallarbor";
system.stateVersion = "24.05";

View file

@ -19,8 +19,8 @@
systemd-boot.enable = true;
};
environment.variables.GDK_SCALE = "1.5";
networking.hostName = "lavaridge";
system.stateVersion = "24.05";
ar = {

View file

@ -26,6 +26,7 @@
};
};
environment.variables.GDK_SCALE = "1.25";
hardware.enableAllFirmware = true;
networking.hostName = "mandarin";

View file

@ -91,8 +91,8 @@ in {
};
};
environment.variables.GDK_SCALE = "1.25";
system.stateVersion = "23.11";
zramSwap.memoryPercent = 100;
ar = {

View file

@ -18,8 +18,8 @@
systemd-boot.enable = true;
};
environment.variables.GDK_SCALE = "2";
networking.hostName = "petalburg";
system.stateVersion = "24.05";
ar = {

View file

@ -19,6 +19,7 @@
systemd-boot.enable = true;
};
environment.variables.GDK_SCALE = "1.25";
networking.hostName = "rustboro";
system.stateVersion = "24.05";
zramSwap.memoryPercent = 100;