about summary refs log tree commit diff stats
path: root/home-manager/wms/river/init
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-04-23 14:05:55 +0200
committerSoispha <soispha@vhack.eu>2023-05-09 19:31:45 +0200
commite297665b04a08f8ffb1c0cf499534c8bedd762fc (patch)
tree2e99de607a26871f4b8d7b31a77b6c8d9cff5896 /home-manager/wms/river/init
parentFeat(system/options): Add laptop options (diff)
downloadnixos-config-e297665b04a08f8ffb1c0cf499534c8bedd762fc.zip
Feat(hm/wms/river): Bump runtime error to compile time
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 &