Lemur Pro nixos dotfiles
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.

165 lines
3.3 KiB

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