From f3e924742c93bcae237eb7a52f32f0c20be4e1c1 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Fri, 9 Jan 2026 21:34:20 +0100 Subject: [PATCH] i3: load second monitor variable from Xresources --- Xresources | 4 ++++ i3/config | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Xresources b/Xresources index 9a6a0f3..255392e 100644 --- a/Xresources +++ b/Xresources @@ -36,6 +36,10 @@ *.color7: #BAC2DE *.color15: #A6ADC8 +!! i3 + +! i3wm.second_monitor: HDMI-0 + !! XFT Xft.autohint: 0 Xft.lcdfilter: lcddefault diff --git a/i3/config b/i3/config index 1eabe4b..bd9ad6b 100644 --- a/i3/config +++ b/i3/config @@ -6,6 +6,8 @@ # Variables +set_from_resource $second_monitor i3wm.second_monitor HDMI-0 + set_from_resource $color_bg i3wm.background #0E1019 set_from_resource $color_fg i3wm.foreground #eceef4 @@ -43,7 +45,6 @@ set $ws7 "7" set $ws8 "8" set $ws9 "9" -set $second_monitor HDMI-0 ## Startup programs