sxhkdrc 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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. #
  37. # bspwm hotkeys
  38. #
  39. ## quit/restart bspwm
  40. #alt + alt + {q,r}
  41. # bspc {quit,wm -r}
  42. #
  43. ## close and kill
  44. #alt + {_,shift + }w
  45. # bspc node -{c,k}
  46. #
  47. ## alternate between the tiled and monocle layout
  48. #alt + m
  49. # bspc desktop -l next
  50. #
  51. ## send the newest marked node to the newest preselected node
  52. #alt + y
  53. # bspc node newest.marked.local -n newest.!automatic.local
  54. #
  55. ## swap the current node and the biggest node
  56. #alt + g
  57. # bspc node -s biggest
  58. #
  59. ##
  60. ## state/flags
  61. ##
  62. #
  63. ## set the window state
  64. #alt + {t,shift + t,s,f}
  65. # bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
  66. #
  67. ## set the node flags
  68. #alt + ctrl + {m,x,y,z}
  69. # bspc node -g {marked,locked,sticky,private}
  70. #
  71. ##
  72. ## focus/swap
  73. ##
  74. #
  75. ## focus the node in the given direction
  76. #alt + {_,shift + }{h,j,k,l}
  77. # bspc node -{f,s} {west,south,north,east}
  78. #
  79. ## focus the node for the given path jump
  80. #alt + {p,b,comma,period}
  81. # bspc node -f @{parent,brother,first,second}
  82. #
  83. ## focus the next/previous node in the current desktop
  84. #alt + {_,shift + }c
  85. # bspc node -f {next,prev}.local
  86. #
  87. ## focus the next/previous desktop in the current monitor
  88. #alt + bracket{left,right}
  89. # bspc desktop -f {prev,next}.local
  90. #
  91. ## focus the last node/desktop
  92. #alt + {grave,Tab}
  93. # bspc {node,desktop} -f last
  94. #
  95. ## focus the older or newer node in the focus history
  96. #alt + {o,i}
  97. # bspc wm -h off; \
  98. # bspc node {older,newer} -f; \
  99. # bspc wm -h on
  100. #
  101. ## focus or send to the given desktop
  102. #alt + {_,shift + }{1-9,0}
  103. # bspc {desktop -f,node -d} '^{1-9,10}'
  104. #
  105. ##
  106. ## preselect
  107. ##
  108. #
  109. ## preselect the direction
  110. #alt + ctrl + {h,j,k,l}
  111. # bspc node -p {west,south,north,east}
  112. #
  113. ## preselect the ratio
  114. #alt + ctrl + {1-9}
  115. # bspc node -o 0.{1-9}
  116. #
  117. ## cancel the preselection for the focused node
  118. #alt + ctrl + space
  119. # bspc node -p cancel
  120. #
  121. ## cancel the preselection for the focused desktop
  122. #alt + ctrl + shift + space
  123. # bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
  124. #
  125. ##
  126. ## move/resize
  127. ##
  128. #
  129. ## expand a window by moving one of its side outward
  130. #alt + alt + {h,j,k,l}
  131. # bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
  132. #
  133. ## contract a window by moving one of its side inward
  134. #alt + alt + shift + {h,j,k,l}
  135. # bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
  136. #
  137. ## move a floating window
  138. #alt + {Left,Down,Up,Right}
  139. # bspc node -v {-20 0,0 20,0 -20,20 0}