From 7fe69cb2d3fe5f1d1e4afcace15a0e4f190adf12 Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Fri, 17 Feb 2023 18:07:38 +0100 Subject: Fix monitor setup --- tw/home/cern.scm | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'tw/home/cern.scm') diff --git a/tw/home/cern.scm b/tw/home/cern.scm index 6a814bc6..73be4cfa 100644 --- a/tw/home/cern.scm +++ b/tw/home/cern.scm @@ -175,8 +175,8 @@ (list #$(file-append network-manager-applet "/bin/nm-applet")))) (stop #~(make-kill-destructor))) - (polybar-service "DP2") - (polybar-service "DP1-8") + (polybar-service "DP-2") + (polybar-service "DP-1-8") (shepherd-service (documentation "Dunst notification daemon; displays desktop notifications.") @@ -230,13 +230,16 @@ ;; Turn off the monitors if there is no input for 10 minutes. (system* #$(file-append xset "/bin/xset") "dpms" "600" "600" "600") (system* #$(file-append xrandr "/bin/xrandr") - "--output" "DP2" "--primary" "--auto" - "--output" "DP1-8" "--auto" "--right-of" "DP2") + "--output" "DP-2" "--primary" "--auto") + (system* #$(file-append xrandr "/bin/xrandr") + ;; This can do 4K but HiDPI is a pain. + "--output" "DP-1-8" "--mode" "1920x1080" "--rate" "60.00" + "--right-of" "DP-2") ;; Set the desktop background picture. Hopefully doing this just after ;; xrandr works and sets it for both screens. (system* #$(file-append hsetroot "/bin/hsetroot") "-cover" - (string-append (getenv "HOME") - ".config/X11/ridge-view.jpg"))))))) + (string-append (getenv "XDG_CONFIG_HOME") + "/X11/ridge-view.jpg"))))))) ;; Configuration files for GUI programs in $XDG_CONFIG_HOME. (simple-service 'gui-config home-xdg-configuration-files-service-type -- cgit v1.2.3