From a084b37cb0ea92e67be9588f07923231ed5b2258 Mon Sep 17 00:00:00 2001 From: Harri Lahtinen Date: Thu, 25 Jul 2019 13:09:07 +0300 Subject: [PATCH] tweaking... --- .config/compton.conf | 27 +++- .config/i3/config | 14 ++- .config/nvim/init.vim | 23 +++- .config/polybar/bottom-bar | 7 +- .config/polybar/config | 117 ++++++++++++------ .config/polybar/top-bar | 9 +- .config/ranger/rc.conf | 9 +- .../wpg/templates/config_polybar_config.base | 101 ++++++++++----- .tmux.conf | 7 +- .zshrc | 3 + 10 files changed, 225 insertions(+), 92 deletions(-) diff --git a/.config/compton.conf b/.config/compton.conf index b0fa1c7..7acaea9 100644 --- a/.config/compton.conf +++ b/.config/compton.conf @@ -21,7 +21,7 @@ glx-no-stencil = true; # but a 20% increase when only 1/4 is. # My tests on nouveau show terrible slowdown. # Useful with --glx-swap-method, as well. -glx-copy-from-front = false; +# glx-copy-from-front = false; # GLX backend: Use MESA_copy_sub_buffer to do partial screen update. # My tests on nouveau shows a 200% performance boost when only 1/4 of the screen is updated. @@ -34,6 +34,8 @@ glx-copy-from-front = false; # Recommended if it works. glx-no-rebind-pixmap = true; +# Damage +use-damage = false; # GLX backend: GLX buffer swap method we assume. # Could be undefined (0), copy (1), exchange (2), 3-6, or buffer-age (-1). @@ -79,7 +81,7 @@ shadow-opacity = 0.5; # (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. shadow-exclude = [ - "! name~=''", + #"! name~=''", "name = 'Notification'", "name *= 'Chrome'", "class_g ?= 'Notify-osd'", @@ -108,14 +110,27 @@ frame-opacity = 1; inactive-opacity-override = false; alpha-step = 0.06; -blur-kern = "3x3box"; +blur-kern = "7x7box"; blur-method = "kawase"; blur-strength = 15; opacity-rule = [ - "85:class_g = 'St' && focused", - "60:class_g = 'St' && !focused" + "90:class_g = 'St' && focused", + "60:class_g = 'St' && !focused", # "70:name *?= 'rofi'" +# "80:class_g = 'St' && !_NET_WM_STATE@:32a", + + "0:_NET_WM_STATE@[0]:32a = '_NET_WM_STATE_HIDDEN'", + "0:_NET_WM_STATE@[1]:32a = '_NET_WM_STATE_HIDDEN'", + "0:_NET_WM_STATE@[2]:32a = '_NET_WM_STATE_HIDDEN'", + "0:_NET_WM_STATE@[3]:32a = '_NET_WM_STATE_HIDDEN'", + "0:_NET_WM_STATE@[4]:32a = '_NET_WM_STATE_HIDDEN'", + + "90:_NET_WM_STATE@[0]:32a = '_NET_WM_STATE_STICKY'", + "90:_NET_WM_STATE@[1]:32a = '_NET_WM_STATE_STICKY'", + "90:_NET_WM_STATE@[2]:32a = '_NET_WM_STATE_STICKY'", + "90:_NET_WM_STATE@[3]:32a = '_NET_WM_STATE_STICKY'", + "90:_NET_WM_STATE@[4]:32a = '_NET_WM_STATE_STICKY'" ]; # Dim inactive windows. (0.0 - 1.0) @@ -210,7 +225,7 @@ sw-opti = false; # Unredirect all windows if a full-screen opaque window is detected, to maximize performance for full-screen windows, like games. # Known to cause flickering when redirecting/unredirecting windows. # paint-on-overlay may make the flickering less obvious. -unredir-if-possible = true; +unredir-if-possible = false; # Specify a list of conditions of windows that should always be considered focused. focus-exclude = [ ]; diff --git a/.config/i3/config b/.config/i3/config index 353f838..e3ce876 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -69,9 +69,7 @@ exec --no-startup-id ~/.config/wpg/wp_init.sh #exec --no-startup-id conky -d -c ~/.config/conky/conkybg & #Clipster exec --no-startup-id clipster -d -#Composite manager: -bindsym $mod+b exec --no-startup-id pkill compton -bindsym $mod+Ctrl+b exec --no-startup-id compton -b -f +#Compton exec --no-startup-id compton -b #Gnome privileges exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 @@ -118,6 +116,10 @@ bindsym $mod+Shift+b move scratchpad # Show the first scratchpad window bindsym $mod+Shift+e scratchpad show +#Composite manager: +bindsym $mod+b exec --no-startup-id pkill compton +bindsym $mod+Ctrl+b exec --no-startup-id compton -b -f + ###---Basic Bindings---### bindsym $mod+Return exec $term bindsym $mod+Shift+Return exec $term -e tmux @@ -287,8 +289,14 @@ for_window [window_role="tr-main"] move to workspace $ws8 #for_window [title="projectM"] exec --no-startup-id transset -a --dec .25 #for_window [class="st"] exec --no-startup-id transset -a --dec .25 for_window [window_role="GtkFileChooserDialog"] resize shrink height 10 px +for_window [class="Wpg"] floating enable for_window [class="mpv"] floating enable for_window [class="feh"] floating enable +for_window [class="MComix"] floating enable +for_window [class="Gucharmap"] floating enable +for_window [class="Pavucontrol"] floating enable +for_window [class="Nm-connection-editor"] floating enable +for_window [class="Lxappearance"] floating enable for_window [instance="^package-update$" class="^st$"] floating enable, move position center for_window [class="Yad"] floating enable diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index f1bcf24..bf7d52e 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -22,7 +22,8 @@ call vundle#begin('~/.config/nvim/bundle') Plugin 'VundleVim/Vundle.vim' call vundle#end() -filetype plugin indent on " allows auto-indenting depending on file type +" allows auto-indenting depending on file type +filetype plugin indent on call plug#begin('~/.local/share/nvim/site/autoload') Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } @@ -45,13 +46,25 @@ Plug 'liuchengxu/space-vim-theme' Plug 'kadekillary/Turtles' Plug 'arcticicestudio/nord-vim' Plug 'whatyouhide/vim-gotham' -Plug 'moby/moby' , {'rtp': '/contrib/syntax/vim/'} +Plug 'deviantfero/wpgtk.vim' +Plug 'itchyny/landscape.vim' call plug#end() map :NERDTreeToggle -colorscheme wal +colorscheme nord let g:airline_powerline_fonts = 1 -let g:airline_theme='minimalist' -let g:tmuxline_preset = 'full' +let g:airline_theme='nord' +let g:tmuxline_preset = { + \'a' : '#S', + \'b' : '#W', + \'c' : ['#(~/.config/Scripts/showip)'], + \'win' : '#I #W', + \'cwin' : '#I #W', + \'y' : '#W %R', + \'z' : '#H'} + +" Run xrdb whenever Xdefaults or Xresources are updated. +autocmd BufWritePost *Xresources,*Xdefaults !xrdb % + diff --git a/.config/polybar/bottom-bar b/.config/polybar/bottom-bar index cbdbe2c..a956264 100644 --- a/.config/polybar/bottom-bar +++ b/.config/polybar/bottom-bar @@ -13,6 +13,9 @@ padding-left = 1 padding-right = 1 module-margin-left = 1 module-margin-right = 1 -font-0 = TamzenForPowerline:pixelsize=12;1 -font-1 = FontAwesome:size=10.5;1 +font-1 = TamzenForPowerline:size=12;1 +font-0 = FontAwesome:size=10.5;1 font-2 = Material Icons:size=12;3 +;font-2 = "Font Awesome 5 Free:style=Regular:size=12;3" +;font-3 = "Font Awesome 5 Free:style=Solid:size=12;3" +;font-4 = "Font Awesome 5 Brands:style=Regular:size=12;3" diff --git a/.config/polybar/config b/.config/polybar/config index d19157c..b33b84b 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -6,27 +6,27 @@ [colors] ;Transparent background background = #00000000 -;background = ${xrdb:color12:#AD9161} +;background = ${{xrdb:color12:#AD9161}} ;background = #8a8061 -background-alt = #03080B -;foreground = ${xrdb:color7} -foreground = #91B5B9 -foreground-alt = #91B5B9 -highlight = #c6eff1 -;error = ${xrdb:color9:#DD712E} -error = #1399A8 -red = #1399A8 -yellow = #24D7E2 -green = #5DE7ED -blue = #30AEBE -alert = #1399A8 +background-alt = #88C0D0 +;foreground = ${{xrdb:color7}} +foreground = #D08770 +foreground-alt = #D08770 +highlight = #E5E9F0 +;error = ${{xrdb:color9:#DD712E}} +error = #BF616A +red = #BF616A +yellow = #EBCB8B +green = #A3BE8C +blue = #5E81AC +alert = #FF0000 [bar/top] monitor = ${env:MONITOR:eDP-1} include-file = ~/.config/polybar/top-bar -modules-left = i3 +modules-left = i3 xwindow modules-center = term chrome editor fm music vpn -modules-right = wlan pkg pulseaudio battery backlight networkmanager popup-calendar +modules-right = workspace wlan pkg alsa battery backlight networkmanager popup-calendar ;tray-position = right ;tray-padding = 2 @@ -37,7 +37,7 @@ modules-right = wlan pkg pulseaudio battery backlight networkmanager popup-calen monitor = ${env:MONITOR:eDP-1} include-file = ~/.config/polybar/bottom-bar modules-left = hostname vpncheck -modules-center = cpu memory temperature +modules-center = cpu memory temperature filesystem modules-right = openweather [module/pulseaudio-rofi-output] @@ -58,7 +58,7 @@ format-volume = label-volume = %percentage%% label-volume-foreground = ${root.foreground} format-muted = -format-muted-foreground = ${colors.highlight} +format-muted-foreground = ${colors.alert} label-muted =  muted ramp-volume-0 =  ramp-volume-1 =  @@ -66,6 +66,19 @@ ramp-volume-foreground = ${colors.foreground} ramp-headphones-0 =  ramp-headphones-1 =  +[module/filesystem] +type = internal/fs +mount-0 = / +interval = 10 +fixed-values = true +spacing = 4 +format-mounted = +format-unmounted = +label-mounted =  %percentage_used%% +label-mounted-foreground = ${colors.foreground-alt} +label-unmounted = %mountpoint%: not mounted +label-unmounted-foreground = ${colors.foreground-alt} + [module/backlight] type = custom/script interval = 0.2 @@ -76,7 +89,7 @@ format-prefix = " " format-prefix-foreground = ${colors.foreground} label = %output% label-foreground = ${colors.foreground} -format-padding = 1 +;format-padding = 1 ;[module/backlight] ;type = internal/xbacklight @@ -97,6 +110,7 @@ type = custom/script exec = ~/.config/Scripts/popup-calendar.sh interval = 5 click-left = ~/.config/Scripts/popup-calendar.sh --popup +format-prefix = " " [module/vpncheck] type = custom/script @@ -111,17 +125,17 @@ type = custom/script interval = 256 format = "