Archlinux basic installation configuration scripts
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.

170 lines
3.1 KiB

  1. #
  2. # wm independent hotkeys
  3. #
  4. # Hide Polybar
  5. super + y
  6. polybar-msg cmd hide
  7. # Hide Top
  8. super + Y
  9. bspc config top_padding 0
  10. # Show Polybar
  11. super + p
  12. polybar-msg cmd show
  13. # terminal emulator
  14. super + Return
  15. urxvt
  16. # program launcher
  17. super + @space
  18. dmenu_run
  19. # make sxhkd reload its configuration files:
  20. super + Escape
  21. pkill -USR1 -x sxhkd
  22. #
  23. # bspwm hotkeys
  24. #
  25. # quit/restart bspwm
  26. super + alt + {q,r}
  27. bspc {quit,wm -r}
  28. # close and kill
  29. super + {_,shift + }w
  30. bspc node -{c,k}
  31. # alternate between the tiled and monocle layout
  32. super + m
  33. bspc desktop -l next
  34. # send the newest marked node to the newest preselected node
  35. super + y
  36. bspc node newest.marked.local -n newest.!automatic.local
  37. # swap the current node and the biggest window
  38. super + g
  39. bspc node -s biggest.window
  40. #
  41. # state/flags
  42. #
  43. # set the window state
  44. super + {t,shift + t,s,f}
  45. bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
  46. # set the node flags
  47. super + ctrl + {m,x,y,z}
  48. bspc node -g {marked,locked,sticky,private}
  49. #
  50. # focus/swap
  51. #
  52. # focus the node in the given direction
  53. super + {_,shift + }{h,j,k,l}
  54. bspc node -{f,s} {west,south,north,east}
  55. # focus the node for the given path jump
  56. super + {p,b,comma,period}
  57. bspc node -f @{parent,brother,first,second}
  58. # focus the next/previous window in the current desktop
  59. super + {_,shift + }c
  60. bspc node -f {next,prev}.local.!hidden.window
  61. # focus the next/previous desktop in the current monitor
  62. super + bracket{left,right}
  63. bspc desktop -f {prev,next}.local
  64. # focus the last node/desktop
  65. super + {grave,Tab}
  66. bspc {node,desktop} -f last
  67. # focus the older or newer node in the focus history
  68. super + {o,i}
  69. bspc wm -h off; \
  70. bspc node {older,newer} -f; \
  71. bspc wm -h on
  72. # focus or send to the given desktop
  73. super + {_,shift + }{1-9,0}
  74. bspc {desktop -f,node -d} '^{1-9,10}'
  75. #
  76. # preselect
  77. #
  78. # preselect the direction
  79. super + ctrl + {h,j,k,l}
  80. bspc node -p {west,south,north,east}
  81. # preselect the ratio
  82. super + ctrl + {1-9}
  83. bspc node -o 0.{1-9}
  84. # cancel the preselection for the focused node
  85. super + ctrl + space
  86. bspc node -p cancel
  87. # cancel the preselection for the focused desktop
  88. super + ctrl + shift + space
  89. bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
  90. #
  91. # move/resize
  92. #
  93. # expand a window by moving one of its side outward
  94. super + alt + {h,j,k,l}
  95. bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
  96. # contract a window by moving one of its side inward
  97. super + alt + shift + {h,j,k,l}
  98. bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
  99. # move a floating window
  100. super + {Left,Down,Up,Right}
  101. bspc node -v {-20 0,0 20,0 -20,20 0}
  102. # play/pause
  103. super + shift + space
  104. playerctl play-pause --player=spotify
  105. # next
  106. super + shift + Right
  107. playerctl next --player=spotify
  108. # previous
  109. super + shift + Left
  110. playerctl previous --player=spotify
  111. # volume control
  112. XF86AudioLowerVolume
  113. amixer set Master 5%-
  114. XF86AudioRaiseVolume
  115. amixer set Master 5%+
  116. XF86AudioMute
  117. amixer set Master toggle
  118. # brightness control
  119. XF86MonBrightnessDown
  120. xbacklight -dec 5
  121. XF86MonBrightnessUp
  122. xbacklight -inc 5
  123. # lockscreen
  124. super + x
  125. light-locker-command -l
  126. # browser
  127. super + alt + b
  128. firefox
  129. # scrot
  130. super + alt +s
  131. scrot