1
0
Fork 0

some awesome tweaks + revert to default hl behaviour in vim

This commit is contained in:
Von Random 2014-11-21 03:16:50 +03:00
parent 600575cb49
commit 1ac60219ba
2 changed files with 5 additions and 12 deletions

13
rc.lua
View file

@ -143,22 +143,20 @@ end
-- [9] = 'example2' -- [9] = 'example2'
--} --}
tags[1].layout = { tags[1].layout = {
[1] = layouts.tiled[1],
[2] = layouts.max[1], [2] = layouts.max[1],
[4] = layouts.float[1], [4] = layouts.float[1]
[5] = layouts.float[1]
} }
-- screens 2+ -- screens 2+
if screen.count() >= 2 then if screen.count() >= 2 then
tags[2].layout = { tags[2].layout = {
[3] = layouts.float[1] [4] = layouts.float[1]
} }
end end
-- Fill the missing values with defaults -- Fill the missing values with defaults
for s = 1, screen.count() do for s = 1, screen.count() do
for tag = 1, 9 do for tag = 1, 9 do
tags[s].name[tag] = tags[s].name[tag] or tag tags[s].name[tag] = tags[s].name[tag] or tag
tags[s].layout[tag] = tags[s].layout[tag] or layouts.tiled[2] tags[s].layout[tag] = tags[s].layout[tag] or layouts.tiled[1]
end end
end end
-- Set tags instances in wm -- Set tags instances in wm
@ -571,7 +569,7 @@ awful.rules.rules = {
tag = tags[1][2] tag = tags[1][2]
} }
}, },
-- tag 4: steam -- tag 4: steam and games
{ {
rule_any = { rule_any = {
class = { 'Steam' }, class = { 'Steam' },
@ -579,7 +577,6 @@ awful.rules.rules = {
}, },
properties = { tag = tags[1][4] } properties = { tag = tags[1][4] }
}, },
-- tag 5: mostly games, float / fullscreen
{ {
rule_any = { rule_any = {
class = { class = {
@ -610,7 +607,7 @@ awful.rules.rules = {
properties = { properties = {
border_width = 0, border_width = 0,
floating = true, floating = true,
tag = tags[1][5] tag = tags[1][4]
} }
} }
} }

4
vimrc
View file

@ -34,14 +34,10 @@ autocmd FileType python setlocal sts=4 sw=4 expandtab
" maps " maps
nmap <Space> <C-W> nmap <Space> <C-W>
nnoremap h <BS>
nnoremap j gj nnoremap j gj
nnoremap k gk nnoremap k gk
nnoremap l <Space>
vnoremap h <BS>
vnoremap j gj vnoremap j gj
vnoremap k gk vnoremap k gk
vnoremap l <Space>
" still have to deal with old vim versions :< " still have to deal with old vim versions :<
if v:version >= 703 if v:version >= 703