diff options
-rw-r--r-- | .config/compton.conf | 6 | ||||
-rw-r--r-- | .config/conky/mid | 67 | ||||
-rw-r--r--[-rwxr-xr-x] | .config/conky/side | 91 | ||||
-rw-r--r-- | .config/qtile/config.py | 4 |
4 files changed, 110 insertions, 58 deletions
diff --git a/.config/compton.conf b/.config/compton.conf index 1940a1a..6183424 100644 --- a/.config/compton.conf +++ b/.config/compton.conf @@ -1,5 +1,5 @@ # 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 @@ -14,6 +14,7 @@ shadow-offset-y = 0; #-7; # The top offset for shadows. (default -15) shadow-exclude = [ "n:e:Notification", "class_g = 'conky'", + "name *= 'conky'", "_GTK_FRAME_EXTENTS@:c", "_NET_WM_OPAQUE_REGION@:c" ]; # Exclude conditions for shadows. @@ -43,6 +44,7 @@ blur-background-fixed = false; # Do not let blur radius adjust based on windo blur-background-exclude = [ "window_type = 'dock'", "window_type = 'desktop'", + "class_g = 'Conky'", "name *= 'VLC'", "name *= 'Firefox'", "name *= 'Vimperator'", @@ -57,6 +59,7 @@ fade-in-step = 0.02; # Opacity change between steps while fading in. (default fade-out-step = 0.02; # Opacity change between steps while fading out. (default 0.03). # no-fading-openclose = true; # Avoid fade windows in/out when opening/closing. fade-exclude = [ + "class_g = 'Conky'", "name *= 'VLC'", "name *= 'Firefox'", "name *= 'Vimperator'", @@ -85,6 +88,7 @@ sw-opti = false; # Limit compton to repaint at most once every 1 / refresh_ra unredir-if-possible = false; # Unredirect all windows if a full-screen opaque window is # detected, to maximize performance for full-screen windows. focus-exclude = [ + "class_g = 'Conky'", "name *= 'VLC'", "name *= 'Firefox'", "name *= 'Vimperator'", diff --git a/.config/conky/mid b/.config/conky/mid new file mode 100644 index 0000000..bf0afb6 --- /dev/null +++ b/.config/conky/mid @@ -0,0 +1,67 @@ +background true +total_run_times 0 +update_interval 1 +own_window yes +own_window_class conky +own_window_title conky +own_window_type override +own_window_transparent +own_window_hints undecorated,sticky,below,skip_taskbar,skip_pager +double_buffer yes +draw_shades yes +draw_outline no +draw_borders no +draw_graph_borders no +alignment top_right +gap_x 220 +gap_y 40 +no_buffers no +uppercase no +override_utf8_locale yes +color1 EAEAEA +color2 00FF66 +color3 11EAEA +color4 EAEAEA +color5 FF3F3F +color6 22FFFF +color7 FF8888 +text_buffer_size 512 +pad_percents 0 +short_units yes +format_human_readable yes +default_bar_size 115 5 +if_up_strictness link +xftfont Inconsolata:size=9 +use_xft + +TEXT +${color5} Network:\ +${if_up wlp3s0} +${color3} wlp3s0: ${color1}${addr wlp3s0} +${color3} essid: ${color1}${wireless_essid wlp3s0} +${color3} ext: ${color1}${execpi 360 wget -qO- http://ipecho.net/plain} +${color3} gway: ${color1}${exec route -n | grep wlp3s0 | grep UG | awk '{print $2}'} +${color3} dns: ${color1}${nameserver 0} +${color3} speed: ${color1}${exec iwconfig wlp3s0 | grep "Bit Rate" | cut -d"=" -f2 | cut -d" " -f1} Mb/s +${color3} frq: ${color1}${wireless_freq wlp3s0} +${color3} channel: ${color1}${wireless_channel wlp3s0} +${color3} quality: ${color1}${wireless_link_qual wlp3s0} +${color3} level: ${color1}${exec iwconfig wlp3s0 | grep "Signal" | cut -d"=" -f3 } +${color3} rate: ${color1}${downspeed wlp3s0} / ${upspeed wlp3s0}\ + +${endif}\ +${if_up enp0s25} +${color3} enp0s25: ${color1}${addr enp0s25} +${color3} external: ${color1}${execpi 360 wget -qO- http://ipecho.net/plain} +${color3} gateway: ${color1}${exec route -n | grep enp0s25 | grep UG |awk '{print $2}'} +${color3} dns: ${color1}${nameserver 0} +${color3} rate: ${color1}${downspeed enp0s25} / ${upspeed enp0s25}\ + +${endif}\ + +${color5} Connections: +${color1}${execpi 1 netstat --protocol=inet 2>/dev/null | grep -v localhost | grep ESTABLISHED | head -n 10 | sed -n "s/tcp.*\:.*\ \(.*\)\:\([^ ]*\)\ \(.*\)/ \$\{color3\}\2:\$\{color1\}\1/p" | sort | uniq } + +${color5} Processes: +${color1} ${execi 1 ps ax -o pcpu,%mem,comm --sort=-c | head -n 11 | tail -n 10} + diff --git a/.config/conky/side b/.config/conky/side index c6895e2..4bb321c 100755..100644 --- a/.config/conky/side +++ b/.config/conky/side @@ -1,37 +1,31 @@ -xftalpha 0.1 +#xftalpha 0.1 background true total_run_times 0 update_interval 1 own_window yes own_window_type override -#own_window_type desktop own_window_argb_visual true own_window_argb_value 0 own_window_hints undecorated,sticky,below,skip_taskbar,skip_pager double_buffer yes -draw_shades no +draw_shades yes draw_outline no draw_borders no draw_graph_borders no -#default_color white -#default_shade_color 222222 -#default_outline_color green alignment top_right -minimum_size 100 1020 -maximum_width 160 -gap_x 0 -gap_y 26 +maximum_width 220 +gap_x 10 +gap_y 40 no_buffers yes uppercase no cpu_avg_samples 1 net_avg_samples 1 override_utf8_locale yes -#use_spacer left color1 EAEAEA color2 00FF66 color3 11EAEA color4 EAEAEA -color5 FFA300 +color5 FF3F3F color6 22FFFF color7 FF8888 text_buffer_size 512 @@ -40,21 +34,22 @@ short_units yes format_human_readable yes default_bar_size 115 5 if_up_strictness link +xftfont Inconsolata:size=9 +use_xft TEXT ${color5} Kernel: ${color1}${kernel} ${color5} Date: ${color1}${time %Y%m%d} -${color5} Time: ${color1}${time %H:%M:%S}\ -\ +${color5} Time: ${color1}${time %H:%M:%S} ${if_existing /etc/hostname trvlr} -${color5} CPU: ${color3}${freq} Mhz +${color5} CPU: ${color1}${freq} Mhz ${color1} ${color3}${cpubar cpu1} ${color1} ${color3}${cpubar cpu2} ${color1} ${color3}${cpubar cpu3} ${color1} ${color3}${cpubar cpu4}\ ${endif}\ ${if_existing /etc/hostname dvzrv} -${color5} CPU: ${color3}${freq} Mhz +${color5} CPU: ${color1}${freq} Mhz ${color1} ${color3}${cpubar cpu1} ${color1} ${color3}${cpubar cpu2} ${color1} ${color3}${cpubar cpu3} @@ -65,50 +60,34 @@ ${color1} ${color3}${cpubar cpu7} ${color1} ${color3}${cpubar cpu8}\ ${endif}\ -${color5} Load: ${color3}${loadavg} -${color5} Memory: ${color1}$memmax -${color1} in use: ${color3}$mem -${color1} buffer: ${color3}$buffers -${color1} cached: ${color3}$cached + +${color5} Load: ${color1}${loadavg} + +${color5} Memory: ${color1}$memwithbuffers/ $cached/ $memmax + ${color3}$membar + +${if_existing /etc/hostname trvlr}\ +${color5} Battery: ${color1} ${battery_short} (${battery_time}) + ${color3}${battery_bar} +${endif}\ + \ ${color5} I/O: -${color1} /dev/sda: ${color3}${diskio /dev/sda} -${if_existing /dev/sdb} -${color1} /dev/sdb: ${color3}${diskio /dev/sdb} -${endif}\ -${if_existing /dev/sdc} -${color1} /dev/sdc: ${color3}${diskio /dev/sdc} +${color3} /dev/sda: ${color1}${diskio /dev/sda} +${if_existing /dev/sdb}\ +${color3} /dev/sdb: ${color1}${diskio /dev/sdb} ${endif}\ -${if_existing /dev/sdd} -${color1} /dev/sdd: ${color3}${diskio /dev/sdd} +${if_existing /dev/sdc}\ +${color3} /dev/sdc: ${color1}${diskio /dev/sdc} ${endif}\ -${if_existing /dev/sde} -${color1} /dev/sde: ${color3}${diskio /dev/sde} +${if_existing /dev/sdd}\ +${color3} /dev/sdd: ${color1}${diskio /dev/sdd} ${endif}\ -\ -${color5} Network:\ -${if_up wlp3s0} -${color1} wlp3s0: ${color3}${addr wlp3s0} -${color1} net: ${color3}${exec iwgetid | cut -d ":" -f2} -${color1} ext: ${color3}${execpi 360 dig +short myip.opendns.com @resolver1.opendns.com} -${color1} gway: ${color3}${exec route -n | grep wlp3s0 | grep UG | awk '{print $2}'} -${color1} dns: ${color3}${exec grep "nameserver" /etc/resolv.conf | awk '{print $2}'} -${color1} speed: ${color3}${exec iwconfig wlp3s0 | grep "Bit Rate" | cut -d"=" -f2 | cut -d" " -f1} Mb/s -${color1} frq: ${color3}${exec iwconfig wlp3s0 | grep "Frequency" | cut -d":" -f3 | cut -d " " -f1} GHz -${color1} qual: ${color3}${exec iwconfig wlp3s0 | grep "Quality" | cut -d"=" -f2 | cut -d" " -f1 } -${color1} level: ${color3}${exec iwconfig wlp3s0 | grep "Signal" | cut -d"=" -f3 } -${color1} rate: ${color3}${downspeed wlp3s0} / ${upspeed wlp3s0}\ +${if_existing /dev/sde}\ +${color3} /dev/sde: ${color1}${diskio /dev/sde} ${endif}\ -${if_up enp0s25} -${color1} enp0s25: ${color3}${addr enp0s25} -${color1} ext: ${color3}${exec dig +short myip.opendns.com @resolver1.opendns.com} -${color1} gway: ${color3}${exec route -n | grep enp0s25 | grep UG |awk '{print $2}'} -${color1} dns: ${color3}${exec grep "nameserver" /etc/resolv.conf | awk '{print $2}'} -${color1} rate: ${color3}${downspeed enp0s25} / ${upspeed enp0s25}\ -${endif}\ - -${color5} Processes: -${color1}${execi 1 ps ax -o pcpu,%mem,comm --sort=-c | head -n 11 | tail -n 10}\ -${color5} Connections: -${color1}${execpi 1 netstat --protocol=inet 2>/dev/null | grep -v localhost | grep ESTABLISHED | head -n 10 | sed -n "s/tcp.*\:.*\ \(.*\)\:\([^ ]*\)\ \(.*\)/ \$\{color2\}\2:\$\{color1\}\1/p" | sort | uniq }\ +${color5} Mail: +${color3} dave@sleepmap.de: ${color1}${unseen_mails /home/dave/Mail/sleepmap.de/INBOX 30}/${seen_mails /home/dave/Mail/sleepmap.de/INBOX 30} +${color3} dave@c-base.org: ${color1}${unseen_mails /home/dave/Mail/c-base.org/INBOX 30}/${seen_mails /home/dave/Mail/c-base.org/INBOX 30} +${color3} davezerave@tu-berlin.de: ${color1}${unseen_mails /home/dave/Mail/tu-berlin.de/INBOX 30}/${seen_mails /home/dave/Mail/tu-berlin.de/INBOX 30} diff --git a/.config/qtile/config.py b/.config/qtile/config.py index 94f7629..f23874e 100644 --- a/.config/qtile/config.py +++ b/.config/qtile/config.py @@ -26,8 +26,10 @@ audio_toggle = home+"/bin/notify_mpd toggle" audio_stop = home+"/bin/notify_mpd stop" subprocess.call(['feh', + '--randomize', + '--recursive', '--bg-fill', - home+'/ownCloud/photos/desktop/underwater_greenery.jpg']) + home+'/ownCloud/photos/desktop/']) colors = { "grey": "#555555", |