sxhkdrc 3.1 KB

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