about summary refs log tree commit diff stats
path: root/home-manager/wms/river/init
diff options
context:
space:
mode:
Diffstat (limited to 'home-manager/wms/river/init')
-rwxr-xr-xhome-manager/wms/river/init33
1 files changed, 2 insertions, 31 deletions
diff --git a/home-manager/wms/river/init b/home-manager/wms/river/init
index 9ea82edc..7105c949 100755
--- a/home-manager/wms/river/init
+++ b/home-manager/wms/river/init
@@ -20,22 +20,7 @@ err_fail export XDG_CURRENT_DESKTOP=river
 #}}}
 
 # Setup of mappings {{{
-case $(cat /etc/hostname) in
-    "lahmu")
-        err_fail riverctl keyboard-layout 'dvorak'
-        err_fail river_init_lesser ~/.config/river/res/keys.ron
-        ;;
-    "apzu")
-        err_fail riverctl keyboard-layout 'dvorak'
-        err_fail river_init_lesser ~/.config/river/res/keys.ron
-        ;;
-    "tiamat")
-        err_fail riverctl keyboard-layout 'us'
-        err_fail river_init_lesser ~/.config/river/res/moonlander.ron
-        ;;
-    *)
-        warning "Host not supported for keymapping"
-esac
+@mappings@
 # }}}
 
 # Setup of Rules {{{
@@ -68,21 +53,7 @@ err_fail riverctl input pointer-1133-49970-Logitech_Gaming_Mouse_G502 accel-prof
 # }}}
 
 # Setup of general apps {{{
-case $(cat /etc/hostname) in
-    "lahmu")
-        err_fail wlr-randr --output Virtual-1 --mode 1920x1080
-        ;;
-    "apzu")
-        err_fail gammastep &
-        ;;
-    "tiamat")
-        err_fail wlr-randr --output DP-2 --pos 2560,0
-        err_fail wlr-randr --output DP-1 --scale 1.5 --pos 0,0
-        err_fail gammastep &
-        ;;
-    *)
-        warning "Host not supported for screen"
-esac
+@screen_setup@
 
 err_fail yambar &