summaryrefslogtreecommitdiff
path: root/tw/home/cern.scm
diff options
context:
space:
mode:
authorTimo Wilken2023-02-17 18:07:38 +0100
committerTimo Wilken2023-03-04 19:21:54 +0100
commit7fe69cb2d3fe5f1d1e4afcace15a0e4f190adf12 (patch)
treeac26b5b9796f3f187a3a88c2df5691a43ddaf033 /tw/home/cern.scm
parent239fd59e8d9225d39b83f4b5c4051986d0c9404c (diff)
Fix monitor setup
Diffstat (limited to 'tw/home/cern.scm')
-rw-r--r--tw/home/cern.scm15
1 files changed, 9 insertions, 6 deletions
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