rudylorren

Untitled

Jan 19th, 2014
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.49 KB | None | 0 0
  1. FOR THE MAIN CONFIG FILE
  2. #! /bin/sh
  3.  
  4. bspc monitor -d • • • • • • • • • •
  5.  
  6. #! /bin/sh
  7.  
  8.  
  9. bspc config border_width 3
  10. bspc config window_gap 15
  11. bspc config split_ratio 0.55
  12. bspc config borderless_monocle true
  13. bspc config gapless_monocle true
  14.  
  15. bspc rule -a Screenkey --unmanage
  16. bspc rule -a Gcolor2 floating=true center=true
  17. bspc rule -a Lxappearance floating=true center=true
  18. bspc rule -a Gmrun floating=true center=true
  19. bspc rule -a Lxterminal floating=true center=true
  20.  
  21. bspc config normal_frame_opacity 0.0
  22. bspc config focused_frame_opacity 0.05
  23. bspc config focused_border_color "#91291D"
  24. bspc config normal_border_color "#404040"
  25. bspc config focus_follows_pointer true
  26.  
  27. compton -b &
  28. #panel
  29.  
  30. PANEL_HEIGHT=16
  31. PANEL_FIFO="/tmp/panel-fifo"
  32. PANEL_FONT="DejaVu Sans Mono:size=9"
  33.  
  34. bspc config top_padding $PANEL_HEIGHT
  35.  
  36. killall bspwmstatus dzen2 bspc xtitle
  37.  
  38. [ -e "$PANEL_FIFO" ] && rm "$PANEL_FIFO"
  39. mkfifo "$PANEL_FIFO"
  40.  
  41. bspc control --subscribe > "$PANEL_FIFO" &
  42. xtitle -sf 'T%s' > "$PANEL_FIFO" & # Optional: for window title
  43. bspwmstatus | dzen2 -fn "$PANEL_FONT" -h $PANEL_HEIGHT -ta l &
  44.  
  45. panel dzen2
  46.  
  47.  
  48. FOR THE HOTKEYS
  49.  
  50. #
  51. # bspwm hotkeys
  52. #
  53.  
  54. super + alt + Escape
  55. pkill -x panel; bspc quit
  56.  
  57. # Close current window
  58. super + x
  59. bspc window -c
  60.  
  61. # Monocle toggle
  62. super + t
  63. bspc desktop -l next
  64.  
  65. # Presets window distribution
  66. super + b
  67. bspc desktop -B
  68.  
  69. # s - float / f - fullscreen
  70. super + {s,f}
  71. bspc window -t {floating,fullscreen}
  72.  
  73. # Focus next window
  74. super + {grave,Tab}
  75. bspc {window,desktop} -f last
  76.  
  77. # swap window with the last
  78. super + apostrophe
  79. bspc window -s last
  80.  
  81. # previous window in history
  82. super + {o,i}
  83. bspc control --record-history off; \
  84. bspc window {older,newer} -f; \
  85. bspc control --record-history on
  86.  
  87. super + y
  88. bspc window -w last.manual
  89.  
  90. # move current window to biggest spot
  91. super + m
  92. bspc window -s biggest
  93.  
  94. # move current window left,down,up,right
  95. super + {_,shift + }{h,j,k,l}
  96. bspc window -{f,s} {left,down,up,right}
  97.  
  98. # cycle windows
  99. super + {_,shift + }c
  100. bspc window -f {next,prev}
  101.  
  102. # move window back and forth
  103. super + {comma,period}
  104. bspc desktop -C {backward,forward}
  105.  
  106. # change desktop left and right
  107. super + bracket{left,right}
  108. bspc desktop -f {prev,next}
  109.  
  110. # move focus left,down,up,right
  111. super + ctrl + {h,j,k,l}
  112. bspc window -p {left,down,up,right}
  113.  
  114. super + ctrl + {_,shift + }space
  115. bspc {window -p cancel,desktop -c}
  116.  
  117. # Resize window
  118. super + alt + {h,j,k,l}
  119. bspc window -e {left -10,down +10,up -10,right +10}
  120.  
  121. # Resize window
  122. super + alt + shift + {h,j,k,l}
  123. bspc window -e {right -10,up +10,down -10,left +10}
  124.  
  125. #
  126. super + ctrl + {1-9}
  127. bspc window -r 0.{1-9}
  128.  
  129. # go (Shift=move) to desktop #
  130. super + {_,shift + }{1-9,0}
  131. bspc {desktop -f,window -d} ^{1-9,10}
  132.  
  133. # left click to focus
  134. ~button1
  135. bspc pointer -g focus
  136.  
  137. # left click move right resize
  138. super + button{1-3}
  139. bspc pointer -g {move,resize_side,resize_corner}
  140.  
  141. super + !button{1-3}
  142. bspc pointer -t %i %i
  143.  
  144. super + @button{1-3}
  145. bspc pointer -u
  146.  
  147. super + button{4-5}
  148. bspc desktop -f {prev,next}
  149.  
  150. # change window gap at run time
  151. super + ctrl + equal
  152. bspc config -d focused window_gap $((`bspc config -d focused window_gap` + 5 ))
  153.  
  154. super + ctrl + shift + equal
  155. bspc config top_padding 16; bspc config -d focused window_gap 15
  156.  
  157. super + ctrl + minus
  158. bspc config -d focused window_gap $((`bspc config -d focused window_gap` - 5 ))
  159.  
  160. super + ctrl + shift + minus
  161. bspc config top_padding 16; bspc config -d focused window_gap 0
  162.  
  163. #
  164. # wm independent hotkeys
  165. #
  166.  
  167. super + Return
  168. termite
  169.  
  170. super + shift + Return
  171. lxterminal --geometry=60x12
  172.  
  173. super + space
  174. dmenu_run -dim 0.4 -h 24 -p '>>>' -fn 'Inconsolata-zi4-12' -nb '#202020' -nf '#949494' -sb '#91291D' -sf '#eeeeee'
  175.  
  176. super + z
  177. gmrun
  178.  
  179. super + w
  180. firefox
  181.  
  182. super + e
  183. leafpad
  184.  
  185. super + shift + e
  186. gksu geany
  187.  
  188. super + n
  189. termite -e 'ncmpcpp'
  190.  
  191. super + shift + f
  192. gksu thunar
  193.  
  194. super + ctrl + f
  195. thunar
  196.  
  197. XF86AudioRaiseVolume
  198. amixer -q set Master 2%+ unmute
  199.  
  200. XF86AudioLowerVolume
  201. amixer -q set Master 2%- unmute
  202.  
  203. XF86AudioMute
  204. amixer -q set Master mute
  205.  
  206. XF86AudioPlay
  207. ncmpcpp toggle
  208.  
  209. XF86AudioStop
  210. ncmpcpp stop
  211.  
  212. XF86AudioPrev
  213. ncmpcpp prev
  214.  
  215. XF86AudioNext
  216. ncmpcpp next
  217.  
  218. # make sxhkd reload its configuration files:
  219. super + Escape
  220. pkill -USR1 -x sxhkd
Advertisement
Add Comment
Please, Sign In to add comment