cleanup hyprland monitor thing

This commit is contained in:
jacekpoz 2024-07-22 22:08:13 +02:00
parent 7cd3698d03
commit e2c4868fcb
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -159,8 +159,15 @@ in {
settings = {
"$mainMod" = "SUPER";
monitor = mapAttrsToList (name: m:
"${name},${toString m.resolution.w}x${toString m.resolution.h}@${toString m.refreshRate},${toString m.position.x}x${toString m.position.y},${toString m.scale}"
monitor = mapAttrsToList (name: m: let
w = toString m.resolution.w;
h = toString m.resolution.h;
refresh = toString m.refreshRate;
x = toString m.position.x;
y = toString m.position.y;
scale = toString m.scale;
in
"${name},${w}x${h}@${refresh},${x}x${y},${scale}"
) config.myOptions.other.hardware.monitors;
workspace = [