Advertisement
Guest User

Untitled

a guest
Mar 21st, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.22 KB | None | 0 0
  1. #
  2. # wm independent hotkeys
  3. #
  4.  
  5. # terminal emulator
  6. alt + Return
  7. urxvt
  8.  
  9. # program launcher
  10. #alt + @space
  11. # dmenu_run
  12.  
  13. # make sxhkd reload its configuration files:
  14. alt + ctrl + Escape
  15. pkill -USR1 -x sxhkd
  16.  
  17. #
  18. # bspwm hotkeys
  19. #
  20.  
  21. # quit bspwm normally
  22. alt + ctrl + q
  23. bspc quit
  24.  
  25. # close and kill
  26. alt + {_,shift + }q
  27. bspc node -{c,k}
  28.  
  29. # alternate between the tiled and monocle layout
  30. alt + m
  31. bspc desktop -l next
  32.  
  33. # if the current node is automatic, send it to the last manual, otherwise pull the last leaf
  34. alt + y
  35. bspc query -N -n focused.automatic && bspc node -n last.!automatic || bspc node last.leaf -n focused
  36.  
  37. # swap the current node and the biggest node
  38. alt + g
  39. bspc node -s biggest
  40.  
  41. #
  42. # state/flags
  43. #
  44.  
  45. # set the window state
  46. alt + {t,shift + t,r,f}
  47. bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
  48.  
  49. # set the node flags
  50. alt + ctrl + {x,y,z}
  51. bspc node -g {locked,sticky,private}
  52.  
  53. #
  54. # focus/swap
  55. #
  56.  
  57. # focus the node in the given direction
  58. alt + {_,shift + }{a,s,w,d}
  59. bspc node -{f,s} {west,south,north,east}
  60.  
  61. # focus the node for the given path jump
  62. alt + {p,b,comma,period}
  63. bspc node -f @{parent,brother,first,second}
  64.  
  65. # focus the next/previous node in the current desktop
  66. alt + {_,shift + }c
  67. bspc node -f {next,prev}.local
  68.  
  69. # focus the next/previous desktop in the current monitor
  70. alt + bracket{left,right}
  71. bspc desktop -f {prev,next}.local
  72.  
  73. # focus the last node/desktop
  74. alt + {grave,~}
  75. bspc {node,desktop} -f last
  76.  
  77. # focus the older or newer node in the focus history
  78. alt + {o,i}
  79. bspc wm -h off; \
  80. bspc node {older,newer} -f; \
  81. bspc wm -h on
  82.  
  83. # focus or send to the given desktop
  84. alt + {_,shift + }{1-9,0}
  85. bspc {desktop -f,node -d} '^{1-9,10}'
  86.  
  87. #
  88. # preselect
  89. #
  90.  
  91. # preselect the direction
  92. alt + ctrl + {a,s,w,d}
  93. bspc node -p {west,south,north,east}
  94.  
  95. # preselect the ratio
  96. alt + ctrl + {1-9}
  97. bspc node -o 0.{1-9}
  98.  
  99. # cancel the preselection for the focused node
  100. alt + ctrl + space
  101. bspc node -p cancel
  102.  
  103. # cancel the preselection for the focused desktop
  104. alt + ctrl + shift + space
  105. bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
  106.  
  107. #
  108. # move/resize
  109. #
  110.  
  111. # expand a window by moving one of its side outward
  112. alt + ctrl + {Left,Down,Up,Right}
  113. bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
  114.  
  115. # contract a window by moving one of its side inward
  116. alt + ctrl + shift + {Left,Down,Up,Right}
  117. bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
  118.  
  119. # move a floating window
  120. alt + {Left,Down,Up,Right}
  121. bspc node -v {-20 0,0 20,0 -20,20 0}
  122.  
  123. # Balance the windows (all take up the same area)
  124. alt + z
  125. bspc desktop @/ -B
  126.  
  127. # Change window gap
  128. alt + {minus,equal}
  129. bspc config -d focused window_gap $((`bspc config -d focused window_gap` {+,-} 2 ))
  130.  
  131. # Change padding (for all tiled windows)
  132. ctrl + {l,h}
  133. bspc config -d focused left_padding $((`bspc config -d focused left_padding` {+,-} 20 ))
  134.  
  135. alt + {l,h}
  136. bspc config -d focused right_padding $((`bspc config -d focused right_padding` {-,+} 20 ))
  137.  
  138. alt + {j,k}
  139. bspc config -d focused top_padding $((`bspc config -d focused top_padding` {-,+} 20 ))
  140.  
  141. ctrl + {j,k}
  142. bspc config -d focused bottom_padding $((`bspc config -d focused bottom_padding` {-,+} 20 ))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement