guest@dotshare [~/groups/info/conky] $ ls 1-Line/ | cat

1-Line (scrot)

h00ver Mar 30, 2014 (info/conky)

conkyh00v(raw, dl)

SCROT

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
double_buffer yes
own_window yes
own_window_transparent no
own_window_type normal
own_window_hints undecorate,sticky,skip_taskbar,skip_pager 
draw_borders no
draw_graph_borders no
draw_shades yes
gap_x 0
gap_y 0
alignment bottom_left
update_interval 1
default_color  8f8f8f
own_window_colour 333333
use_xft yes
xftfont droid sans:size=9
override_utf8_locale yes
use_spacer none
minimum_size 1366 0
maximum_width 1360 0
# Solarized 6 Numix Colors
color1 e0e0e0 #white
color2 5f8700 #green
color3 af8700 #yellow
color4 d70000 #red
color5 0087ff #blue
color6 d64937 #Numix red
TEXT
# Date
${goto 10}${voffset -2}${font FontAwesome:size=9}${goto 30}${font}${color1}${font droid sans:size=9}${time %d/%m/%y}\
# Time
${goto 90}${color}${font}${voffset -1}${font FontAwesome:size=9}${font}${goto 105}${color1}${font droid sans:size=9}${time %H:%M}\
# Kernel
${goto 145}${color}${font FontAwesome:size=9}${font}${goto 160}${voffset -1}${color1}${font droid sans:size=9}$kernel${color}${font}\
# CPU
${goto 250}${font FontAwesome:size9}${font}${goto 274}${color1}${voffset -2}${font droid sans:size=9}${cpu cpu0}%${color1}${font}\
# CPU Temp
${goto 305}${voffset -1}${color}${font FontAwesome:size=9}${font}${goto 320}${color1}${exec sensors | grep 'Physical id 0' | sed -n 1p | awk -F'+' '{print $2}' | awk -F' ' '{print $1}'}${color}\
# Fan Speed
${goto 365}${font FontAwesome:size=9}${font}${color1}${voffset -1}${goto 385}${platform thinkpad_hwmon fan 1}${color}${goto 415}rpm\
# RAM
${goto 445}${font FontAwesome:size=9}${font}${goto 465}${voffset -1}${color1}${font droid sans:size=9}${memperc}%${color}\
# Swap
${goto 495}${voffset -1}${font FontAwesome:size=9}${font}${goto 510}${voffset 0}${color1}${font droid sans:size=9}${swapperc}%\
# Root
${goto 537}${color}${font FontAwesome:size=9}${goto 555}${color1}${voffset -1}${font}${fs_used /}${goto 600}${color}/${goto 605}${fs_size /}\
# Data
${goto 652}${voffset -1}${font FontAwesome:size=9}${font}${goto 667}${color1}${fs_used /media/Data}${goto 707}${color}/${goto 713}${fs_size /media/Data}\
# Network LAN & WLAN
${goto 760}${if_existing /proc/net/route enp0s25}${color}${voffset -1}${font FontAwesome:size=9}${font}${goto 775}${color1}${upspeed enp0s25}${voffset -1}${goto 825}${color}${font FontAwesome:size=9}${font}${goto 840}${color1}${downspeed enp0s25}${color}${else}${goto 760}${if_existing /proc/net/route wlp3s0}${color}${voffset -1}${font FontAwesome:size=9}${font}${goto 775}${color1}${upspeed wlp3s0}${voffset -1}${goto 825}${color}${font FontAwesome:size=9}${font}${goto 840}${color1}${downspeed wlp3s0}${color}${else}${goto 760}${color6}Network Unavailable${endif}${endif}\
# Battery
${goto 895}${color}${font FontAwesome:size=9}${font}${color1}${goto 910}${voffset -1}${battery_percent BAT0}%${color}\
# Weather
${goto 955}${voffset -1}${font FontAwesome:size=9}${font}${goto 975}${color1}${execi 300 curl -s "http://weather.yahooapis.com/forecastrss?w=676757&u=c" -o ~/.cache/weather.xml}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}°${goto 995}${color}/${goto 1002}${color1}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}°${color}\
# MPD
${goto 1035}${font FontAwesome:size=9}${font}${goto 1053}${voffset -1}${color1}${if_mpd_playing}${mpd_artist}${color} - ${color1}${mpd_title}${else}${color6}MPD not running${endif}

CLICK TO VIEW

x

conky1920(raw, dl)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
double_buffer yes
own_window yes
own_window_transparent no
own_window_type panel
own_window_hints undecorate,sticky,skip_taskbar,skip_pager 
draw_borders no
draw_graph_borders no
draw_shades yes
gap_x 0
gap_y 0
alignment bottom_left
update_interval 1
default_color 8f8f8f
own_window_colour 2D2D2D
use_xft yes
xftfont droid sans:size=9
override_utf8_locale yes
use_spacer none
minimum_size 1920 15
maximum_width 1920
color1 e0e0e0 # Solarized white
color2 849906 # Solarized green
color3 af8700 # Solarized yellow
color4 d70000 # Solarized red
color5 1C87C3 # Solarized blue
color6 d64937 # Numix red
TEXT
# Date (DD:MM:YY)
${goto 15}${voffset -2}${font FontAwesome:size=9}${goto 40}${font}${color1}${time %d/%m/%y}\
# Time (24:00)
${goto 115}${color}${font}${voffset -1}${font FontAwesome:size=9}${font}${goto 135}${color1}${time %H:%M}\
# Kernel
${goto 190}${color}${font FontAwesome:size=9}${font}${goto 210}${voffset -1}${color1}$kernel${color}${font}\
# CPU-Load
${goto 315}${voffset -1}${font FontAwesome:size9}${font}${goto 345}${color1}${voffset -2}${cpu cpu0}%${color1}${font}\
# CPU-Temp
${goto 385}${voffset -1}${color}${font FontAwesome:size=9}${font}${goto 405}${color1}${exec sensors | grep 'Physical id 0' | sed -n 1p | awk -F'+' '{print $2}' | awk -F' ' '{print $1}'}\
# ATI-Temp (needs aticonfig)
${goto 465}${voffset -1}${color}${font FontAwesome:size=9}${font}${goto 490}${color1}${execi 1 aticonfig --adapter=0 --od-gettemperature | tail -n1 | gawk '{ printf "%.4s", $5 }'}°C\
# Memory Usage
${goto 550}${font FontAwesome:size=9}${font}${goto 575}${voffset -1}${color1}${memperc}%${color}\
# Swap Usage
${goto 620}${voffset -1}${font FontAwesome:size=9}${font}${goto 645}${voffset 0}${color1}${swapperc}%\
# HDD root
${goto 690}${color}${font FontAwesome:size=9}${goto 720}${color1}${voffset -1}${font}${fs_used /}${goto 770}${color}/${goto 780}${fs_size /}\
# HDD data (/media/Data)
${goto 850}${voffset -1}${font FontAwesome:size=9}${font}${goto 870}${color1}${fs_used /media/Data}${goto 915}${color}/${goto 925}${fs_size /media/Data}\
# Network (LAN = enp3s0, WLAN = wlp4s0, get interfaces with "ip addr")
${goto 1000}${if_existing /proc/net/route enp3s0}${color}${voffset -1}${font FontAwesome:size=9}${font}${goto 1030}${color1}${upspeed enp3s0}${voffset -1}${goto 1100}${color}${font FontAwesome:size=9}${font}${goto 1130}${color1}${downspeed enp3s0}${color}${else}${goto 1000}${if_existing /proc/net/route wlp4s0}${color}${voffset -1}${font FontAwesome:size=9}${font}${goto 1030}${color1}${upspeed wlp4s0}${voffset -1}${goto 1100}${color}${font FontAwesome:size=9}${font}${goto 1130}${color1}${downspeed wlp4s0}${color}${else}${goto 1000}${color6}Network Unavailable${endif}${endif}${color}\
# Weather (Citycode 676757, get it at http://weather.yahoo.com/)
${goto 1200}${voffset -1}${font FontAwesome:size=9}${font}${goto 1225}${color1}${execi 300 curl -s "http://weather.yahooapis.com/forecastrss?w=676757&u=c" -o ~/.cache/weather.xml}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}°${goto 1245}${color}/${goto 1255}${color1}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}°${color}\
# Updates (pacman Updates, needs updatecheck.sh)
${goto 1300}${voffset -1}${font FontAwesome:size=9}${font}${goto 1325}${color1}${execi 14400 ~/.config/conky/updatecheck.sh}${execp cat /tmp/off.updates | wc -l}${color}   /   ${execp cat /tmp/aur.updates | wc -l}\
# MPD (needs Music Player Daemon)
${goto 1390}${font FontAwesome:size=9}${font}${goto 1410}${voffset -1}${if_mpd_playing}${color}${mpd_status}${goto 1455}${color1}${mpd_title}${color}  on  ${color5}${mpd_album}${color}  by  ${color2}${mpd_artist}${else}${color6}MPD not running${endif}
 

x

updatecheck.sh(raw, dl)

1
2
3
4
5
#!/bin/sh
checkupdates > /tmp/off.updates
wget -O /tmp/aur.rss https://aur.archlinux.org/rss/
grep "$(pacman -Qm)" /tmp/aur.rss > /tmp/rss.check
grep "<title>$(pacman -Qm)</title>" /tmp/rss.check > /tmp/aur.updates
 

x

Notes

1-Line-config for my X230 (1366x786)
FontAwesome -> http://fortawesome.github.io/Font-Awesome/
FontAwesome on AUR -> https://aur.archlinux.org/packages/ttf-font-awesome/
Droid Sans -> http://www.fontsquirrel.com/fonts/Droid-Sans
Wall -> http://mycolorscreen.com/wp-content/uploads/wallpapers_2012/269229/Geo%20Wallpaper.jpg

Update March, 8th 2015
Uploaded conkyrc for 1920x1080 including ATI-Graphics-Temp and pacman-Updates

Comments

stundenull said about 2 years ago

nice conky h00ver, but I only have 1 problem.. it appears half the conky is tilted starting from hdd info to mpd which is effected the worst - barely visible. voffset is troubleing..

edited about 2 years ago

h00ver said about 2 years ago

seems ok for me (updated config-file here and test-scrot @ http://imgur.com/Wqadkio )