summaryrefslogtreecommitdiffstats
path: root/systems/leg/config.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-12-04 01:30:49 +0000
committertv <tv@krebsco.de>2026-12-04 03:05:12 +0000
commitb25c2abad084fa6d2fc930e27998533010b50708 (patch)
tree9fde45348b6c9eb2753489486bc978f085023aa5 /systems/leg/config.nix
parent607fb1010baae845910e75ba31687bffb259636b (diff)
x11: xmonad
From the dirt. Hosts set what's specific to them: XMONAD_MASTER_* by the unit's environment, and shortcuts by hrm.xmonad.shortcuts. hrm.xresources replaces tv.Xresources: X resources per display, and "*" for all, loaded by the session service xresources@ instead of a system service.
Diffstat (limited to 'systems/leg/config.nix')
-rw-r--r--systems/leg/config.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/systems/leg/config.nix b/systems/leg/config.nix
index 066aafe9..ec780dcd 100644
--- a/systems/leg/config.nix
+++ b/systems/leg/config.nix
@@ -149,4 +149,10 @@
};
services.illum.enable = true;
+
+ # master width = master terminal columns * column width / screen width
+ systemd.user.services."xmonad@".environment = {
+ XMONAD_MASTER_WIDTH = toString (80 * 14 / 2560.);
+ XMONAD_MASTER_DELTA = toString (8 * 14 / 2560.);
+ };
}