Advertisement
Guest User

Scuba help!

a guest
Apr 13th, 2022
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.08 KB | None | 0 0
  1. my bspwmrc
  2.  
  3. #! /bin/sh
  4.  
  5. pgrep -x sxhkd > /dev/null || sxhkd &
  6.  
  7. nitrogen --restore
  8.  
  9. picom -f
  10.  
  11. bspc monitor -d 1 2 3 4 5 6 7 8 9 10
  12.  
  13. bspc config border_width 2
  14. bspc config window_gap 12
  15.  
  16. bspc config split_ratio 0.52
  17. bspc config borderless_monocle true
  18. bspc config gapless_monocle true
  19.  
  20. bspc rule -a Gimp desktop='^8' state=floating follow=on
  21. bspc rule -a Chromium desktop='^2'
  22. bspc rule -a mplayer2 state=floating
  23. bspc rule -a Kupfer.py focus=on
  24. bspc rule -a Screenkey manage=off
  25.  
  26.  
  27.  
  28. my sxhdrc
  29.  
  30.  
  31. #
  32. # wm independent hotkeys
  33. #
  34.  
  35. # terminal emulator
  36. super + Return
  37. xfce4-terminal
  38.  
  39. # program launcher
  40. super + @space
  41. dmenu_run
  42.  
  43. # make sxhkd reload its configuration files:
  44. super + Escape
  45. pkill -USR1 -x sxhkd
  46.  
  47. #
  48. # bspwm hotkeys
  49. #
  50.  
  51. # quit/restart bspwm
  52. super + alt + {q,r}
  53. bspc {quit,wm -r}
  54.  
  55. # close and kill
  56. super + {_,shift + }w
  57. bspc node -{c,k}
  58.  
  59. # alternate between the tiled and monocle layout
  60. super + m
  61. bspc desktop -l next
  62.  
  63. # send the newest marked node to the newest preselected node
  64. super + y
  65. bspc node newest.marked.local -n newest.!automatic.local
  66.  
  67. # swap the current node and the biggest window
  68. super + g
  69. bspc node -s biggest.window
  70.  
  71. #
  72. # state/flags
  73. #
  74.  
  75. # set the window state
  76. super + {t,shift + t,s,f}
  77. bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
  78.  
  79. # set the node flags
  80. super + ctrl + {m,x,y,z}
  81. bspc node -g {marked,locked,sticky,private}
  82.  
  83. #
  84. # focus/swap
  85. #
  86.  
  87. # focus the node in the given direction
  88. super + {_,shift + }{h,j,k,l}
  89. bspc node -{f,s} {west,south,north,east}
  90.  
  91. # focus the node for the given path jump
  92. super + {p,b,comma,period}
  93. bspc node -f @{parent,brother,first,second}
  94.  
  95. # focus the next/previous window in the current desktop
  96. super + {_,shift + }c
  97. bspc node -f {next,prev}.local.!hidden.window
  98.  
  99. # focus the next/previous desktop in the current monitor
  100. super + bracket{left,right}
  101. bspc desktop -f {prev,next}.local
  102.  
  103. # focus the last node/desktop
  104. super + {grave,Tab}
  105. bspc {node,desktop} -f last
  106.  
  107. # focus the older or newer node in the focus history
  108. super + {o,i}
  109. bspc wm -h off; \
  110. bspc node {older,newer} -f; \
  111. bspc wm -h on
  112.  
  113. # focus or send to the given desktop
  114. super + {_,shift + }{1-9,0}
  115. bspc {desktop -f,node -d} '^{1-9,10}'
  116.  
  117. #
  118. # preselect
  119. #
  120.  
  121. # preselect the direction
  122. super + ctrl + {h,j,k,l}
  123. bspc node -p {west,south,north,east}
  124.  
  125. # preselect the ratio
  126. super + ctrl + {1-9}
  127. bspc node -o 0.{1-9}
  128.  
  129. # cancel the preselection for the focused node
  130. super + ctrl + space
  131. bspc node -p cancel
  132.  
  133. # cancel the preselection for the focused desktop
  134. super + ctrl + shift + space
  135. bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
  136.  
  137. #
  138. # move/resize
  139. #
  140.  
  141. # expand a window by moving one of its side outward
  142. super + alt + {h,j,k,l}
  143. bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
  144.  
  145. # contract a window by moving one of its side inward
  146. super + alt + shift + {h,j,k,l}
  147. bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
  148.  
  149. # move a floating window
  150. super + {Left,Down,Up,Right}
  151. bspc node -v {-20 0,0 20,0 -20,20 0}
  152.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement