aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Christian Pohle2017-05-08 01:06:31 +0200
committerMax Christian Pohle2017-05-08 01:06:31 +0200
commit7b3c4ed2593c1d69cf3175f1f7196a3b222976d0 (patch)
tree7905ceec4b722a1539cf95338906b58da5f3e442
parent0c873b14c2d0f3527d4dbe106954136f01b7694b (diff)
downloadvim-7b3c4ed2593c1d69cf3175f1f7196a3b222976d0.tar.bz2
vim-7b3c4ed2593c1d69cf3175f1f7196a3b222976d0.zip
Improved transparency
-rw-r--r--compton.conf64
-rw-r--r--vimrc-full20
2 files changed, 74 insertions, 10 deletions
diff --git a/compton.conf b/compton.conf
new file mode 100644
index 0000000..79a3606
--- /dev/null
+++ b/compton.conf
@@ -0,0 +1,64 @@
1backend = "xrender";
2#backend = "glx";
3paint-on-overlay = true;
4glx-no-stencil = true;
5# glx-no-rebind-pixmap = true; # does not work! definitelly!
6# vsync = "opengl-swc";
7vsync = "drm";
8# vsync-use-glfinish = true
9
10# These are important. The first one enables the opengl backend. The last one is the vsync method. Depending on the driver you might need to use a different method.
11# The other options are smaller performance tweaks that work well in most cases.
12# You can find the rest of the options here: https://github.com/chjj/compton/wiki/perf-guide, and here: https://github.com/chjj/compton/wiki/vsync-guide
13
14
15# Shadow
16#shadow = true; # Enabled client-side shadows on windows.
17shadow = false; # Enabled client-side shadows on windows.
18#no-dock-shadow = true; # Avoid drawing shadows on dock/panel windows.
19#no-dnd-shadow = true; # Don't draw shadows on DND windows.
20# clear-shadow = true; # Zero the part of the shadow's mask behind the window (experimental).
21shadow-radius = 7; # The blur radius for shadows. (default 12)
22shadow-offset-x = -7; # The left offset for shadows. (default -15)
23shadow-offset-y = -7; # The top offset for shadows. (default -15)
24shadow-exclude = [
25 "! name~=''",
26 "n:e:Notification",
27 "n:e:Plank",
28 "n:e:Docky",
29 "g:e:Synapse",
30 "g:e:Kupfer",
31 "g:e:Conky",
32 "n:w:*Firefox*",
33 "n:w:*Chrome*",
34 "n:w:*Chromium*",
35 "class_g ?= 'Notify-osd'",
36 "class_g ?= 'Cairo-dock'",
37 "class_g ?= 'Xfce4-notifyd'",
38 "class_g ?= 'Xfce4-power-manager'",
39 "x = 0 && y = 0 && override_redirect = true"
40];
41
42# The shadow exclude options are helpful if you have shadows enabled. Due to the way compton draws its shadows, certain applications will have visual glitches
43# (most applications are fine, only apps that do weird things with xshapes or argb are affected).
44# This list includes all the affected apps I found in my testing. The "! name~=''" part excludes shadows on any "Unknown" windows, this prevents a visual glitch with the XFWM alt tab switcher.
45
46# Fading
47# fading = true; # Fade windows during opacity changes.
48fade-delta = 8; # The time between steps in a fade in milliseconds. (default 10).
49fade-in-step = 0.03; # Opacity change between steps while fading in. (default 0.028).
50fade-out-step = 0.03; # Opacity change between steps while fading out. (default 0.03).
51#no-fading-openclose = true; # Fade windows in/out when opening/closing
52
53detect-client-opacity = true; # This prevents opacity being ignored for some apps. For example without this enabled my xfce4-notifyd is 100% opacity no matter what.
54
55# Window type settings
56wintypes:
57{
58 tooltip = { fade = true; shadow = true; };
59};
60
61#opacity-rule = ["90:class_g = 'URxvt'", "90:class_g = ''" ];
62
63
64opacity-rule = ["90:class_g = 'xfce4-terminal'", "90:class_g = 'Xfce4-terminal'", "90:class_g = 'termite'", "90:class_g = 'i3bar'", "90:class_g = 'i3-frame'" ];
diff --git a/vimrc-full b/vimrc-full
index 1ab7ab1..9fc1857 100644
--- a/vimrc-full
+++ b/vimrc-full
@@ -43,7 +43,7 @@ nnoremap <F12> :ToggleBufExplorer<CR>
43Plug 'vim-airline/vim-airline' | " beautification of the mode line 43Plug 'vim-airline/vim-airline' | " beautification of the mode line
44set laststatus=2 | " required by AirLine, without status line does not appear until a window split 44set laststatus=2 | " required by AirLine, without status line does not appear until a window split
45set background=light 45set background=light
46let g:airline_extensions = ['tabline', 'branch', 'syntastic', 'tagbar', 'whitespace', 'ycm'] 46let g:airline_extensions = ['tabline', 'branch', 'syntastic', 'tagbar', 'whitespace']
47let b:airline_whitespace_checks = ['indent', 'trailing', 'long', 'mixed-indent-file'] 47let b:airline_whitespace_checks = ['indent', 'trailing', 'long', 'mixed-indent-file']
48" let g:airline_section_c = "" | " was: %F 48" let g:airline_section_c = "" | " was: %F
49let g:airline#extensions#tagbar#flags = 'f' | " even though the airline extension is off this controls :h tagbar-extend 49let g:airline#extensions#tagbar#flags = 'f' | " even though the airline extension is off this controls :h tagbar-extend
@@ -65,7 +65,7 @@ let g:airline_powerline_fonts = 1 |
65let g:airline_skip_empty_sections = 1 | 65let g:airline_skip_empty_sections = 1 |
66" AIRLINE_Theme: 66" AIRLINE_Theme:
67Plug 'vim-airline/vim-airline-themes' | " airline themes to match any light and dark terminal using :AirlineTheme 67Plug 'vim-airline/vim-airline-themes' | " airline themes to match any light and dark terminal using :AirlineTheme
68let base16colorspace = 256 68let base16colorspace=256
69let g:airline_theme='base16' | " specifies which colorscheme should airline uses 69let g:airline_theme='base16' | " specifies which colorscheme should airline uses
70" let g:solarized_base16 = 1 70" let g:solarized_base16 = 1
71" let g:airline_base16_improved_contrast = 1 71" let g:airline_base16_improved_contrast = 1
@@ -94,8 +94,6 @@ nnoremap <expr>
94" autocmd bufenter * 94" autocmd bufenter *
95" \ if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif 95" \ if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
96" 96"
97" exec current line as a command, insert output of command (from: https://youtu.be/MquaityA1SM?t=35m45s)
98nnoremap Q !!$SHELL<CR>
99 97
100 98
101" Additional: ========================================. 99" Additional: ========================================.
@@ -215,13 +213,12 @@ call plug#end() | " all plugins are gettin
215 213
216 214
217" COLORSCHEME: 215" COLORSCHEME:
218
219" uses the default terminal background color as background (allows transparency) 216" uses the default terminal background color as background (allows transparency)
220
221
222function! ExtendColorTheme() 217function! ExtendColorTheme()
223 " highlight! Normal ctermbg=NONE ctermfg=black cterm=inverse 218 set background=light
224 highlight! Normal ctermbg=NONE 219 let g:colors_name=""
220 " highlight Normal ctermbg=NONE ctermfg=black
221
225 highlight! CursorLineNr cterm=inverse | " ctermbg=black ctermfg=NONE 222 highlight! CursorLineNr cterm=inverse | " ctermbg=black ctermfg=NONE
226 highlight! Pmenu ctermbg=LightYellow ctermfg=blue guibg=LightYellow guifg=blue cterm=italic 223 highlight! Pmenu ctermbg=LightYellow ctermfg=blue guibg=LightYellow guifg=blue cterm=italic
227 highlight! PmenuSel ctermbg=LightYellow ctermfg=blue guibg=LightYellow guifg=blue gui=inverse cterm=inverse 224 highlight! PmenuSel ctermbg=LightYellow ctermfg=blue guibg=LightYellow guifg=blue gui=inverse cterm=inverse
@@ -524,7 +521,7 @@ if has("autocmd")
524 521
525 522
526 augroup extra_whitespace " { 523 augroup extra_whitespace " {
527 highlight ExtraWhitespace ctermbg=red guibg=red 524 highlight ExtraWhitespace ctermbg=red ctermfg=white guibg=red
528 autocmd BufEnter * syn match ExtraWhitespace /\s\+$/ 525 autocmd BufEnter * syn match ExtraWhitespace /\s\+$/
529 augroup END "} 526 augroup END "}
530 527
@@ -537,6 +534,9 @@ if has("autocmd")
537 " put the current files name after the cursor... 534 " put the current files name after the cursor...
538 let @f = ":exe ':normal a'.expand('%:t')" 535 let @f = ":exe ':normal a'.expand('%:t')"
539 536
537 " exec current line as a command, insert output of command (from: https://youtu.be/MquaityA1SM?t=35m45s)
538 nnoremap Q !!$SHELL<CR>
539
540 " autocmd BufEnter * @f 540 " autocmd BufEnter * @f
541 augroup END 541 augroup END
542 542
..