Advertisement
icon_bishop

sxhkdrc

Dec 9th, 2024
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.12 KB | None | 0 0
  1. #
  2. # wm independent hotkeys
  3. #
  4.  
  5. # terminal emulator
  6. super + Return
  7. kitty
  8. super + shift Return
  9. $HOME/.local/bin/dwmscripts/termpad
  10.  
  11. # program launcher
  12. super + @space
  13. rofi -show drun -show-icons
  14.  
  15. # web browser
  16. super + b
  17. vivaldi-stable
  18.  
  19. # Art
  20. super + a
  21. krita
  22. super + shift + a
  23. inkscape
  24. super + ctrl + a
  25. kdenlive
  26. super + shift + ctrl +a
  27. kcolorchooser
  28. super + alt + a
  29. /usr/lib/pentablet/pentablet.sh
  30.  
  31. # Media
  32. super + m
  33. jellyfinmediaplayer
  34. super + shift + m
  35. stremio
  36. super + ctrl + m
  37. smplayer
  38. super + alt + ctrl + m
  39. mpv
  40. super + shift + r
  41. shortwave
  42. super + r
  43. ~/.config/Rofi-Beats/rofi-beats
  44.  
  45. # Office
  46. super + o
  47. ghostwriter
  48. super + shift + o
  49. libreoffice --writer
  50. super + n
  51. Notesnook
  52.  
  53. # File Manager
  54. super + e
  55. thunar
  56. super + shift + e
  57. $HOME/.local/bin/dwmscripts/rgrpad
  58.  
  59. # Lock Screen
  60. super + shift + x
  61. ~/.local/bin/dwmscripts/lockandblur.sh
  62.  
  63. # logout menu
  64. alt + ctrl + q
  65. clearine
  66.  
  67. #flameshot screenshoot
  68. alt + f
  69. flameshot gui
  70.  
  71. # polybar toggles
  72. alt + b
  73. pkill polybar && ~/.config/polybar/launch.sh
  74.  
  75. # Scratchpad
  76. alt + Return
  77. .local/bin/dwmscripts/scpad
  78.  
  79.  
  80.  
  81.  
  82. # make sxhkd reload its configuration files:
  83. super + Escape
  84. pkill -USR1 -x sxhkd
  85.  
  86. #
  87. # bspwm hotkeys
  88. #
  89.  
  90. # Wallpaper changer
  91. super + shift + w
  92. ~/.local/bin/dwmscripts/wall.sh
  93.  
  94. # quit/restart bspwm
  95. super + alt + {q,r}
  96. bspc {quit,wm -r}
  97.  
  98. # close and kill
  99. super + q
  100. bspc node -{c,k}
  101.  
  102. # alternate between the tiled and monocle layout
  103. super + shift + t
  104. bspc desktop -l next
  105.  
  106. # send the newest marked node to the newest preselected node
  107. super + y
  108. bspc node newest.marked.local -n newest.!automatic.local
  109.  
  110. # swap the current node and the biggest window
  111. super + g
  112. bspc node -s biggest.window
  113.  
  114. #
  115. # state/flags
  116. #
  117.  
  118. # set the window state
  119. super + {t,shift + t,s,f}
  120. bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
  121.  
  122. # set the node flags
  123. super + ctrl + {m,x,y,z}
  124. bspc node -g {marked,locked,sticky,private}
  125.  
  126. #
  127. # focus/swap
  128. #
  129.  
  130. # focus the node in the given direction
  131. super + {_,shift + }{h,j,k,l}
  132. bspc node -{f,s} {west,south,north,east}
  133.  
  134. # focus the node for the given path jump
  135. super + {p,b,comma,period}
  136. bspc node -f @{parent,brother,first,second}
  137.  
  138. # focus the next/previous window in the current desktop
  139. super + {_,shift + }c
  140. bspc node -f {next,prev}.local.!hidden.window
  141.  
  142. # focus the next/previous desktop in the current monitor
  143. super + bracket{left,right}
  144. bspc desktop -f {prev,next}.local
  145.  
  146. # focus the last node/desktop
  147. super + {grave,Tab}
  148. bspc {node,desktop} -f last
  149.  
  150. # focus the older or newer node in the focus history
  151. super + alt+ {o,i}
  152. bspc wm -h off; \
  153. bspc node {older,newer} -f; \
  154. bspc wm -h on
  155.  
  156. # focus or send to the given desktop
  157. super + {_,shift + }{1-9,0}
  158. bspc {desktop -f,node -d} '^{1-9,10}'
  159.  
  160. #
  161. # preselect
  162. #
  163.  
  164. # preselect the direction
  165. super + ctrl + {h,j,k,l}
  166. bspc node -p {west,south,north,east}
  167.  
  168. # preselect the ratio
  169. super + ctrl + {1-9}
  170. bspc node -o 0.{1-9}
  171.  
  172. # cancel the preselection for the focused node
  173. super + ctrl + space
  174. bspc node -p cancel
  175.  
  176. # cancel the preselection for the focused desktop
  177. super + ctrl + shift + space
  178. bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
  179.  
  180. #
  181. # move/resize
  182. #
  183.  
  184. # expand a window by moving one of its side outward
  185. super + alt + {h,j,k,l}
  186. bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
  187.  
  188. # contract a window by moving one of its side inward
  189. super + alt + shift + {h,j,k,l}
  190. bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
  191.  
  192. # move a floating window
  193. super + {Left,Down,Up,Right}
  194. bspc node -v {-20 0,0 20,0 -20,20 0}
  195.  
  196.  
  197. # FN keys
  198.  
  199. XF86MonBrightnessUp
  200. brightnessctl s 5%{+} && /home/icon_bishopxxiii/.local/bin/dwmscripts/lightnotify
  201.  
  202. XF86MonBrightnessDown
  203. brightnessctl s 5%{-} && /home/icon_bishopxxiii/.local/bin/dwmscripts/lightnotify
  204.  
  205. XF86AudioLowerVolume
  206. pamixer -d 5 && /home/icon_bishopxxiii/.local/bin/dwmscripts/volumenotify
  207.  
  208. XF86AudioRaiseVolume
  209. pamixer --allow-boost -i 5 && /home/icon_bishopxxiii/.local/bin/dwmscripts/volumenotify
  210.  
  211. XF86AudioMute
  212. /home/icon_bishopxxiii/.local/bin/dwmscripts/volumeMute
Tags: sxhkd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement