sxhkdrc 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. # Reload functions
  2. alt + Escape
  3. "$XDG_CONFIG_HOME"/sxhkd/functions
  4. alt + shift + p
  5. passmenu --type -i
  6. Print
  7. ~/.scripts/screenshot.sh
  8. alt + shift + e
  9. ~/.scripts/exit_menu.sh
  10. alt + shift + x
  11. ~/.scripts/img-chon.sh query-dmenu
  12. # Launch programs
  13. alt + shift + s
  14. spotify
  15. alt + shift + f
  16. $BROWSER
  17. alt + shift + Return
  18. $TERMINAL
  19. alt + shift + m
  20. $TERMINAL neomutt
  21. alt + p
  22. dmenu_run
  23. # Media controls
  24. XF86AudioRaiseVolume
  25. pulseaudio-ctl up 4; pkill --signal=USR1 dwm_status.sh
  26. XF86AudioLowerVolume
  27. pulseaudio-ctl down 4; pkill --signal=USR1 dwm_status.sh
  28. XF86AudioMute
  29. pulseaudio-ctl mute; pkill --signal=USR1 dwm_status.sh
  30. XF86AudioPlay
  31. playerctl play-pause || mpc toggle
  32. XF86AudioNext
  33. playerctl next || mpc next; pkill --signal=USR1 dwm_status.sh
  34. XF86AudioPrev
  35. playerctl previous || mpc prev; pkill --signal=USR1 dwm_status.sh
  36. alt + z
  37. mpc toggle; pkill --signal=USR1 dwm_status.sh
  38. alt + x
  39. mpc next; pkill --signal=USR1 dwm_status.sh
  40. #
  41. # bspwm hotkeys
  42. #
  43. ## quit/restart bspwm
  44. #alt + alt + {q,r}
  45. # bspc {quit,wm -r}
  46. #
  47. ## close and kill
  48. #alt + {_,shift + }w
  49. # bspc node -{c,k}
  50. #
  51. ## alternate between the tiled and monocle layout
  52. #alt + m
  53. # bspc desktop -l next
  54. #
  55. ## send the newest marked node to the newest preselected node
  56. #alt + y
  57. # bspc node newest.marked.local -n newest.!automatic.local
  58. #
  59. ## swap the current node and the biggest node
  60. #alt + g
  61. # bspc node -s biggest
  62. #
  63. ##
  64. ## state/flags
  65. ##
  66. #
  67. ## set the window state
  68. #alt + {t,shift + t,s,f}
  69. # bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
  70. #
  71. ## set the node flags
  72. #alt + ctrl + {m,x,y,z}
  73. # bspc node -g {marked,locked,sticky,private}
  74. #
  75. ##
  76. ## focus/swap
  77. ##
  78. #
  79. ## focus the node in the given direction
  80. #alt + {_,shift + }{h,j,k,l}
  81. # bspc node -{f,s} {west,south,north,east}
  82. #
  83. ## focus the node for the given path jump
  84. #alt + {p,b,comma,period}
  85. # bspc node -f @{parent,brother,first,second}
  86. #
  87. ## focus the next/previous node in the current desktop
  88. #alt + {_,shift + }c
  89. # bspc node -f {next,prev}.local
  90. #
  91. ## focus the next/previous desktop in the current monitor
  92. #alt + bracket{left,right}
  93. # bspc desktop -f {prev,next}.local
  94. #
  95. ## focus the last node/desktop
  96. #alt + {grave,Tab}
  97. # bspc {node,desktop} -f last
  98. #
  99. ## focus the older or newer node in the focus history
  100. #alt + {o,i}
  101. # bspc wm -h off; \
  102. # bspc node {older,newer} -f; \
  103. # bspc wm -h on
  104. #
  105. ## focus or send to the given desktop
  106. #alt + {_,shift + }{1-9,0}
  107. # bspc {desktop -f,node -d} '^{1-9,10}'
  108. #
  109. ##
  110. ## preselect
  111. ##
  112. #
  113. ## preselect the direction
  114. #alt + ctrl + {h,j,k,l}
  115. # bspc node -p {west,south,north,east}
  116. #
  117. ## preselect the ratio
  118. #alt + ctrl + {1-9}
  119. # bspc node -o 0.{1-9}
  120. #
  121. ## cancel the preselection for the focused node
  122. #alt + ctrl + space
  123. # bspc node -p cancel
  124. #
  125. ## cancel the preselection for the focused desktop
  126. #alt + ctrl + shift + space
  127. # bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
  128. #
  129. ##
  130. ## move/resize
  131. ##
  132. #
  133. ## expand a window by moving one of its side outward
  134. #alt + alt + {h,j,k,l}
  135. # bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
  136. #
  137. ## contract a window by moving one of its side inward
  138. #alt + alt + shift + {h,j,k,l}
  139. # bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
  140. #
  141. ## move a floating window
  142. #alt + {Left,Down,Up,Right}
  143. # bspc node -v {-20 0,0 20,0 -20,20 0}