configuration/config/river/init
2024-08-02 11:09:49 +02:00

43 lines
1.9 KiB
Bash
Executable File

#!/bin/sh
riverctl map normal Super+Shift q exit
riverctl map normal Super Return spawn foot
riverctl map normal Super t spawn foot
riverctl map normal Super+Shift c close
riverctl map normal Super n focus-output next
riverctl map normal Super+Shift n spawn "riverctl send-to-output next && riverctl focus-output next"
riverctl map normal Super j focus-view next
riverctl map normal Super k focus-view previous
riverctl map normal Super+Shift j swap next
riverctl map normal Super+Shift k swap previous
riverctl map normal Super s send-layout-cmd rivertile "main-location right"
riverctl map normal Super w send-layout-cmd rivertile "main-location left"
riverctl map normal Super i send-layout-cmd rivertile "main-count +1"
riverctl map normal Super d send-layout-cmd rivertile "main-count -1"
riverctl map normal Super r spawn 'exec "$(dmenu_path | skmenu)"'
riverctl map normal Super p spawn 'delegator -g'
riverctl map normal Super 1 set-focused-tags 1
riverctl map normal Super 2 set-focused-tags 2
riverctl map normal Super 3 set-focused-tags 4
riverctl map normal Super+Shift 1 set-view-tags 1
riverctl map normal Super+Shift 2 set-view-tags 2
riverctl map normal Super+Shift 3 set-view-tags 4
riverctl map-pointer normal Super BTN_LEFT move-view
riverctl map-pointer normal Super BTN_RIGHT resize-view
riverctl map-pointer normal Super BTN_MIDDLE toggle-float
riverctl border-color-focused 0xFF0000
riverctl focus-follows-cursor always
riverctl keyboard-layout -options compose:caps us
riverctl set-cursor-warp on-focus-change
riverctl set-repeat 55 300
riverctl default-layout rivertile
riverctl rule-add -title skmenu float
riverctl spawn 'dbus-run-session pipewire'
riverctl spawn 'swayidle timeout 300 waylock timeout 300 "wlopm --off \*" resume "wlopm --on \*"'
riverctl spawn "wbg '$(find -L /data/pictures/background-source/ -type f | sort -R | head -1)'"
rivertile -view-padding 0 -outer-padding 0 -main-ratio 0.7 &