Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env sh
- mod=Mod4 # Super/Windows key
- # Background / bar / notifications
- swaybg -i /usr/share/backgrounds/archlinux/archbtw.jpg -m fill &
- waybar &
- mako &
- # Apps
- riverctl map normal $mod Return spawn foot
- riverctl map normal $mod D spawn 'wofi --show drun'
- riverctl map normal $mod Q close
- riverctl map normal $mod Shift E exit
- # Focus
- riverctl map normal $mod H focus-view left
- riverctl map normal $mod J focus-view down
- riverctl map normal $mod K focus-view up
- riverctl map normal $mod L focus-view right
- # Move
- riverctl map normal $mod Shift H move left
- riverctl map normal $mod Shift J move down
- riverctl map normal $mod Shift K move up
- riverctl map normal $mod Shift L move right
- # Workspaces (tags)
- for n in $(seq 1 9); do
- riverctl map normal $mod $n set-focused-tags $((1 << (n-1)))
- riverctl map normal $mod Shift $n set-view-tags $((1 << (n-1)))
- done
- # Layout
- rivertile -view-padding 8 -outer-padding 8 -main-ratio 0.55 &
- riverctl default-layout rivertile
- riverctl map normal $mod Equal send-layout-cmd rivertile "main-ratio -0.02"
- riverctl map normal $mod Minus send-layout-cmd rivertile "main-ratio +0.02"
- # Screenshots
- riverctl map normal None Print spawn 'grim ~/Pictures/screenshot-$(date +%F_%T).png'
- riverctl map normal Shift+Print spawn 'grim -g "$(slurp)" ~/Pictures/screenshot-$(date +%F_%T).png'
Advertisement
Add Comment
Please, Sign In to add comment