#!/bin/sh # https://codeberg.org/river/river-classic/src/branch/main/example/init riverctl map normal Super Q spawn havoc riverctl map normal Super D spawn "rofi -show run" riverctl map normal Super C close riverctl map normal Super+Shift M exit riverctl map normal Super Up focus-view up riverctl map normal Super Right focus-view right riverctl map normal Super Left focus-view left riverctl map normal Super Down focus-view down riverctl map normal Super k focus-view up riverctl map normal Super l focus-view right riverctl map normal Super h focus-view left riverctl map normal Super j focus-view down riverctl map normal Super+Control Up focus-output up riverctl map normal Super+Control Right focus-output right riverctl map normal Super+Control Left focus-output left riverctl map normal Super+Control Down focus-output down riverctl map normal Super+Control k focus-output up riverctl map normal Super+Control l focus-output right riverctl map normal Super+Control h focus-output left riverctl map normal Super+Control j focus-output down riverctl map normal Super+Shift Up swap up riverctl map normal Super+Shift Right swap right riverctl map normal Super+Shift Left swap left riverctl map normal Super+Shift Down swap down riverctl map normal Super+Shift k swap up riverctl map normal Super+Shift l swap right riverctl map normal Super+Shift h swap left riverctl map normal Super+Shift j swap down riverctl map normal Super+Shift+Control Up send-to-output up riverctl map normal Super+Shift+Control Right send-to-output right riverctl map normal Super+Shift+Control Left send-to-output left riverctl map normal Super+Shift+Control Down send-to-output down riverctl map normal Super+Shift+Control k send-to-output up riverctl map normal Super+Shift+Control l send-to-output right riverctl map normal Super+Shift+Control h send-to-output left riverctl map normal Super+Shift+Control j send-to-output down riverctl map-pointer normal Super BTN_RIGHT resize-view for i in $(seq 1 9) do tags=$((1 << ($i - 1))) riverctl map normal Super $i set-focused-tags $tags riverctl map normal Super+Shift $i set-view-tags $tags done riverctl map normal Super F toggle-fullscreen #TODO: stylix it riverctl border-color-focused 0xf5c2e7 riverctl border-color-unfocused 0x313244 riverctl set-repeat 30 300 riverctl default-layout rivercarro rivercarro -inner-gaps 6 -outer-gaps 0 & riverctl rule-add ssd riverctl rule-add -app-id "vesktop" output HDMI-A-2 wlr-randr --output DP-2 --mode 2560x1440@180Hz dbus-update-activation-environment --systemd WAYLAND_DISPLAY "XDG_CURRENT_DESKTOP=sway" awww-daemon & awww img @wallpaper@ -t none vesktop & riverctl focus-output left