Advertisement
Guest User

parrot terminal conf

a guest
Apr 8th, 2020
957
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.61 KB | None | 0 0
  1. ------------------- bspwmrc -------------------
  2. #! /bin/sh
  3.  
  4. sxhkd &
  5. compton --config /root/.config/compton/compton.conf &
  6. wmname LG3D &
  7. feh --bg-fill /root/Pictures/lck.jpg &
  8. ~/.config/polybar/launch.sh &
  9.  
  10. bspc config pointer modifier mod1
  11. bspc monitor -d I II III IV V VI VII VIII IX X
  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. -------------------------- sxhkdrc --------------------------
  27.  
  28. #
  29. # wm independent hotkeys
  30. #
  31.  
  32. # terminal emulator
  33. super + Return
  34.     gnome-terminal
  35.  
  36. # program launcher
  37. super + d
  38.     rofi -show run
  39.  
  40. # make sxhkd reload its configuration files:
  41. super + Escape
  42.     pkill -USR1 -x sxhkd
  43.  
  44. #
  45. # bspwm hotkeys
  46. #
  47.  
  48. # quit/restart bspwm
  49. super + alt + {q,r}
  50.     bspc {quit,wm -r}
  51.  
  52. # close and kill
  53. super + {_,shift + }w
  54.     bspc node -{c,k}
  55.  
  56. # alternate between the tiled and monocle layout
  57. super + m
  58.     bspc desktop -l next
  59.  
  60. # send the newest marked node to the newest preselected node
  61. super + y
  62.     bspc node newest.marked.local -n newest.!automatic.local
  63.  
  64. # swap the current node and the biggest node
  65. super + g
  66.     bspc node -s biggest
  67.  
  68. #
  69. # state/flags
  70. #
  71.  
  72. # set the window state
  73. super + {t,shift + t,s,f}
  74.     bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
  75.  
  76. # set the node flags
  77. super + ctrl + {m,x,y,z}
  78.     bspc node -g {marked,locked,sticky,private}
  79.  
  80. #
  81. # focus/swap
  82. #
  83.  
  84. # focus the node in the given direction
  85. super + {_,shift + }{Left,Down,Up,Right}
  86.     bspc node -{f,s} {west,south,north,east}
  87.  
  88. # focus the node for the given path jump
  89. super + {p,b,comma,period}
  90.     bspc node -f @{parent,brother,first,second}
  91.  
  92. # focus the next/previous node in the current desktop
  93. super + {_,shift + }c
  94.     bspc node -f {next,prev}.local
  95.  
  96. # focus the next/previous desktop in the current monitor
  97. super + bracket{left,right}
  98.     bspc desktop -f {prev,next}.local
  99.  
  100. # focus the last node/desktop
  101. super + {grave,Tab}
  102.     bspc {node,desktop} -f last
  103.  
  104. # focus the older or newer node in the focus history
  105. super + {o,i}
  106.     bspc wm -h off; \
  107.     bspc node {older,newer} -f; \
  108.     bspc wm -h on
  109.  
  110. # focus or send to the given desktop
  111. super + {_,shift + }{1-9,0}
  112.     bspc {desktop -f,node -d} '^{1-9,10}'
  113.  
  114. #
  115. # preselect
  116. #
  117.  
  118. # preselect the direction
  119. super + ctrl + alt + {Left,Down,Up,Right}
  120.     bspc node -p {west,south,north,east}
  121.  
  122. # preselect the ratio
  123. super + ctrl + {1-9}
  124.     bspc node -o 0.{1-9}
  125.  
  126. # cancel the preselection for the focused node
  127. super + ctrl + space
  128.     bspc node -p cancel
  129.  
  130. # cancel the preselection for the focused desktop
  131. super + ctrl + shift + space
  132.     bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
  133.  
  134. #
  135. # move/resize
  136. #
  137.  
  138. # expand a window by moving one of its side outward
  139. #super + alt + {h,j,k,l}
  140. #   bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
  141.  
  142. # contract a window by moving one of its side inward
  143. #super + alt + shift + {h,j,k,l}
  144. #   bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
  145.  
  146. # move a floating window
  147. super + ctrl + {Left,Down,Up,Right}
  148.     bspc node -v {-20 0,0 20,0 -20,20 0}
  149.  
  150. #========================================
  151. #CUSTOM
  152. #========================================
  153.  
  154. #Custom move/resize
  155. alt + ctrl + {Left,Down,Up,Right}
  156.     /root/.config/bspwm/scripts/bspwm_resize {west,south,north,east}
  157.  
  158. # Google-Chrome
  159.  
  160. super + shift + g
  161.     google-chrome --no-sandbox
  162. # Firefox
  163.  
  164. super + shift + f
  165.     firefox
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement