feat(rafiq/hyprland): set monitor resolution

This commit is contained in:
Mohammad Rafiq 2025-05-18 18:37:22 +08:00
parent ee129ea287
commit 182dd20f88
No known key found for this signature in database
3 changed files with 21 additions and 0 deletions

View file

@ -1,4 +1,7 @@
{config, lib, osConfig, ...}:
let
mainMonitor = osConfig.desktop.mainMonitor;
in
{
xdg.configFile."uwsm/env".text = # sh
''
@ -9,6 +12,12 @@
systemd.enable = false;
settings = {
"$hypr" = "CTRL_SUPER_ALT_SHIFT";
monitor = [
"${mainMonitor.id}, ${mainMonitor.resolution}@${mainMonitor.refresh-rate}, auto, ${mainMonitor.scale}"
", preferred, auto, 1"
];
bind = [
"$hypr, Q, exec, uwsm stop"
"SUPER, W, killactive"