diff options
author | Silas Schöffel <sils@sils.li> | 2024-04-04 17:06:23 +0200 |
---|---|---|
committer | Silas Schöffel <sils@sils.li> | 2024-04-04 17:06:23 +0200 |
commit | 924ec30e7075ea7a9dbac569a537d876f9146850 (patch) | |
tree | 11ff56048f05536a1905490137333b3596d0ee18 /hm/river/init | |
parent | users/default.nix: delete (diff) | |
download | nix-config-924ec30e7075ea7a9dbac569a537d876f9146850.tar.gz nix-config-924ec30e7075ea7a9dbac569a537d876f9146850.zip |
refactor: move users/sils dir to hm
Diffstat (limited to 'hm/river/init')
-rwxr-xr-x | hm/river/init | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/hm/river/init b/hm/river/init new file mode 100755 index 0000000..c419ed7 --- /dev/null +++ b/hm/river/init @@ -0,0 +1,74 @@ +#!/usr/bin/env dash +# shellcheck source=/dev/null +. %SHELL_LIBRARY_PATH + +err_fail() { + if ! "$@";then + warning "\"$*\" failed!\n" >> ~/river_log + # msg "Executing the safe init!" + # exec ~/.config/river/res/safe_init + fi +} +err_fail rm ~/river_log +exec 1>> "$HOME"/river_log +exec 2>> "$HOME"/river_log + +#Setup of environment variables {{{ +err_fail riverctl spawn "exec dbus-update-activation-environment SEATD_SOCK DISPLAY WAYLAND_DISPLAY DESKTOP_SESSION=river XDG_CURRENT_DESKTOP=river" +err_fail export XDG_CURRENT_DESKTOP=river +#}}} + +# Setup of mappings {{{ +@mappings@ +# }}} + +# Setup of Rules {{{ +err_fail riverctl float-filter-add app-id float +err_fail riverctl float-filter-add app-id mpv +err_fail riverctl float-filter-add app-id ModernGL +err_fail riverctl float-filter-add title "Manim Slides" + +err_fail riverctl csd-filter-add app-id firefox +# }}} + +# Set riverctl settings {{{ +# background +err_fail riverctl background-color 0x002b36 +err_fail riverctl border-color-focused 0x93a1a1 +err_fail riverctl border-color-unfocused 0x586e75 + +# keyboard repeat rate +err_fail riverctl set-repeat 50 300 + +# Cursor +err_fail riverctl focus-follows-cursor normal +#riverctl hide-cursor timeout 2000 +err_fail riverctl hide-cursor when-typing enabled +err_fail riverctl set-cursor-warp on-output-change +err_fail riverctl xcursor-theme Nordzy-cursors 24 + +err_fail riverctl input pointer-1133-49970-Logitech_Gaming_Mouse_G502 pointer-accel 0 +err_fail riverctl input pointer-1133-49970-Logitech_Gaming_Mouse_G502 accel-profile none +# }}} + +# Setup of general apps {{{ +@screen_setup@ + +err_fail yambar & + +err_fail mako & +err_fail swaybg -i "$WALLPAPER" & +err_fail swayidle & +err_fail alacritty & +# }}} + + + +# Setup of layout [acts as exec!] {{{ +err_fail riverctl default-layout rivertile +err_fail rivertile -main-ratio 0.5 -view-padding 1 -outer-padding 0 + +#riverctl default-layout luatile +#river-luatile +# }}} +# vim: ft=sh |