···11#!/bin/sh
2233+# -- Keybinds --
44+55+# Management
66+riverctl map normal Super Q close
77+riverctl map normal Super Tab focus-view next
88+riverctl map normal Super+Shift Tab focus-view previous
99+riverctl map normal Super P spawn "pkill waybar && waybar"
1010+1111+# Switch workspaces and move windows to workspaces
1212+for i in $(seq 1 5)
1313+do
1414+ tags=$((1 << ($i - 1)))
1515+1616+ # Super+[1-9] to focus tag [0-8]
1717+ riverctl map normal Super $i set-focused-tags $tags
1818+1919+ # Super+Shift+[1-9] to tag focused view with tag [0-8]
2020+ riverctl map normal Super+Shift $i set-view-tags $tags
2121+done
2222+2323+# Applications
2424+riverctl map normal Super Return spawn kitty
2525+riverctl map normal Super Space spawn "rofi -show"
2626+riverctl map normal Super W spawn "$HOME/Applications/ZenBrowser.AppImage"
2727+riverctl map normal Super E spawn zeditor
2828+2929+# Screenshots
3030+riverctl map normal Super S spawn "$HOME/.local/bin/screenshot -f"
3131+riverctl map normal Super+Shift S spawn "$HOME/.local/bin/screenshot -s"
3232+3333+# Laptop multimedia keys for volume and LCD brightness
3434+riverctl map normal None XF86AudioRaiseVolume spawn "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+"
3535+riverctl map normal None XF86AudioLowerVolume spawn "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
3636+riverctl map normal None XF86AudioMute spawn "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
3737+3838+riverctl map normal None XF86MonBrightnessUp spawn "brightnessctl set +5%"
3939+riverctl map normal None XF86MonBrightnessDown spawn "brightnessctl set 5%-"
4040+4141+# -- Layout ---
4242+riverctl default-layout rivertile
4343+rivertile -view-padding 3 -outer-padding 5 &