keybind.conf 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. # ################### It just works™ keybinds ###################
  2. # Volume
  3. bindl = ,XF86AudioMute, exec, pactl set-sink-mute @DEFAULT_SINK@ toggle
  4. bindle=, XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
  5. bindle=, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
  6. # Brightness
  7. # bindle=, XF86MonBrightnessUp, exec, light -A 5
  8. # bindle=, XF86MonBrightnessDown, exec, light -U 5
  9. bindle=, XF86MonBrightnessUp, exec, ags run-js 'brightness.screen_value += 0.05;'
  10. bindle=, XF86MonBrightnessDown, exec, ags run-js 'brightness.screen_value -= 0.05;'
  11. # ####################################### Applications ########################################
  12. # Apps: just normal apps
  13. bind = Super, Return, exec, $terminal
  14. bind = Super, E, exec, nautilus --new-window
  15. bind = Super, V, exec, chromium
  16. # bind = ControlSuperAlt, E, exec, /usr/bin/microsoft-edge-stable --password-store=gnome --enable-features=UseOzonePlatform --ozone-platform=wayland --gtk-version=4
  17. # bind = Super, Z, exec, kitty -e neomutt
  18. # Apps: Settings and config
  19. bind = Super, A, exec, pavucontrol
  20. # Actions
  21. bind = Super, Period, exec, fuzzelunicode
  22. bind = SuperShift, Period, exec, fuzzelnerd
  23. bind = Super, G, exec, fuzzel-greek-letters-prompt
  24. bind = Super, O, exec, open-stream
  25. bind = Super, Q, killactive,
  26. bind = SuperAlt, Space, togglefloating,
  27. bind = SuperShift, T, exec, ~/.config/hypr/scripts/toggle-theme.sh
  28. # german
  29. bind = SuperShift Alt, T, exec, grim -g "$(slurp -d -c D1E5F4BB -b 1B232866 -s 00000000)" "tmp.png" && tesseract -l deu "tmp.png" - | wl-copy && rm "tmp.png"
  30. # Media
  31. # bind = SuperShift, N, exec, playerctl next || playerctl position `bc <<< "100 * $(playerctl metadata mpris:length) / 1000000 / 100"`
  32. bindl = , XF86AudioNext, exec, ags run-js "Mpris.getPlayer()?.next()"
  33. # bind = SuperShift, B, exec, playerctl previous
  34. # bind = SuperShift, P, exec, playerctl play-pause
  35. #Lock screen | blur: --effect-blur=20x202
  36. # bind = Super, L, exec, gtklock
  37. bind = SuperShift, L, exec, gtklock
  38. bindl = SuperShift, L, exec, sleep 0.1 && sus
  39. # App launcher
  40. bind = ControlSuper, Slash, exec, pkill anyrun || anyrun
  41. # ##################################### AGS keybinds #####################################
  42. bindr = ControlSuper, R, exec, hyprctl reload; killall ags activewin.sh activews.sh gohypr bash ydotool; ags &
  43. bindir = Super, Super_L, exec, fuzzel
  44. # bind = Super, O, exec, ags -t 'sideleft'
  45. # bind = Super, N, exec, ags -t 'sideright'
  46. # bind = Super, M, exec, ags run-js 'openMusicControls.value = (!Mpris.getPlayer() ? false : !openMusicControls.value);'
  47. bind = SuperShift, K, exec, ags -t 'osk'
  48. bind = ControlAlt, Delete, exec, ags -t 'session'
  49. bindr = Control, Control_R, exec, ags run-js 'indicator.popup(-1);'
  50. bindr = Control, Control_R, exec, ags run-js 'Notifications.notifications.forEach((notif) => notif.dismiss())'
  51. bindle = , XF86AudioRaiseVolume, exec, ags run-js 'indicator.popup(1);'
  52. bindle = , XF86AudioLowerVolume, exec, ags run-js 'indicator.popup(1);'
  53. bindle = , XF86MonBrightnessUp, exec, ags run-js 'indicator.popup(1);'
  54. bindle = , XF86MonBrightnessDown, exec, ags run-js 'indicator.popup(1);'
  55. bindr = Control, Control_R, exec, ags run-js 'App.closeWindow("sideright");'
  56. bindr = Control, Control_R, exec, ags run-js 'App.closeWindow("cheatsheet");'
  57. bindr = Control, Control_R, exec, ags run-js 'App.closeWindow("osk");'
  58. bindr = Control, Control_R, exec, ags run-js 'App.closeWindow("session");'
  59. bindr = Control, Control_R, exec, ags run-js 'openMusicControls.value = false'
  60. # ##################################### Plugins #########################################
  61. # bind = ControlSuper, P, exec, hyprctl plugin load '/home/end/.config/hypr/plugins/droidbars.so'
  62. # bind = ControlSuper, O, exec, hyprctl plugin unload '/home/end/.config/hypr/plugins/droidbars.so'
  63. # # Testing
  64. bind = SuperAlt, f12, exec, notify-send "Millis since epoch" "$(date +%s%N | cut -b1-13)" -a 'Hyprland keybind'
  65. bind = SuperAlt, P, exec, notify-send "Urgent notification" "Ah hell no" -u critical -a 'Hyprland keybind'
  66. # ########################### Keybinds for Hyprland ############################
  67. # Swap windows
  68. bind = SuperShift, left, movewindow, l
  69. bind = SuperShift, right, movewindow, r
  70. bind = SuperShift, up, movewindow, u
  71. bind = SuperShift, down, movewindow, d
  72. # Move focus
  73. bind = Super, left, movefocus, l
  74. bind = Super, right, movefocus, r
  75. bind = Super, up, movefocus, u
  76. bind = Super, down, movefocus, d
  77. bind = Super, BracketLeft, movefocus, l
  78. bind = Super, BracketRight, movefocus, r
  79. # Workspace, window, tab switch with keyboard
  80. bind = ControlSuper, right, workspace, +1
  81. bind = ControlSuper, left, workspace, -1
  82. bind = ControlSuper, BracketLeft, workspace, -1
  83. bind = ControlSuper, BracketRight, workspace, +1
  84. bind = ControlSuper, up, workspace, -5
  85. bind = ControlSuper, down, workspace, +5
  86. bind = Super, Page_Down, workspace, +1
  87. bind = Super, Page_Up, workspace, -1
  88. bind = ControlSuper, Page_Down, workspace, +1
  89. bind = ControlSuper, Page_Up, workspace, -1
  90. bind = SuperAlt, Page_Down, movetoworkspace, +1
  91. bind = SuperAlt, Page_Up, movetoworkspace, -1
  92. bind = SuperShift, Page_Down, movetoworkspace, +1
  93. bind = SuperShift, Page_Up, movetoworkspace, -1
  94. bind = ControlSuperShift, Right, movetoworkspace, +1
  95. bind = ControlSuperShift, Left, movetoworkspace, -1
  96. bind = SuperShift, mouse_down, movetoworkspace, -1
  97. bind = SuperShift, mouse_up, movetoworkspace, +1
  98. bind = SuperAlt, mouse_down, movetoworkspace, -1
  99. bind = SuperAlt, mouse_up, movetoworkspace, +1
  100. # Window split ratio
  101. binde = Super, H, layoutmsg, mfact -0.05
  102. binde = Super, L, layoutmsg, mfact +0.05
  103. # Fullscreen
  104. bind = Super, F, fullscreen, 0
  105. # bind = SuperShift, F, fakefullscreen, 0
  106. # Switching
  107. bind = Super, 1, workspace, 1
  108. bind = Super, 2, workspace, 2
  109. bind = Super, 3, workspace, 3
  110. bind = Super, 4, workspace, 4
  111. bind = Super, 5, workspace, 5
  112. bind = Super, 6, workspace, 6
  113. bind = Super, 7, workspace, 7
  114. bind = Super, 8, workspace, 8
  115. bind = Super, 9, workspace, 9
  116. bind = Super, 0, workspace, 10
  117. bind = Super, S, togglespecialworkspace,
  118. # Move window to workspace Super + Alt + [0-9]
  119. bind = Super Shift, 1, movetoworkspacesilent, 1
  120. bind = Super Shift, 2, movetoworkspacesilent, 2
  121. bind = Super Shift, 3, movetoworkspacesilent, 3
  122. bind = Super Shift, 4, movetoworkspacesilent, 4
  123. bind = Super Shift, 5, movetoworkspacesilent, 5
  124. bind = Super Shift, 6, movetoworkspacesilent, 6
  125. bind = Super Shift, 7, movetoworkspacesilent, 7
  126. bind = Super Shift, 8, movetoworkspacesilent, 8
  127. bind = Super Shift, 9, movetoworkspacesilent, 9
  128. bind = Super Shift, 0, movetoworkspacesilent, 10
  129. bind = ControlShiftSuper, Up, movetoworkspacesilent, special
  130. bind = SuperAlt, S, movetoworkspacesilent, special
  131. # Scroll through existing workspaces with (Control) + Super + scroll
  132. bind = Super, mouse_up, workspace, +1
  133. bind = Super, mouse_down, workspace, -1
  134. bind = ControlSuper, mouse_up, workspace, +1
  135. bind = ControlSuper, mouse_down, workspace, -1
  136. # Move/resize windows with Super + LMB/RMB and dragging
  137. bindm = Super, mouse:272, movewindow
  138. bindm = Super, mouse:273, resizewindow
  139. # bindm = Super, mouse:274, movewindow
  140. bind = ControlSuper, Backslash, resizeactive, exact 640 480
  141. # Master Layout Control
  142. bind = SuperShift, Return, layoutmsg, swapwithmaster
  143. bind = Super, J, layoutmsg, cyclenext
  144. bind = Super, K, layoutmsg, cycleprev
  145. bind = Super, I, layoutmsg, addmaster
  146. bind = Super, D, layoutmsg, removemaster