From 7b3c4ed2593c1d69cf3175f1f7196a3b222976d0 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Mon, 8 May 2017 01:06:31 +0200 Subject: Improved transparency --- compton.conf | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ vimrc-full | 20 +++++++++---------- 2 files changed, 74 insertions(+), 10 deletions(-) create mode 100644 compton.conf diff --git a/compton.conf b/compton.conf new file mode 100644 index 0000000..79a3606 --- /dev/null +++ b/compton.conf @@ -0,0 +1,64 @@ +backend = "xrender"; +#backend = "glx"; +paint-on-overlay = true; +glx-no-stencil = true; +# glx-no-rebind-pixmap = true; # does not work! definitelly! +# vsync = "opengl-swc"; +vsync = "drm"; +# vsync-use-glfinish = true + +# 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. +# The other options are smaller performance tweaks that work well in most cases. +# 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 + + +# Shadow +#shadow = true; # Enabled client-side shadows on windows. +shadow = false; # Enabled client-side shadows on windows. +#no-dock-shadow = true; # Avoid drawing shadows on dock/panel windows. +#no-dnd-shadow = true; # Don't draw shadows on DND windows. +# clear-shadow = true; # Zero the part of the shadow's mask behind the window (experimental). +shadow-radius = 7; # The blur radius for shadows. (default 12) +shadow-offset-x = -7; # The left offset for shadows. (default -15) +shadow-offset-y = -7; # The top offset for shadows. (default -15) +shadow-exclude = [ + "! name~=''", + "n:e:Notification", + "n:e:Plank", + "n:e:Docky", + "g:e:Synapse", + "g:e:Kupfer", + "g:e:Conky", + "n:w:*Firefox*", + "n:w:*Chrome*", + "n:w:*Chromium*", + "class_g ?= 'Notify-osd'", + "class_g ?= 'Cairo-dock'", + "class_g ?= 'Xfce4-notifyd'", + "class_g ?= 'Xfce4-power-manager'", + "x = 0 && y = 0 && override_redirect = true" +]; + +# 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 +# (most applications are fine, only apps that do weird things with xshapes or argb are affected). +# 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. + +# Fading +# fading = true; # Fade windows during opacity changes. +fade-delta = 8; # The time between steps in a fade in milliseconds. (default 10). +fade-in-step = 0.03; # Opacity change between steps while fading in. (default 0.028). +fade-out-step = 0.03; # Opacity change between steps while fading out. (default 0.03). +#no-fading-openclose = true; # Fade windows in/out when opening/closing + +detect-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. + +# Window type settings +wintypes: +{ + tooltip = { fade = true; shadow = true; }; +}; + +#opacity-rule = ["90:class_g = 'URxvt'", "90:class_g = ''" ]; + + +opacity-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 :ToggleBufExplorer Plug 'vim-airline/vim-airline' | " beautification of the mode line set laststatus=2 | " required by AirLine, without status line does not appear until a window split set background=light -let g:airline_extensions = ['tabline', 'branch', 'syntastic', 'tagbar', 'whitespace', 'ycm'] +let g:airline_extensions = ['tabline', 'branch', 'syntastic', 'tagbar', 'whitespace'] let b:airline_whitespace_checks = ['indent', 'trailing', 'long', 'mixed-indent-file'] " let g:airline_section_c = "" | " was: %F let 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 | let g:airline_skip_empty_sections = 1 | " AIRLINE_Theme: Plug 'vim-airline/vim-airline-themes' | " airline themes to match any light and dark terminal using :AirlineTheme -let base16colorspace = 256 +let base16colorspace=256 let g:airline_theme='base16' | " specifies which colorscheme should airline uses " let g:solarized_base16 = 1 " let g:airline_base16_improved_contrast = 1 @@ -94,8 +94,6 @@ nnoremap " autocmd bufenter * " \ if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif " -" exec current line as a command, insert output of command (from: https://youtu.be/MquaityA1SM?t=35m45s) -nnoremap Q !!$SHELL " Additional: ========================================. @@ -215,13 +213,12 @@ call plug#end() | " all plugins are gettin " COLORSCHEME: - " uses the default terminal background color as background (allows transparency) - - function! ExtendColorTheme() - " highlight! Normal ctermbg=NONE ctermfg=black cterm=inverse - highlight! Normal ctermbg=NONE + set background=light + let g:colors_name="" + " highlight Normal ctermbg=NONE ctermfg=black + highlight! CursorLineNr cterm=inverse | " ctermbg=black ctermfg=NONE highlight! Pmenu ctermbg=LightYellow ctermfg=blue guibg=LightYellow guifg=blue cterm=italic highlight! PmenuSel ctermbg=LightYellow ctermfg=blue guibg=LightYellow guifg=blue gui=inverse cterm=inverse @@ -524,7 +521,7 @@ if has("autocmd") augroup extra_whitespace " { - highlight ExtraWhitespace ctermbg=red guibg=red + highlight ExtraWhitespace ctermbg=red ctermfg=white guibg=red autocmd BufEnter * syn match ExtraWhitespace /\s\+$/ augroup END "} @@ -537,6 +534,9 @@ if has("autocmd") " put the current files name after the cursor... let @f = ":exe ':normal a'.expand('%:t')" + " exec current line as a command, insert output of command (from: https://youtu.be/MquaityA1SM?t=35m45s) + nnoremap Q !!$SHELL + " autocmd BufEnter * @f augroup END -- cgit v1.2.3