style(hyprland): set default monitor to 'preferred' resolution

Updated the default Hyprland monitor configuration to 'monitor=,preferred,auto,1'. This ensures the best resolution is selected automatically while maintaining a 1x scale by default.
This commit is contained in:
Bernardo Magri
2026-05-01 17:00:57 +01:00
parent c5544e56c8
commit 39b1a9c1b3
2 changed files with 4 additions and 3 deletions

View File

@@ -13,7 +13,7 @@
# Straight 1x setup for low-resolution displays like 1080p or 1440p
# Or for ultrawide monitors like 34" 3440x1440 or 49" 5120x1440
env = GDK_SCALE,1
monitor=,highres,auto,1
monitor=,preferred,auto,1
# Portrait/rotated secondary monitor (transform: 1 = 90°, 3 = 270°)
# monitor = DP-2, preferred, auto, 1, transform, 1

View File

@@ -168,11 +168,12 @@
# Live-ISO-only welcome. Pops a notification a few seconds
# after the graphical session is up and opens a terminal
# parked at the installer command, so the user never has to
# hunt for it. Force highres monitor detection as some
# hunt for it. Force preferred monitor detection as some
# hardware defaults to 1024x768.
wayland.windowManager.hyprland.extraConfig = nixpkgs.lib.mkAfter ''
monitor = , highres, auto, 1
monitor = , preferred, auto, 1
exec-once = sh -c 'sleep 3; notify-send -u critical -t 0 "Welcome to Nomarchy" "Run \`sudo /etc/install.sh\` in the open terminal or \`--dry-run\` to preview."'
exec-once = sh -c 'sleep 4; alacritty --title "Nomarchy Installer" -e bash -lc "echo; echo \"Welcome to the Nomarchy live ISO.\"; echo; echo \" sudo /etc/install.sh # install\"; echo \" sudo /etc/install.sh --dry-run # preview only\"; echo \" sudo /etc/install.sh --resume # resume after an interrupt\"; echo; exec bash"'
'';
};