···11+" Vim syntax file
22+" Language: HAproxy
33+" Maintainer: Bruno Michel <brmichel@free.fr>
44+" Last Change: Mar 30, 2007
55+" Version: 0.3
66+" URL: http://haproxy.1wt.eu/
77+" URL: http://vim.sourceforge.net/scripts/script.php?script_id=1845
88+99+" It is suggested to add the following line to $HOME/.vimrc :
1010+" au BufRead,BufNewFile haproxy* set ft=haproxy
1111+1212+" For version 5.x: Clear all syntax items
1313+" For version 6.x: Quit when a syntax file was already loaded
1414+if version < 600
1515+ syntax clear
1616+elseif exists("b:current_syntax")
1717+ finish
1818+endif
1919+2020+if version >= 600
2121+ setlocal iskeyword=_,-,a-z,A-Z,48-57
2222+else
2323+ set iskeyword=_,-,a-z,A-Z,48-57
2424+endif
2525+2626+2727+" Escaped chars
2828+syn match hapEscape +\\\(\\\| \|n\|r\|t\|#\|x\x\x\)+
2929+3030+" Comments
3131+syn match hapComment /#.*$/ contains=hapTodo
3232+syn keyword hapTodo contained TODO FIXME XXX
3333+syn case ignore
3434+3535+" Sections
3636+syn match hapSection /^\s*\(global\|defaults\)/
3737+syn match hapSection /^\s*\(listen\|frontend\|backend\|ruleset\)/ skipwhite nextgroup=hapSectLabel
3838+syn match hapSectLabel /\S\+/ skipwhite nextgroup=hapIp1 contained
3939+syn match hapIp1 /\(\d\{1,3}\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}\)\?:\d\{1,5}/ nextgroup=hapIp2 contained
4040+syn match hapIp2 /,\(\d\{1,3}\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}\)\?:\d\{1,5}/hs=s+1 nextgroup=hapIp2 contained
4141+4242+" Parameters
4343+syn keyword hapParam chroot cliexp clitimeout contimeout
4444+syn keyword hapParam daemon debug disabled
4545+syn keyword hapParam enabled
4646+syn keyword hapParam fullconn
4747+syn keyword hapParam gid grace group
4848+syn keyword hapParam maxconn monitor-uri
4949+syn keyword hapParam nbproc noepoll nopoll
5050+syn keyword hapParam pidfile
5151+syn keyword hapParam quiet
5252+syn keyword hapParam redispatch retries
5353+syn keyword hapParam reqallow reqdel reqdeny reqpass reqtarpit skipwhite nextgroup=hapRegexp
5454+syn keyword hapParam reqiallow reqidel reqideny reqipass reqitarpit skipwhite nextgroup=hapRegexp
5555+syn keyword hapParam rspdel rspdeny skipwhite nextgroup=hapRegexp
5656+syn keyword hapParam rspidel rspideny skipwhite nextgroup=hapRegexp
5757+syn keyword hapParam reqsetbe reqisetbe skipwhite nextgroup=hapRegexp2
5858+syn keyword hapParam reqadd reqiadd rspadd rspiadd
5959+syn keyword hapParam server source srvexp srvtimeout
6060+syn keyword hapParam uid ulimit-n user
6161+syn keyword hapParam reqrep reqirep rsprep rspirep skipwhite nextgroup=hapRegexp
6262+syn keyword hapParam errorloc errorloc302 errorloc303 skipwhite nextgroup=hapStatus
6363+syn keyword hapParam default_backend skipwhite nextgroup=hapSectLabel
6464+syn keyword hapParam appsession skipwhite nextgroup=hapAppSess
6565+syn keyword hapParam bind skipwhite nextgroup=hapIp1
6666+syn keyword hapParam balance skipwhite nextgroup=hapBalance
6767+syn keyword hapParam cookie skipwhite nextgroup=hapCookieNam
6868+syn keyword hapParam capture skipwhite nextgroup=hapCapture
6969+syn keyword hapParam dispatch skipwhite nextgroup=hapIpPort
7070+syn keyword hapParam source skipwhite nextgroup=hapIpPort
7171+syn keyword hapParam mode skipwhite nextgroup=hapMode
7272+syn keyword hapParam monitor-net skipwhite nextgroup=hapIPv4Mask
7373+syn keyword hapParam option skipwhite nextgroup=hapOption
7474+syn keyword hapParam stats skipwhite nextgroup=hapStats
7575+syn keyword hapParam server skipwhite nextgroup=hapServerN
7676+syn keyword hapParam source skipwhite nextgroup=hapServerEOL
7777+syn keyword hapParam log skipwhite nextgroup=hapGLog,hapLogIp
7878+7979+" Options and additional parameters
8080+syn keyword hapAppSess contained len timeout
8181+syn keyword hapBalance contained roundrobin source
8282+syn keyword hapLen contained len
8383+syn keyword hapGLog contained global
8484+syn keyword hapMode contained http tcp health
8585+syn keyword hapOption contained abortonclose allbackups checkcache clitcpka dontlognull forceclose forwardfor
8686+syn keyword hapOption contained httpchk httpclose httplog keepalive logasap persist srvtcpka ssl-hello-chk
8787+syn keyword hapOption contained tcplog tcpka tcpsplice
8888+syn keyword hapOption contained except skipwhite nextgroup=hapIPv4Mask
8989+syn keyword hapStats contained uri realm auth scope enable
9090+syn keyword hapLogFac contained kern user mail daemon auth syslog lpr news nextgroup=hapLogLvl skipwhite
9191+syn keyword hapLogFac contained uucp cron auth2 ftp ntp audit alert cron2 nextgroup=hapLogLvl skipwhite
9292+syn keyword hapLogFac contained local0 local1 local2 local3 local4 local5 local6 local7 nextgroup=hapLogLvl skipwhite
9393+syn keyword hapLogLvl contained emerg alert crit err warning notice info debug
9494+syn keyword hapCookieKey contained rewrite insert nocache postonly indirect prefix nextgroup=hapCookieKey skipwhite
9595+syn keyword hapCapture contained cookie nextgroup=hapNameLen skipwhite
9696+syn keyword hapCapture contained request response nextgroup=hapHeader skipwhite
9797+syn keyword hapHeader contained header nextgroup=hapNameLen skipwhite
9898+syn keyword hapSrvKey contained backup cookie check inter rise fall port source minconn maxconn weight usesrc
9999+syn match hapStatus contained /\d\{3}/
100100+syn match hapIPv4Mask contained /\d\{1,3}\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}\(\/\d\{1,2}\)\?/
101101+syn match hapLogIp contained /\d\{1,3}\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}/ nextgroup=hapLogFac skipwhite
102102+syn match hapIpPort contained /\d\{1,3}\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}:\d\{1,5}/
103103+syn match hapServerAd contained /\d\{1,3}\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}\(:[+-]\?\d\{1,5}\)\?/ nextgroup=hapSrvEOL skipwhite
104104+syn match hapNameLen contained /\S\+/ nextgroup=hapLen skipwhite
105105+syn match hapCookieNam contained /\S\+/ nextgroup=hapCookieKey skipwhite
106106+syn match hapServerN contained /\S\+/ nextgroup=hapServerAd skipwhite
107107+syn region hapSrvEOL contained start=/\S/ end=/$/ contains=hapSrvKey
108108+syn region hapRegexp contained start=/\S/ end=/\(\s\|$\)/ skip=/\\ / nextgroup=hapRegRepl skipwhite
109109+syn region hapRegRepl contained start=/\S/ end=/$/ contains=hapComment,hapEscape,hapBackRef
110110+syn region hapRegexp2 contained start=/\S/ end=/\(\s\|$\)/ skip=/\\ / nextgroup=hapSectLabel skipwhite
111111+syn match hapBackref contained /\\\d/
112112+113113+114114+" Transparent is a Vim keyword, so we need a regexp to match it
115115+syn match hapParam +transparent+
116116+syn match hapOption +transparent+ contained
117117+118118+119119+" Define the default highlighting.
120120+" For version 5.7 and earlier: only when not done already
121121+" For version 5.8 and later: only when an item doesn't have highlighting yet
122122+if version < 508
123123+ command -nargs=+ HiLink hi link <args>
124124+else
125125+ command -nargs=+ HiLink hi def link <args>
126126+endif
127127+128128+HiLink hapEscape SpecialChar
129129+HiLink hapBackRef Special
130130+HiLink hapComment Comment
131131+HiLink hapTodo Todo
132132+HiLink hapSection Constant
133133+HiLink hapSectLabel Identifier
134134+HiLink hapParam Keyword
135135+136136+HiLink hapRegexp String
137137+HiLink hapRegexp2 hapRegexp
138138+HiLink hapIp1 Number
139139+HiLink hapIp2 hapIp1
140140+HiLink hapLogIp hapIp1
141141+HiLink hapIpPort hapIp1
142142+HiLink hapIPv4Mask hapIp1
143143+HiLink hapServerAd hapIp1
144144+HiLink hapStatus Number
145145+146146+HiLink hapOption Operator
147147+HiLink hapAppSess hapOption
148148+HiLink hapBalance hapOption
149149+HiLink hapCapture hapOption
150150+HiLink hapCookieKey hapOption
151151+HiLink hapHeader hapOption
152152+HiLink hapGLog hapOption
153153+HiLink hapLogFac hapOption
154154+HiLink hapLogLvl hapOption
155155+HiLink hapMode hapOption
156156+HiLink hapStats hapOption
157157+HiLink hapLen hapOption
158158+HiLink hapSrvKey hapOption
159159+160160+161161+delcommand HiLink
162162+163163+let b:current_syntax = "haproxy"
164164+" vim: ts=8
+6-13
wm/chunkwmrc
···2727chunkc set global_desktop_offset_bottom 5
2828chunkc set global_desktop_offset_left 10
2929chunkc set global_desktop_offset_right 10
3030-chunkc set global_desktop_offset_gap 2
3131-3232-chunkc set desktop_padding_step_size 10.0
3333-chunkc set desktop_gap_step_size 5.0
3030+chunkc set global_desktop_offset_gap 5
34313535-chunkc set bsp_spawn_left 1
3632chunkc set bsp_optimal_ratio 1.618
3733chunkc set bsp_split_mode optimal
3834chunkc set bsp_split_ratio 0.5
3535+3636+# chunkc set mouse_move_window shift
3737+# chunkc set mouse_resize_window shift
3838+# chunkc set mouse_motion_interval 35
39394040chunkc set monitor_focus_cycle 1
4141chunkc set window_focus_cycle monitor
42424343-chunkc set mouse_follows_focus 0
4443chunkc set window_float_next 0
4544chunkc set window_float_center 1
4645chunkc set window_region_locked 1
47464848-chunkc set mouse_modifier fn
4949-5050-chunkc set preselect_border_color 0xffd75f5f
5151-chunkc set preselect_border_width 5
5252-chunkc set preselect_border_radius 0
5353-5447chunkc set focused_border_color 0xff008097
5555-chunkc set focused_border_width 2
4848+chunkc set focused_border_width 5
5649chunkc set focused_border_radius 0
5750chunkc set focused_border_skip_floating 0
5851
+22-19
wm/skhdrc
···11# enter fullscreen mode for the focused container
22-ctrl + cmd - f : chunkc tiling::window --toggle fullscreen
22+shift + alt + ctrl + cmd - f : chunkc tiling::window --toggle fullscreen
3344# change focus between tiling / floating windows
55-shift + ctrl + cmd - space : chunkc tiling::window --toggle float
55+shift + alt + ctrl + cmd - space : chunkc tiling::window --toggle float
6677# change layout of desktop
88-ctrl + cmd - e : chunkc tiling::desktop --layout bsp
99-ctrl + cmd - s : chunkc tiling::desktop --layout monocle
88+shift + alt + ctrl + cmd - e : chunkc tiling::desktop --layout bsp
99+shift + alt + ctrl + cmd - s : chunkc tiling::desktop --layout monocle
10101111# kill focused window
1212-shift + ctrl + cmd - q : chunkc tiling::window --close
1212+shift + alt + ctrl + cmd - q : chunkc tiling::window --close
13131414# change focus
1515ctrl + cmd - h : chunkc tiling::window --focus west
···2020ctrl + cmd - p : chunkc tiling::window --focus prev
2121ctrl + cmd - n : chunkc tiling::window --focus next
22222323+shift + alt + ctrl + cmd - p : chunkc tiling::window --focus prev
2424+shift + alt + ctrl + cmd - n : chunkc tiling::window --focus next
2525+2326# move focused window
2424-shift + ctrl + cmd - h : chunkc tiling::window --warp west
2525-shift + ctrl + cmd - j : chunkc tiling::window --warp south
2626-shift + ctrl + cmd - k : chunkc tiling::window --warp north
2727-shift + ctrl + cmd - l : chunkc tiling::window --warp east
2727+shift + alt + ctrl + cmd - h : chunkc tiling::window --swap west
2828+shift + alt + ctrl + cmd - j : chunkc tiling::window --swap south
2929+shift + alt + ctrl + cmd - k : chunkc tiling::window --swap north
3030+shift + alt + ctrl + cmd - l : chunkc tiling::window --swap east
28312929-ctrl + cmd - r : chunkc tiling::desktop --rotate 90
3232+shift + alt + ctrl + cmd - r : chunkc tiling::desktop --rotate 90
30333134# move focused container to workspace
3232-shift + ctrl + cmd - m : chunkc tiling::window --send-to-desktop $(chunkc get _last_active_desktop)
3333-shift + ctrl + cmd - p : chunkc tiling::window --send-to-desktop prev
3434-shift + ctrl + cmd - n : chunkc tiling::window --send-to-desktop next
3535-shift + ctrl + cmd - 1 : chunkc tiling::window --send-to-desktop 1
3636-shift + ctrl + cmd - 2 : chunkc tiling::window --send-to-desktop 2
3737-shift + ctrl + cmd - 3 : chunkc tiling::window --send-to-desktop 3
3838-shift + ctrl + cmd - 4 : chunkc tiling::window --send-to-desktop 4
3939-shift + ctrl + cmd - 5 : chunkc tiling::window --send-to-desktop 5
4040-shift + ctrl + cmd - 6 : chunkc tiling::window --send-to-desktop 6
3535+shift + alt + ctrl + cmd - m : chunkc tiling::window --send-to-desktop $(chunkc get _last_active_desktop)
3636+shift + alt + ctrl + cmd - p : chunkc tiling::window --send-to-desktop prev
3737+shift + alt + ctrl + cmd - n : chunkc tiling::window --send-to-desktop next
3838+shift + alt + ctrl + cmd - 1 : chunkc tiling::window --send-to-desktop 1
3939+shift + alt + ctrl + cmd - 2 : chunkc tiling::window --send-to-desktop 2
4040+shift + alt + ctrl + cmd - 3 : chunkc tiling::window --send-to-desktop 3
4141+shift + alt + ctrl + cmd - 4 : chunkc tiling::window --send-to-desktop 4
4242+shift + alt + ctrl + cmd - 5 : chunkc tiling::window --send-to-desktop 5
4343+shift + alt + ctrl + cmd - 6 : chunkc tiling::window --send-to-desktop 6