keybindings 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. # vim: ft=swayconfig
  2. # System Controls
  3. bindsym {
  4. $mod+Shift+r exec swaymsg reload && notify-send "Reloaded sway config"
  5. $mod+Shift+e exec --no-startup-id noctalia-shell ipc call sessionMenu toggle
  6. $mod+Escape exec ~/.local/bin/lock.sh
  7. }
  8. # Gestures
  9. bindgesture swipe:right focus right
  10. bindgesture swipe:left focus left
  11. bindgesture swipe:up workspace next
  12. bindgesture swipe:down workspace prev
  13. # Application Launchers
  14. bindsym {
  15. $mod+Return exec $term
  16. $mod+d exec ~/.config/tofi/scripts/drun.sh
  17. $mod+t exec ~/.local/bin/dev-launcher ~/Dev
  18. $mod+Shift+t exec ~/.local/bin/dev-launcher --no-cache ~/Dev
  19. $mod+n exec ~/.local/bin/sdm-ui.sh dmenu
  20. $mod+o exec ~/.local/bin/launch-or-focus obsidian "cd /home/forbi/Documents/Vault && $term --class obsidian nvim"
  21. $mod+e exec ~/.local/bin/launch-or-focus thunar
  22. $mod+y exec noctalia-shell ipc call launcher clipboard
  23. $mod+b exec rofi-rbw --action copy
  24. }
  25. # Window Management
  26. bindsym {
  27. $mod+c kill
  28. $mod+f fullscreen toggle
  29. $mod+space floating toggle
  30. # Layout
  31. $mod+s layout stacking
  32. $mod+w layout toggle tabbed split
  33. $mod+semicolon split h
  34. # Focus
  35. $mod+$left focus left
  36. $mod+$down focus down
  37. $mod+$up focus up
  38. $mod+$right focus right
  39. $mod+Left focus left
  40. $mod+Down focus down
  41. $mod+Up focus up
  42. $mod+Right focus right
  43. # Move
  44. $mod+Shift+$left move left
  45. $mod+Shift+$down move down
  46. $mod+Shift+$up move up
  47. $mod+Shift+$right move right
  48. $mod+Shift+Left move left
  49. $mod+Shift+Down move down
  50. $mod+Shift+Up move up
  51. $mod+Shift+Right move right
  52. }
  53. # Workspace Management
  54. bindsym {
  55. $mod+1 workspace $ws1
  56. $mod+2 workspace $ws2
  57. $mod+3 workspace $ws3
  58. $mod+4 workspace $ws4
  59. $mod+5 workspace $ws5
  60. $mod+6 workspace $ws6
  61. $mod+7 workspace $ws7
  62. $mod+8 workspace $ws8
  63. $mod+9 workspace $ws9
  64. $mod+0 workspace $ws10
  65. $mod+Shift+1 move container to workspace $ws1
  66. $mod+Shift+2 move container to workspace $ws2
  67. $mod+Shift+3 move container to workspace $ws3
  68. $mod+Shift+4 move container to workspace $ws4
  69. $mod+Shift+5 move container to workspace $ws5
  70. $mod+Shift+6 move container to workspace $ws6
  71. $mod+Shift+7 move container to workspace $ws7
  72. $mod+Shift+8 move container to workspace $ws8
  73. $mod+Shift+9 move container to workspace $ws9
  74. $mod+Shift+0 move container to workspace $ws10
  75. $mod+bracketright move workspace to output right
  76. $mod+bracketleft move workspace to output left
  77. }
  78. # Scratchpad
  79. bindsym {
  80. $mod+Shift+minus move scratchpad
  81. $mod+minus scratchpad show
  82. $mod+u [app_id="uy.com.mzunino"] scratchpad show, move position center, fullscreen disable, resize set 1366 768
  83. $mod+Shift+u exec --no-startup-id $term --class="uy.com.mzunino"
  84. }
  85. # Special Functions
  86. bindsym {
  87. $mod+r exec --no-startup-id noctalia-shell ipc call screenRecorder toggle
  88. $mod+p exec --no-startup-id grim -g "$(slurp -d)" - | swappy -f -
  89. $mod+shift+p exec --no-startup-id ~/.local/bin/screenshot-upload
  90. $mod+F5 exec --no-startup-id ~/.local/bin/pause-notifications
  91. $mod+shift+d exec ~/.local/bin/satty-window
  92. }
  93. bindsym {
  94. XF86AudioRaiseVolume exec --no-startup-id noctalia-shell ipc call volume increase
  95. XF86AudioLowerVolume exec --no-startup-id noctalia-shell ipc call volume decrease
  96. XF86AudioMute exec --no-startup-id noctalia-shell ipc call volume mute
  97. XF86MonBrightnessUp exec --no-startup-id noctalia-shell ipc call brightness increase
  98. XF86MonBrightnessDown exec --no-startup-id noctalia-shell ipc call brightness decrease
  99. }
  100. # Mouse Bindings
  101. bindsym {
  102. --border button2 kill
  103. --whole-window $mod+button2 kill
  104. button3 floating toggle
  105. $mod+button3 floating toggle
  106. }