mdriscoll93

init

Aug 15th, 2025
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.34 KB | Software | 0 0
  1. #!/usr/bin/env sh
  2. mod=Mod4  # Super/Windows key
  3.  
  4. # Background / bar / notifications
  5. swaybg -i /usr/share/backgrounds/archlinux/archbtw.jpg -m fill &
  6. waybar &
  7. mako &
  8.  
  9. # Apps
  10. riverctl map normal $mod Return spawn foot
  11. riverctl map normal $mod D spawn 'wofi --show drun'
  12. riverctl map normal $mod Q close
  13. riverctl map normal $mod Shift E exit
  14.  
  15. # Focus
  16. riverctl map normal $mod H focus-view left
  17. riverctl map normal $mod J focus-view down
  18. riverctl map normal $mod K focus-view up
  19. riverctl map normal $mod L focus-view right
  20.  
  21. # Move
  22. riverctl map normal $mod Shift H move left
  23. riverctl map normal $mod Shift J move down
  24. riverctl map normal $mod Shift K move up
  25. riverctl map normal $mod Shift L move right
  26.  
  27. # Workspaces (tags)
  28. for n in $(seq 1 9); do
  29.   riverctl map normal $mod $n set-focused-tags $((1 << (n-1)))
  30.   riverctl map normal $mod Shift $n set-view-tags $((1 << (n-1)))
  31. done
  32.  
  33. # Layout
  34. rivertile -view-padding 8 -outer-padding 8 -main-ratio 0.55 &
  35. riverctl default-layout rivertile
  36. riverctl map normal $mod Equal send-layout-cmd rivertile "main-ratio -0.02"
  37. riverctl map normal $mod Minus send-layout-cmd rivertile "main-ratio +0.02"
  38.  
  39. # Screenshots
  40. riverctl map normal None Print spawn 'grim ~/Pictures/screenshot-$(date +%F_%T).png'
  41. riverctl map normal Shift+Print spawn 'grim -g "$(slurp)" ~/Pictures/screenshot-$(date +%F_%T).png'
Tags: Linux SH
Advertisement
Add Comment
Please, Sign In to add comment