sxhkdrc 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. # Reload functions
  2. super + Escape
  3. "$XDG_CONFIG_HOME"/sxhkd/functions
  4. # make sxhkd reload its configuration files:
  5. super + Escape
  6. pkill -USR1 -x sxhkd
  7. #
  8. # bspwm hotkeys
  9. #
  10. # lock
  11. super + shift + l
  12. qdbus org.freedesktop.ScreenSaver /ScreenSaver Lock
  13. # quit bspwm normally
  14. super + shift + q
  15. dbus-send --print-reply --dest=org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.logout int32:1 int32:0 int32:1
  16. # close and kill
  17. super + {_,shift + }w
  18. bspc node -{c,k}
  19. # alternate between the tiled and monocle layout
  20. super + m
  21. bspc desktop -l next
  22. # send the newest marked node to the newest preselected node
  23. super + y
  24. bspc node newest.marked.local -n newest.!automatic.local
  25. # swap the current node and the biggest node
  26. super + g
  27. bspc node -s biggest
  28. #
  29. # state/flags
  30. #
  31. # set the window state
  32. super + {t,shift + t,s,f}
  33. bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
  34. # set the node flags
  35. super + ctrl + {m,x,y,z}
  36. bspc node -g {marked,locked,sticky,private}
  37. #
  38. # focus/swap
  39. #
  40. # focus the node in the given direction
  41. super + {_,shift + }{h,j,k,l}
  42. bspc node -{f,s} {west,south,north,east}
  43. # focus the node for the given path jump
  44. super + {p,b,comma,period}
  45. bspc node -f @{parent,brother,first,second}
  46. # focus the next/previous node in the current desktop
  47. super + {_,shift + }c
  48. bspc node -f {next,prev}.local
  49. # focus the next/previous desktop in the current monitor
  50. super + bracket{left,right}
  51. bspc desktop -f {prev,next}.local
  52. # focus the last node/desktop
  53. super + {grave,Tab}
  54. bspc {node,desktop} -f last
  55. # focus the older or newer node in the focus history
  56. super + {o,i}
  57. bspc wm -h off; \
  58. bspc node {older,newer} -f; \
  59. bspc wm -h on
  60. # focus or send to the given desktop
  61. super + {_,shift + }{1-9,0}
  62. bspc {desktop -f,node -d} '^{1-9,10}'
  63. #
  64. # preselect
  65. #
  66. # preselect the direction
  67. super + ctrl + {h,j,k,l}
  68. bspc node -p {west,south,north,east}
  69. # preselect the ratio
  70. super + ctrl + {1-9}
  71. bspc node -o 0.{1-9}
  72. # cancel the preselection for the focused node
  73. super + ctrl + space
  74. bspc node -p cancel
  75. # cancel the preselection for the focused desktop
  76. super + ctrl + shift + space
  77. bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
  78. #
  79. # move/resize
  80. #
  81. # expand a window by moving one of its side outward
  82. super + alt + {h,j,k,l}
  83. bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
  84. # contract a window by moving one of its side inward
  85. super + alt + shift + {h,j,k,l}
  86. bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
  87. # move a floating window
  88. super + {Left,Down,Up,Right}
  89. bspc node -v {-20 0,0 20,0 -20,20 0}
  90. # Programs
  91. # terminal emulator
  92. super + shift + Return
  93. konsole
  94. # program launcher
  95. # handled by kde
  96. # super + @space
  97. # dmenu_run