about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorene <ene@sils.li>2023-03-04 18:17:58 +0100
committerene <ene@sils.li>2023-03-04 18:17:58 +0100
commit7f5ceb30bbfa5f82f18a0515b276f78f71a81aa8 (patch)
tree44a66ab6b4ca4e8220e7f6b52a9b108c2e1e53bd
parentFix(host/lahmu): Remove useless (?) gpu stuff (diff)
downloadnixos-config-7f5ceb30bbfa5f82f18a0515b276f78f71a81aa8.tar.gz
nixos-config-7f5ceb30bbfa5f82f18a0515b276f78f71a81aa8.zip
Fix(hm/wms/river): Use different monitor settings per host
-rwxr-xr-xhome-manager/wms/river/init18
1 files changed, 14 insertions, 4 deletions
diff --git a/home-manager/wms/river/init b/home-manager/wms/river/init
index fa317394..6e40f989 100755
--- a/home-manager/wms/river/init
+++ b/home-manager/wms/river/init
@@ -6,8 +6,8 @@
 err_fail() {
     if ! "$@";then
         warning "\"$*\" failed!\n" >> ~/river_log
-# msg "Executing the safe init!"
-# exec ~/.config/river/res/safe_init
+        # msg "Executing the safe init!"
+        # exec ~/.config/river/res/safe_init
     fi
 }
 rm ~/river_log
@@ -58,8 +58,17 @@ err_fail gsettings set org.gnome.desktop.wm.preferences button-layout "" # TODO
 # Setup of general apps {{{
 err_fail gammastep &
 
-err_fail wlr-randr --output DP-2 --pos 2560,0
-err_fail wlr-randr --output DP-1 --scale 1.5 --pos 0,0
+case $(cat /etc/hostname) in
+    "lahmu")
+        err_fail wlr-randr --output Virtual-1 --mode 1920x1080
+        ;;
+    "tiamat")
+        err_fail wlr-randr --output DP-2 --pos 2560,0
+        err_fail wlr-randr --output DP-1 --scale 1.5 --pos 0,0
+        ;;
+    *)
+        warning "Host not supported"
+esac
 
 err_fail yambar &
 
@@ -78,3 +87,4 @@ err_fail rivertile -main-ratio 0.5 -view-padding 1 -outer-padding 0
 #riverctl default-layout luatile
 #river-luatile
 # }}}
+# vim: ft=sh