remade conky conf

This commit is contained in:
Cedric Girard 2014-12-02 16:43:10 +01:00
parent 216cc0e377
commit 68a9d0fb07
5 changed files with 78 additions and 23 deletions

View file

@ -1,7 +1,7 @@
background no background no
use_xft yes use_xft yes
xftfont Helvetica:size=30 xftfont Helvetica:size=30
update_interval 4 update_interval 600
total_run_times 0 total_run_times 0
own_window yes own_window yes
own_window_type desktop own_window_type desktop
@ -17,15 +17,14 @@ draw_graph_borders yes
default_color 808080 default_color 808080
default_shade_color 101319 default_shade_color 101319
alignment top_left alignment top_left
gap_x 300 gap_x 15
gap_y 200 gap_y 149
no_buffers yes no_buffers yes
uppercase no uppercase no
cpu_avg_samples 2 cpu_avg_samples 2
override_utf8_locale yes override_utf8_locale yes
TEXT TEXT
${color ce2c51}${time %a}. ${time %d} ${color ce2c51}${time %A} ${time %d}
${color ffffff}${time %B} ${time %Y} ${color ffffff}${time %B} ${time %Y}
# vim:set ft=conkyrc: # vim:set ft=conkyrc:

View file

@ -1,38 +1,39 @@
background no background no
use_xft yes use_xft yes
xftfont erus:size=08 xftfont erus:size=08
update_interval 3.0 update_interval 5
update_interval_on_battery 10
total_run_times 0 total_run_times 0
own_window yes own_window yes
own_window_type desktop own_window_type desktop
own_window_transparent yes own_window_transparent yes
own_window_hints undecorated,sticky,skip_taskbar,skip_pager own_window_hints undecorated,sticky,skip_taskbar,skip_pager
double_buffer yes double_buffer yes
minimum_size 550 minimum_size 560
maximum_width 550 maximum_width 560
draw_shades no draw_shades no
draw_outline no draw_outline no
draw_borders no draw_borders no
draw_graph_borders yes draw_graph_borders yes
alignment top_left alignment top_left
gap_x 200 gap_x 780
gap_y 415 gap_y 650
no_buffers yes no_buffers yes
uppercase no uppercase no
cpu_avg_samples 2 cpu_avg_samples 2
override_utf8_locale no override_utf8_locale no
TEXT TEXT
${goto 10}${color ce2c51}RAM ${goto 110}BATTERY ${goto 220}WIRELESS \ ${goto 10}${color ce2c51}RAM ${goto 110}SWAP ${goto 210}BATTERY ${goto 320}WIRELESS \
${goto 360}ETHERNET\ ${goto 460}ETHERNET\
${goto 10}${color ffffff}used: ${mem}${goto 110}${battery} ${goto 220}wlan0: ${addr wlan0} \ ${goto 10}${color ffffff}used: ${mem}${goto 110}used: ${swap} ${goto 210}${battery} ${goto 320}wlan0: ${addr wlan0} \
${goto 360}eth0: ${addr eth0}\ ${goto 460}eth0: ${addr eth0}\
${goto 10}free: ${memeasyfree} ${goto 110}${battery_bar 8,80} ${goto 220}essid: ${wireless_essid wlan0} \ ${goto 10}free: ${memeasyfree} ${goto 110}free: ${swapfree}${goto 210}${battery_bar 8,80} ${goto 320}essid: ${wireless_essid wlan0} \
${goto 360}${downspeedf eth0}/${upspeedf eth0} KiB/s ${goto 460}${downspeedf eth0}/${upspeedf eth0} KiB/s
${goto 110}${battery_time}${goto 220}signal: ${wireless_link_bar 8,70 wlan0} \ ${goto 10}${membar 8,70} ${goto 110}${swapbar 8,70} ${goto 210}${battery_time}${goto 320}signal: ${wireless_link_bar 8,70 wlan0} \
${goto 220}${downspeedf wlan0}/${upspeedf wlan0} KiB/s ${goto 320}${downspeedf wlan0}/${upspeedf wlan0} KiB/s
# vim:set ft=conkyrc: # vim:set ft=conkyrc:

View file

@ -2,14 +2,14 @@ background no
use_xft yes use_xft yes
xftfont Helvetica:size=60 xftfont Helvetica:size=60
xftalpha 0.9 xftalpha 0.9
update_interval 3.0 update_interval 30
total_run_times 0 total_run_times 0
own_window yes own_window yes
own_window_type desktop own_window_type desktop
own_window_transparent yes own_window_transparent yes
own_window_hints undecorated,sticky,skip_taskbar,skip_pager own_window_hints undecorated,sticky,skip_taskbar,skip_pager
double_buffer yes double_buffer yes
minimum_size 200 minimum_size 100
maximum_width 250 maximum_width 250
draw_shades yes draw_shades yes
draw_outline no draw_outline no
@ -20,12 +20,11 @@ default_shade_color 101319
default_outline_color green default_outline_color green
alignment top_left alignment top_left
gap_x 15 gap_x 15
gap_y 200 gap_y 50
no_buffers yes no_buffers yes
uppercase no uppercase no
cpu_avg_samples 2 cpu_avg_samples 2
override_utf8_locale no override_utf8_locale no
TEXT TEXT
${color 000000}${time %H} ${color ffffff}${time %M} ${color ffffff}${time %H}:${color ffffff}${time %M}
# vim:set ft=conkyrc: # vim:set ft=conkyrc:

31
conky/scripts/calendar.sh Executable file
View file

@ -0,0 +1,31 @@
#!/bin/bash
#
# pop-up calendar for dzen
#
# based on (c) 2007, by Robert Manea
# http://dzen.geekmode.org/dwiki/doku.php?id=dzen:calendar
# modified by urukrama
#
TODAY=$(expr `date +'%d'` + 0)
MONTH=`date +'%m'`
YEAR=`date +'%Y'`
(
echo '^bg(#000000)^fg(#FFFFFF)'`date +'%A %d %B %Y %n'`; echo
\
# current month, hilight header and today
cal \
| sed -re "s/^(.*[A-Za-z][A-Za-z]*.*)$/^fg(#B23308)^bg(#000000)\1/;s/(^|[ ])($TODAY)($|[ ])/\1^bg(#B23308)^fg(#000000)\2^fg(#FFFFFF)^bg(#000000)\3/"
# next month, hilight header
#[ $MONTH -eq 12 ] && YEAR=`expr $YEAR + 1`
#cal `expr \( $MONTH + 1 \) % 12` $YEAR \
# | sed -e 's/^\(.*[A-Za-z][A-Za-z]*.*\)$/^fg(#B23308)^bg(#000000)\1/'
sleep 8
) \
| dzen2 -fn '-misc-fixed-*-*-*-*-10-*-*-*-*-*-*-*' -x 1120 -y 15 -w 160 -l 9 -sa c -e 'button3=exit;button1=exit;onstart=uncollapse;'-
#-artwiz-nu-medium-r-normal--11-110-75-75-p-90-iso8859-1
#-fg '#F2EDD7' -bg '#000000'

25
conky/scripts/sysinfo_popup.sh Executable file
View file

@ -0,0 +1,25 @@
#/bin/bash
#A simple popup showing system information
HOST=$(uname -n)
KERNEL=$(uname -r)
UPTIME=$( uptime | sed 's/.* up //' | sed 's/[0-9]* us.*//' | sed 's/ day, /d /'\
| sed 's/ days, /d /' | sed 's/:/h /' | sed 's/ min//'\
| sed 's/,/m/' | sed 's/ / /')
PACKAGES=$(pacman -Q | wc -l)
UPDATED=$(awk '/upgraded/ {line=$0;} END { $0=line; gsub(/[\[\]]/,"",$0); \
printf "%s %s",$1,$2;}' /var/log/pacman.log)
(
echo "System Information" # Fist line goes to title
# The following lines go to slave window
echo "Host: $HOST "
echo "Kernel: $KERNEL"
echo "Uptime: $UPTIME "
echo "Pacman: $PACKAGES packages"
echo "Last updated on: $UPDATED"
) | dzen2 -p -x "680" -y "15" -w "220" -l "5" -sa 'l' -ta 'c'\
-title-name 'popup_sysinfo' -e 'onstart=uncollapse;button1=exit;button3=exit' -fn '-misc-fixed-*-*-*-*-10-*-*-*-*-*-*-*'
# "onstart=uncollapse" ensures that slave window is visible from start.