2024-11-02 17:48:54 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2024-12-13 20:44:36 +00:00
|
|
|
mod="Super"
|
|
|
|
|
2024-11-02 17:48:54 +00:00
|
|
|
riverctl spawn kanshi
|
2024-12-13 20:44:36 +00:00
|
|
|
riverctl spawn "wbg $HOME/.local/share/wallpapers/07.jpg"
|
2024-12-10 15:12:00 +00:00
|
|
|
riverctl spawn "waybar"
|
2024-11-02 17:48:54 +00:00
|
|
|
|
|
|
|
riverctl spawn "systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP"
|
|
|
|
riverctl spawn "dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=river"
|
|
|
|
|
2024-12-13 20:44:36 +00:00
|
|
|
riverctl map normal "$mod"+Shift Return spawn kitty
|
|
|
|
riverctl map normal "$mod" P spawn "rofi -show drun"
|
|
|
|
riverctl map normal "$mod" S spawn "$HOME/.config/river/scripts/screenshot.sh savecopy"
|
|
|
|
riverctl map normal "$mod" Q close
|
|
|
|
riverctl map normal "$mod"+Shift E exit
|
|
|
|
riverctl map normal "$mod"+Shift C spawn "$HOME/.config/river/init"
|
|
|
|
riverctl map normal "$mod" J focus-view next
|
|
|
|
riverctl map normal "$mod" K focus-view previous
|
|
|
|
riverctl map normal "$mod"+Shift J swap next
|
|
|
|
riverctl map normal "$mod"+Shift K swap previous
|
|
|
|
riverctl map normal "$mod" Period focus-output next
|
|
|
|
riverctl map normal "$mod" Comma focus-output previous
|
|
|
|
riverctl map normal "$mod"+Shift Period send-to-output next
|
|
|
|
riverctl map normal "$mod"+Shift Comma send-to-output previous
|
|
|
|
riverctl map normal "$mod" Return zoom
|
|
|
|
riverctl map normal "$mod" H send-layout-cmd rivercarro "main-ratio -0.05"
|
|
|
|
riverctl map normal "$mod" L send-layout-cmd rivercarro "main-ratio +0.05"
|
|
|
|
riverctl map normal "$mod"+Shift H send-layout-cmd rivercarro "main-count +1"
|
|
|
|
riverctl map normal "$mod"+Shift L send-layout-cmd rivercarro "main-count -1"
|
|
|
|
riverctl map normal "$mod"+Alt H move left 100
|
|
|
|
riverctl map normal "$mod"+Alt J move down 100
|
|
|
|
riverctl map normal "$mod"+Alt K move up 100
|
|
|
|
riverctl map normal "$mod"+Alt L move right 100
|
|
|
|
riverctl map normal "$mod"+Alt+Control H snap left
|
|
|
|
riverctl map normal "$mod"+Alt+Control J snap down
|
|
|
|
riverctl map normal "$mod"+Alt+Control K snap up
|
|
|
|
riverctl map normal "$mod"+Alt+Control L snap right
|
|
|
|
riverctl map normal "$mod"+Alt+Shift H resize horizontal -100
|
|
|
|
riverctl map normal "$mod"+Alt+Shift J resize vertical 100
|
|
|
|
riverctl map normal "$mod"+Alt+Shift K resize vertical -100
|
|
|
|
riverctl map normal "$mod"+Alt+Shift L resize horizontal 100
|
|
|
|
riverctl map-pointer normal "$mod" BTN_LEFT move-view
|
|
|
|
riverctl map-pointer normal "$mod" BTN_RIGHT resize-view
|
|
|
|
riverctl map-pointer normal "$mod" BTN_MIDDLE toggle-float
|
2024-11-02 17:48:54 +00:00
|
|
|
|
2024-12-11 15:48:30 +00:00
|
|
|
for i in $(seq 1 9); do
|
|
|
|
tags=$((1 << (i - 1)))
|
2024-12-13 20:44:36 +00:00
|
|
|
riverctl map normal "$mod" "$i" set-focused-tags "$tags"
|
|
|
|
riverctl map normal "$mod"+Shift "$i" set-view-tags "$tags"
|
|
|
|
riverctl map normal "$mod"+Control "$i" toggle-focused-tags "$tags"
|
|
|
|
riverctl map normal "$mod"+Shift+Control "$i" toggle-view-tags "$tags"
|
2024-11-02 17:48:54 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
all_tags=$(((1 << 32) - 1))
|
2024-12-13 20:44:36 +00:00
|
|
|
riverctl map normal "$mod" 0 set-focused-tags "$all_tags"
|
|
|
|
riverctl map normal "$mod"+Shift 0 set-view-tags "$all_tags"
|
|
|
|
riverctl map normal "$mod" Space toggle-float
|
|
|
|
riverctl map normal "$mod" F toggle-fullscreen
|
|
|
|
riverctl map normal "$mod" Up send-layout-cmd rivercarro "main-location top"
|
|
|
|
riverctl map normal "$mod" Right send-layout-cmd rivercarro "main-location right"
|
|
|
|
riverctl map normal "$mod" Down send-layout-cmd rivercarro "main-location bottom"
|
|
|
|
riverctl map normal "$mod" Left send-layout-cmd rivercarro "main-location left"
|
2024-11-02 17:48:54 +00:00
|
|
|
riverctl declare-mode passthrough
|
2024-12-13 20:44:36 +00:00
|
|
|
riverctl map normal "$mod" F11 enter-mode passthrough
|
|
|
|
riverctl map passthrough "$mod" F11 enter-mode normal
|
2024-11-02 17:48:54 +00:00
|
|
|
|
2024-12-11 15:48:30 +00:00
|
|
|
for mode in normal locked; do
|
|
|
|
riverctl map "$mode" None XF86Eject spawn 'eject -T'
|
|
|
|
riverctl map "$mode" None XF86AudioRaiseVolume spawn 'pamixer -i 5'
|
|
|
|
riverctl map "$mode" None XF86AudioLowerVolume spawn 'pamixer -d 5'
|
|
|
|
riverctl map "$mode" None XF86AudioMute spawn 'pamixer --toggle-mute'
|
|
|
|
riverctl map "$mode" None XF86AudioMedia spawn 'playerctl play-pause'
|
|
|
|
riverctl map "$mode" None XF86AudioPlay spawn 'playerctl play-pause'
|
|
|
|
riverctl map "$mode" None XF86AudioPrev spawn 'playerctl previous'
|
|
|
|
riverctl map "$mode" None XF86AudioNext spawn 'playerctl next'
|
|
|
|
riverctl map "$mode" None XF86MonBrightnessUp spawn 'brightnessctl set +5%'
|
|
|
|
riverctl map "$mode" None XF86MonBrightnessDown spawn 'brightnessctl set 5%-'
|
2024-11-02 17:48:54 +00:00
|
|
|
done
|
|
|
|
|
2024-11-25 21:04:18 +00:00
|
|
|
# hacky way of making everything have borders
|
|
|
|
riverctl rule-add ssd
|
2024-11-02 17:48:54 +00:00
|
|
|
|
2024-11-25 21:04:18 +00:00
|
|
|
riverctl background-color 0x00000000
|
2024-12-13 20:44:36 +00:00
|
|
|
riverctl border-color-focused 0xbe95ffff
|
2024-11-30 15:11:25 +00:00
|
|
|
riverctl border-color-unfocused 0x00000000
|
2024-11-02 17:48:54 +00:00
|
|
|
|
2024-12-21 12:55:05 +00:00
|
|
|
riverctl keyboard-layout -options compose:ralt gb
|
2024-11-25 21:04:18 +00:00
|
|
|
riverctl set-repeat 50 300
|
2024-11-02 17:48:54 +00:00
|
|
|
|
2024-12-19 18:59:32 +00:00
|
|
|
riverctl xcursor-theme "Simp1e-Adw-Dark"
|
2024-11-02 17:48:54 +00:00
|
|
|
|
2024-12-13 20:44:36 +00:00
|
|
|
riverctl default-layout rivercarro
|
2024-12-15 13:13:14 +00:00
|
|
|
rivercarro -inner-gaps 8 -outer-gaps 10 -no-smart-gaps &
|