diff --git a/dot_config/herbstluftwm/executable_autostart b/dot_config/herbstluftwm/executable_autostart.tmpl similarity index 99% rename from dot_config/herbstluftwm/executable_autostart rename to dot_config/herbstluftwm/executable_autostart.tmpl index 796449e..199d26c 100644 --- a/dot_config/herbstluftwm/executable_autostart +++ b/dot_config/herbstluftwm/executable_autostart.tmpl @@ -220,9 +220,10 @@ hc rule class='mpv' floating=on hc set tree_style '╾│ ├└╼─┐' -# unlock, just to be sure -hc unlock +{{ if eq .chezmoi.hostname "ws" }} +xrandr --output HDMI-1 --right-of DVI-D-1 +{{end}} # do multi monitor setup here, e.g.: # hc set_monitors 1280x1024+0+0 1280x1024+1280+0 @@ -236,6 +237,9 @@ hc detect_monitors hc attr settings.auto_detect_monitors 1 +# unlock, just to be sure +hc unlock + systemctl --user import-environment DISPLAY XAUTHORITY XDG_SESSION_PATH systemctl restart --user "hlwm.target"