NixOS configs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

142 lines
2.8 KiB

  1. #
  2. # wm independent hotkeys
  3. #
  4. # terminal emulator
  5. super + Return
  6. kitty
  7. # browser
  8. super + shift + w
  9. brave
  10. # program launcher
  11. super + {p,space}
  12. dmenu_run -fn "Fira Code:size=14"
  13. # make sxhkd reload its configuration files:
  14. super + Escape
  15. pkill -USR1 -x sxhkd
  16. #
  17. # bspwm hotkeys
  18. #
  19. # quit/restart bspwm
  20. super + shift + r
  21. bspc wm -r
  22. super + shift + p
  23. ~/.config/polybar/launch.bspwm.sh
  24. super + shift + e
  25. ~/scripts/bin/quit.sh
  26. # close and kill
  27. super + shift + q
  28. bspc node -c
  29. # alternate between the tiled and monocle layout
  30. super + m
  31. bspc desktop -l next
  32. # send the newest marked node to the newest preselected node
  33. super + y
  34. bspc node newest.marked.local -n newest.!automatic.local
  35. # swap the current node and the biggest window
  36. super + g
  37. bspc node -s biggest.window
  38. #
  39. # state/flags
  40. #
  41. # set the window state
  42. super + {t,shift + t,s,f}
  43. bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
  44. # set the node flags
  45. super + ctrl + {m,x,y,z}
  46. bspc node -g {marked,locked,sticky,private}
  47. #
  48. # focus/swap
  49. #
  50. # focus the node in the given direction
  51. super + {_,shift + }{h,j,k,l}
  52. bspc node -{f,s} {west,south,north,east}
  53. # focus the node for the given path jump
  54. #super + {p,b,comma,period}
  55. # bspc node -f @{parent,brother,first,second}
  56. # focus the next/previous window in the current desktop
  57. super + {_,shift + }c
  58. bspc node -f {next,prev}.local.!hidden.window
  59. # focus the next/previous desktop in the current monitor
  60. super + bracket{left,right}
  61. bspc desktop -f {prev,next}.local
  62. # focus the last node/desktop
  63. super + {grave,Tab}
  64. bspc {node,desktop} -f last
  65. # focus the older or newer node in the focus history
  66. super + {o,i}
  67. bspc wm -h off; \
  68. bspc node {older,newer} -f; \
  69. bspc wm -h on
  70. # focus or send to the given desktop
  71. super + {_,shift + }{1-9,0}
  72. bspc {desktop -f,node -d} '^{1-9,10}'
  73. #
  74. # preselect
  75. #
  76. # preselect the direction
  77. super + ctrl + {h,j,k,l}
  78. bspc node -p {west,south,north,east}
  79. # preselect the ratio
  80. super + ctrl + {1-9}
  81. bspc node -o 0.{1-9}
  82. # cancel the preselection for the focused node
  83. super + ctrl + space
  84. bspc node -p cancel
  85. # cancel the preselection for the focused desktop
  86. super + ctrl + shift + space
  87. bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
  88. #
  89. # move/resize
  90. #
  91. # expand a window by moving one of its side outward
  92. super + alt + {h,j,k,l}
  93. bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
  94. # contract a window by moving one of its side inward
  95. super + alt + shift + {h,j,k,l}
  96. bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
  97. # move a floating window
  98. super + {Left,Down,Up,Right}
  99. bspc node -v {-20 0,0 20,0 -20,20 0}
  100. # old alt keybindings
  101. #
  102. alt + {Up,Down}
  103. pactl set-sink-volume 0 {+5%,-5%}
  104. # screenshot capability
  105. super + shift + s
  106. mkdir -p ~/screenshots
  107. scrot ~/screenshots/%Y-%m-%d-%T-screenshot.png