Guest User

Untitled

a guest
Jul 26th, 2023
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.73 KB | None | 0 0
  1. #
  2. # wm independent hotkeys
  3. #
  4.  
  5. # terminal emulator
  6. super + Return
  7.     alacritty # My change
  8.  
  9. # program launcher
  10. super + @space
  11.     # dmenu_run
  12.     rofi -show drun 2>&1 > /tmp/rofi.log # My change
  13.  
  14. # make sxhkd reload its configuration files:
  15. super + Escape
  16.     pkill -USR1 -x sxhkd
  17.  
  18. #
  19. # bspwm hotkeys
  20. #
  21.  
  22. # quit/restart bspwm
  23. super + alt + {q,r}
  24.     bspc {quit,wm -r}
  25.  
  26. # close and kill
  27. super + {_,shift + }q
  28.     bspc node -{c,k}
  29.  
  30. # alternate between the tiled and monocle layout
  31. super + m
  32.     bspc desktop -l next
  33.  
  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.  
  38. # swap the current node and the biggest window
  39. super + g
  40.     bspc node -s biggest.window
  41.  
  42. #
  43. # state/flags
  44. #
  45.  
  46. # set the window state
  47. super + {t,shift + t,s,f}
  48.     bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
  49.  
  50. # set the node flags
  51. super + ctrl + {m,x,y,z}
  52.     bspc node -g {marked,locked,sticky,private}
  53.  
  54. #
  55. # focus/swap
  56. #
  57.  
  58. # focus the node in the given direction
  59. super + {_,shift + }{h,j,k,l}
  60.     bspc node -{f,s} {west,south,north,east}
  61.  
  62. # focus the node for the given path jump
  63. super + {p,b,comma,period}
  64.     bspc node -f @{parent,brother,first,second}
  65.  
  66. # focus the next/previous window in the current desktop
  67. super + {_,shift + }c
  68.     bspc node -f {next,prev}.local.!hidden.window
  69.  
  70. # focus the next/previous desktop in the current monitor
  71. super + bracket{left,right}
  72.     bspc desktop -f {prev,next}.local
  73.  
  74. # focus the last node/desktop
  75. super + {grave,Tab}
  76.     bspc {node,desktop} -f last
  77.  
  78. # focus the older or newer node in the focus history
  79. super + {o,i}
  80.     bspc wm -h off; \
  81.     bspc node {older,newer} -f; \
  82.     bspc wm -h on
  83.  
  84. # focus or send to the given desktop
  85. super + {_,shift + }{1-9,0}
  86.     bspc {desktop -f,node -d} '^{1-9,10}'
  87.  
  88. #
  89. # preselect
  90. #
  91.  
  92. # preselect the direction
  93. super + ctrl + {h,j,k,l}
  94.     bspc node -p {west,south,north,east}
  95.  
  96. # preselect the ratio
  97. super + ctrl + {1-9}
  98.     bspc node -o 0.{1-9}
  99.  
  100. # cancel the preselection for the focused node
  101. super + ctrl + space
  102.     bspc node -p cancel
  103.  
  104. # cancel the preselection for the focused desktop
  105. super + ctrl + shift + space
  106.     bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
  107.  
  108. #
  109. # move/resize
  110. #
  111.  
  112. # expand a window by moving one of its side outward
  113. super + alt + {h,j,k,l}
  114.     bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
  115.  
  116. # contract a window by moving one of its side inward
  117. super + alt + shift + {h,j,k,l}
  118.     bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
  119.  
  120. # move a floating window
  121. super + {Left,Down,Up,Right}
  122.     bspc node -v {-20 0,0 20,0 -20,20 0}
  123.  
  124. #########################
  125. # MY COMPLETE ADDITIONS #
  126. #########################
  127.  
  128. # clipboard history with copyq
  129. super + v
  130.     copyq menu
Advertisement
Add Comment
Please, Sign In to add comment