You are not logged in.
Name Taken, make use of a image hosting website and only post thumbnails or links here.
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
Reduced CPU thread graph size, added the CPU temperature, GPU info, disk read and write graphs. I am using a desktop so I couldn't test battery, screen brightness, WiFi strength, etc. Colors still need adjusting.
gap_x 20
gap_y 10
alignment middle_right
update_interval 0.5
use_xft yes
xftfont BahamasLight:size=8:bold
own_window yes
own_window_type override
own_window_transparent yes
own_window_colour 000000
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_argb_visual no
own_window_argb_value 0
double_buffer yes
draw_shades no
draw_graph_borders no
uppercase yes
default_bar_size 0 4
default_graph_size 0 24
border_inner_margin 16
default_color FFFFFF
minimum_size 0 0
TEXT
${color}
${alignc}${nodename} linux ${machine} ${kernel}
${alignc}${exec lscpu | grep -i "model name" | cut -c 24-}
${color 2E2EFE}thread1${alignr}thread2${color red}
${cpugraph cpu1 32, 130}${alignr}${cpugraph cpu2 32, 130}
${color 2E2EFE}${cpu cpu1}%${alignr}${cpu cpu2}%
${color red}core1 ${execi 5 sensors | grep 'Core 0' | awk '{print $3}'} degrees${alignr}${color 2E2EFE}
thread3${alignr}thread4
${color red}${cpugraph cpu3 32, 130}${alignr}${cpugraph cpu4 32, 130}
${color 2E2EFE}${cpu cpu3}%${alignr}${cpu cpu4}%
${color red}core2 ${execi 5 sensors | grep 'Core 1' | awk '{print $3}'} degrees${alignr}
${color yellow}${top name 1}${alignr}${top cpu 1}%
${top name 2}${alignr}${top cpu 2}%
${top name 3}${alignr}${top cpu 3}%
${top name 4}${alignr}${top cpu 4}%
${color red}total${alignr} ${cpu}%
${color green}${exec nvidia-settings -q gpus | grep -i "GeForce" | awk '{print $3}'} ${exec nvidia-settings -q gpus | grep -i "GeForce" | awk '{print $4}'} ${exec nvidia-settings -q gpus | grep -i "GeForce" | awk '{print $5}'}${hr 1}
GPU Temp: ${alignr}${nvidia temp} C
Fan Speed: ${alignr}${execi 5 nvidia-settings -q [fan:0]/GPUCurrentFanSpeed -t} %
GPU Clock: ${alignr}${nvidia gpufreq} MHz
Mem Clock: ${alignr}${nvidia memfreq} MHz
Mem Used: ${alignr}${execi 5 nvidia-settings -q [gpu:0]/UsedDedicatedGPUMemory -t} / ${exec nvidia-settings -q [gpu:0]/TotalDedicatedGPUMemory -t} MiB
${color purple}${memgraph}
${membar}
${color purple}ram usage${alignr} ${memperc}%${color yellow}
${top_mem name 1}${alignr}${top_mem pid 1}${alignc}${top_mem mem 1}%
${top_mem name 2}${alignr}${top_mem pid 2}${alignc}${top_mem mem 2}%
${top_mem name 3}${alignr}${top_mem pid 3}${alignc}${top_mem mem 3}%
${top_mem name 4}${alignr}${top_mem pid 4}${alignc}${top_mem mem 4}%
${color purple}total${alignr} ${mem}/${memmax}
${color 819FF7}
sda1 ${hr 1}
/${alignr}${fs_size /}
${fs_bar /}
${fs_used_perc /}%${alignr}${fs_used /}
sda2 ${hr 1}
/home${alignr} ${fs_size /home}
${fs_bar /home}
${fs_used_perc /home}%${alignr}${fs_used /home}
sda3 ${hr 1}
/swap ${alignr} ${swapmax}
${swapbar /home}
${swapperc}%${alignr}${swap}
${color yellow}
disk read${alignr}disk write
${diskiograph_read 32, 130}${alignr}${diskiograph_write 32, 130}
${diskio_read}${alignr}${diskio_write}
${color green}lan${hr 1}
enp4s0${alignr} ${addr enp4s0}
up ${downspeed enp4s0}${alignr}down ${upspeed enp4s0}
${upspeedgraph enp4s0 32, 130}${alignr}${downspeedgraph enp4s0 32, 130}
total ${totaldown enp4s0}${alignr}total ${totalup enp4s0}
${color 00FF40}usb${hr 1}
${if_existing /dev/sdb1}${exec df -h | grep "sdb1" | cut -c -38} $else $endif
${if_existing /dev/sdc1}${exec df -h | grep "sdc1" | cut -c -38}
${if_existing /dev/sdd1}${exec df -h | grep "sdd1" | cut -c -38}
${if_existing /dev/sde1}${exec df -h | grep "sde1" | cut -c -38}
Last edited by Name Taken (2014-04-15 06:24:09)
Offline
I didn't use any 'sensors' code because, from what I understand, it tends to force the system to execute, or work. So, I did what I could with hwmon
# My Conky configuration
# Check http://conky.sf.net for an up-to-date-list.
#
#fonts
use_xft yes
xftfont comicsansms:size=9.5
xftalpha 1.0
uppercase no
update_interval 2.0
total_run_times 0
double_buffer yes
no_buffers yes
own_window yes
own_window_type normal
own_window_transparent yes
own_window_argb_visual yes
#own_window_colour black
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
alignment bottom_right
minimum_size 350 800
maximum_width 400
gap_x 20
gap_y 15
#border info
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
stippled_borders 8
border_width 1
# Default colors and also border colors
default_color LightBlue
default_shade_color White
default_outline_color White
color1 White
color2 LightGreen
color3 Green
# Variables
cpu_avg_samples 2
net_avg_samples 1
override_utf8_locale yes
format_human_readable
short_units
# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer right
# stuff after 'TEXT' will be formatted on screen
############################################################################
TEXT
########## SYSTEM ##############
${color3}${font Arial:style=Bold}SYSTEM ${hr 2}$color$font
${font} ${alignc}${color}$nodename
${color2}Kernel: ${alignr}${color}$sysname $kernel on $machine
${color2}OS: ${alignr}${color}${execi 6000 cat /etc/os-release|grep 'PRETTY_NAME'| cut -c14-23}
#${color2}VERSION:${alignr}${color}${execi 6000 cat /etc/os-release|grep 'VERSION='|awk '{print $1}'|sed 's/VERSION="//'|sed 's/,//'}
${color2}GUI:${alignr}${color}${execi 6000 konsole -version|grep 'KDE' |awk '{print $1" "$4}'}
${color2}Total Uptime:${alignr} ${color}${uptime_short}
########## CPU ###############
${color3}${font Arial:style=Bold}CPU ${hr 2}$color$font
${font}${alignc}${execi 6000 cat /proc/cpuinfo|grep -m 1 'model name'|awk '{print $4" "$5" "$6" "$7" "$8}'}
${color2}Temp: ${alignr}${color}${hwmon 2 temp 1}°C
${color2}Fan: ${alignr}${color}${hwmon 2 fan 1} RPM
${color2}Load: ${alignc}${color} $cpu% ${color3}${cpubar 12}
######### GPU ###############
${color3}${font Arial:style=Bold}GRAPHICS ${hr 2}$color$font
${color2}${execi 1000 lspci | grep VGA | awk '{print $8,$9,$10,$11}' | cut -f2 -d"[" | cut -f1 -d"]"} : ${alignr}${color}${nvidia gpufreq} Mhz
${color2}Memory: ${alignr}${color}${nvidia memfreq} Mhz
${color2}Temp: ${alignr}${color}${nvidia temp} °C
${color2}Fan Speed: ${alignr}${color}${execi 5 nvidia-settings -q [fan:0]/GPUCurrentFanSpeed -t} %
######### MEMORY ###############
${color3}${font Arial:style=Bold}MEMORY ${hr 2}$color$font
${color2}RAM: ${alignr}${color}$memperc% $mem / $memmax
${color2}Swap: ${alignr}${color}$swapperc% $swap / $swapmax
######## HD SPACE ####################
${color3}${font Arial:style=Bold}HD SPACE ${hr 2}$color$font
${color2}ROOT: ${alignc}${color}${fs_free_perc /}% (${fs_free /}/${fs_size /}) ${alignr}${color3}${fs_bar 5,125 /}
${color2}HOME: ${alignc}${color}${fs_free_perc /home}% (${fs_free /home}/${fs_size /home}) ${alignr}${color3}${fs_bar 5,125 /home}
######### NETWORK ###############
${color3}${font Arial:style=Bold}NETWORK ${hr 2}$color$font
${color2}IP on enp5s0: ${color}${alignr}${execi 3600 curl -s http://192.168.1.1|grep 'wan_ipaddr'|awk '{print $1,$2}'|sed 's/<span id="wan_ipaddr">//'|sed 's!</span> !!'}
${wireless_ap enp5s0}${alignr} ${addr enp5s0}
up ${upspeed enp5s0}${alignr}down ${downspeed enp5s0}
${color3}${upspeedgraph enp5s0 32, 100}${alignr}${color3}${downspeedgraph enp5s0 32, 100}
${color2}total ${totalup enp5s0}${alignr}${color2}total ${totaldown enp5s0}
######### WX ####################
${color3}${font Arial:style=Bold}LOCAL WEATHER${hr 1}$color$font
${execi 3600 curl -s http://weather.noaa.gov/pub/data/observations/metar/decoded/KNTU.TXT |grep 'OCEANA'|awk '{print $1,$2,$3,$4,$5}'}
${execi 3600 curl -s http://weather.noaa.gov/pub/data/observations/metar/decoded/KNTU.TXT |sed -n 2p|awk '{print $1,$2,$3,$4,$5,$6,$7,$8,$10,$11}'}
${execi 3600 curl -s http://weather.noaa.gov/pub/data/observations/metar/decoded/KNTU.TXT |sed -n 3p|awk '{print $1,$2,$5,$6,$7,$8,$9}'}
${execi 3600 curl -s http://weather.noaa.gov/pub/data/observations/metar/decoded/KNTU.TXT |sed -n 4p}
${execi 3600 curl -s http://weather.noaa.gov/pub/data/observations/metar/decoded/KNTU.TXT |sed -n 5p}
${execi 3600 curl -s http://weather.noaa.gov/pub/data/observations/metar/decoded/KNTU.TXT |sed -n 6p}
${execi 3600 curl -s http://weather.noaa.gov/pub/data/observations/metar/decoded/KNTU.TXT |sed -n 7p}
${execi 3600 curl -s http://weather.noaa.gov/pub/data/observations/metar/decoded/KNTU.TXT |sed -n 8p}
${execi 3600 curl -s http://weather.noaa.gov/pub/data/observations/metar/decoded/KNTU.TXT |sed -n 9p}
${execi 3600 curl -s http://weather.noaa.gov/pub/data/observations/metar/decoded/KNTU.TXT |sed -n 10p}
${execi 3600 curl -s http://weather.noaa.gov/pub/data/observations/metar/decoded/KNTU.TXT |sed -n 11p}
${image base.png -p -5,-1 -s 420x135} #System
${image base.png -p -5,125-s 420x125} #CPU
${image base.png -p -5,240 -s 420x125} #GPU
${image base.png -p -5,355 -s 420x90} #Memory
${image base.png -p -5,435 -s 420x90} #HD Space
${image base.png -p -5,515 -s 420x170} #Network
${image base.png -p -5,675 -s 420x220} #Weather
Last edited by Buddlespit (2014-04-21 02:34:27)
Offline
Finally hacked together a multi core (very multi) for my system. No one conky worked for me, so hours of learning and formatting, hacking slashing, copying and pasting later I have these 2 conkys run for me at start up. I like them a lot.
I'm happy to share my conky and luarings files with anyone out there who is looking for conkys on a machine with a high thread count.
-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --
Noted, and image edited. Thanks.
Last edited by mills.sean (2014-05-12 21:41:53)
Offline
Finally hacked together a multi core (very multi) for my system. No one conky worked for me, so hours of learning and formatting, hacking slashing, copying and pasting later I have these 2 conkys run for me at start up. I like them a lot.
I'm happy to share my conky and luarings files with anyone out there who is looking for conkys on a machine with a high thread count.https://farm8.staticflickr.com/7326/141 … 3c1b_m.jpg
-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --
Noted, and image edited. Thanks.
I'm gonna take a wild guess here and assume this isn't just some ordinary laptop
Offline
I'm gonna take a wild guess here and assume this isn't just some ordinary laptop
That depends on how one defines 'laptop', I could certainly place it on top of my lap.
Just kidding. Yeah, it's a purpose built 3D workstation.
Here's more if you're curious or itnerested... oh yes, in there is a screenfetch of my actual laptop, it's the one called 'oslo'. It's not a workstation per se, but it's not to shabby either!
Offline
This is a very simple conky config. Nothing fancy here. Just basic system info, system update notification, top processes, file system usage, and network stats for wire and wireless adapters. The wire/wireless info is conditional -- only showing when the adapter is active/connected. Also added playback info for music from mpd.
# Conky, a system monitor, based on torsmo
#
# Any original torsmo code is licensed under the BSD license
#
# All code written since the fork of torsmo is licensed under the GPL
#
# Please see COPYING for details
#
# Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
# Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
# All rights reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
background yes
border_width 1
cpu_avg_samples 2
default_color white
default_outline_color white
default_shade_color white
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no
use_xft yes
xftfont DejaVu Sans Mono:size=12
maximum_width 250
minimum_size 250 900
net_avg_samples 2
no_buffers yes
out_to_console no
out_to_stderr no
extra_newline no
stippled_borders 0
update_interval 1.0
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no
alignment top_right
gap_x 5
gap_y 5
own_window yes
own_window_class Conky
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
own_window_argb_visual yes
own_window_argb_value 0
double_buffer yes
TEXT
${font DejaVu San Mono: size=12: style=bold}SYSTEM${font} $hr
Kernel:${alignr}$kernel
CPU1:${offset 50}${cpu cpu1}%${alignr}${cpubar cpu1 10,100}
CPU2:${offset 50}${cpu cpu2}%${alignr}${cpubar cpu2 10,100}
RAM:${offset 60}${memperc}%${alignr}${membar 10,100}
SWAP:${offset 50}${swapperc}%${alignr}${swapbar 10,100}
Battery:${offset 20}${battery_percent}%${alignr}${battery_bar 10,100}
Uptime:${alignr}$uptime
Updates:${offset 20}${execi 3600 pacman -Qu | wc -l}
${font DejaVu San Mono: size=12: style=bold}PROCESSES${font} $hr
${top_mem name 1}${alignr}${top mem 1}%
${top_mem name 2}${alignr}${top mem 2}%
${top_mem name 3}${alignr}${top mem 3}%
${top_mem name 4}${alignr}${top mem 4}%
${top_mem name 5}${alignr}${top mem 5}%
${font DejaVu San Mono: size=12: style=bold}FILE SYSTEM${font} $hr
Root:${alignr}${fs_bar 10,100 /}
Boot:${alignr}${fs_bar 10,100 /boot}
Var:${alignr}${fs_bar 10,100 /var}
Home:${alignr}${fs_bar 10,100 /home}
${if_existing /sys/class/net/enp0s25/operstate up}${font DejaVu San Mono: size=12: style=bold}Wired${font} $hr
Up:${alignr}${upspeedf enp0s25}KiB/s
Down:${alignr}${downspeedf enp0s25}KiB/s
Upload:${alignr}${totalup enp0s25}
Download:${alignr}${totaldown enp0s25}
Local IP:${alignr}${addr enp0s25}${endif}
${if_existing /sys/class/net/enp0s25/operstate down}${voffset -40}${endif}${if_existing /sys/class/net/wlp3s0/operstate up}${voffset 20}${font DejaVu San Mono: size=12: style=bold}Wireless${font} $hr
SSID:${alignr}${wireless_essid wlp3s0}
Up:${alignr}${upspeedf wlp3s0}KiB/s
Down:${alignr}${downspeedf wlp3s0}KiB/s
Upload:${alignr}${totalup wlp3s0}
Download:${alignr}${totaldown wlp3s0}
Local IP:${alignr}${addr wlp3s0}
${endif}
${if_mpd_playing}${font DejaVu San Mono: size=12: style=bold}Music: $hr${font}
${if_match ${execi 5 expr length "`mpc --format %album% | head -n 1`"} >= 25}${scroll 25 3 ${mpd_album}}${else}${mpd_album}${endif}
${if_match ${execi 5 expr length "`mpc --format %artist% | head -n 1`"} >= 25}${scroll 25 3 ${mpd_artist}}${else}${mpd_artist}${endif}
${if_match ${execi 5 expr length "`mpc --format %title% | head -n 1`"} >= 25}${scroll 25 3 ${mpd_title}}${else}${mpd_title}${endif}
${mpd_bar}${endif}
Offline
hobarrera wrote:I'm gonna take a wild guess here and assume this isn't just some ordinary laptop
That depends on how one defines 'laptop', I could certainly place it on top of my lap.
Just kidding. Yeah, it's a purpose built 3D workstation.Here's more if you're curious or itnerested... oh yes, in there is a screenfetch of my actual laptop, it's the one called 'oslo'. It's not a workstation per se, but it's not to shabby either!
Cool! Thanks for sharing.
Offline
Here is my setup. You can find the original by n00by4ever HERE. His was for a bigger screen, so I modified this to fit my 1366x769 screen. Wallpaper is HERE. I used conkywx for the weather (available in the AUR) and this SCRIPT to display the album cover art when running mpd.
Last edited by spudrucket (2014-05-27 09:42:22)
Offline
Could you post config for it?
Offline
http://i1306.photobucket.com/albums/s577/Buddlespit/th_snapshot2_zpsa598126f.png
I didn't use any 'sensors' code because, from what I understand, it tends to force the system to execute, or work. So, I did what I could with hwmon
...
Hey. Could you please uploade the base.jpg picture needed for your config? Thanks.
Offline
Buddlespit wrote:http://i1306.photobucket.com/albums/s577/Buddlespit/th_snapshot2_zpsa598126f.png
I didn't use any 'sensors' code because, from what I understand, it tends to force the system to execute, or work. So, I did what I could with hwmon
...
Hey. Could you please uploade the base.jpg picture needed for your config? Thanks.
Offline
I modified the Lunatico rings conky script. Here's what my modified version looks like:
Guages change color based on value e.g. battery goes from green to red as it drops, cpu goes from green to red as it gets loaded.
Edit: updated with calendar (courtesy some scripts I found on the web) and weather (courtesy: Satya on deviantart)
Last edited by surfatwork (2014-08-02 17:18:44)
Offline
Could you please share/upload your .conkyconfig folder?
Last edited by warlikeofchaos (2014-08-02 19:51:05)
Offline
Here's my masterpiece, it only took me a week to get it right. It's actually three scripts, one of which has an lua, and there's a font folder you can either leave in the conky dir or install it. I actually made it out of about 6 other scripts I found here and there. I call it: "Sceptic Haze."
http://i.imgur.com/jjcoIE6.png
Scripts:
https://copy.com/II9WB0wsKs7oUAwN
Last edited by wchouser3 (2014-12-06 20:11:22)
If you can't be helpful, don't say anything at all. Fair enough?
Offline
Hello everyone. Been running Arch a few months now, like it, will stay for a while.
Been hacking on Conky for longer than that, and since my conkyrc started like a mosaic, taking pieces from whatever caught my eye, I feel obligated to share what I have. It's not 'done', but I'm proud of how distro-agnostic it is. Currently my mountpoint monitoring and network device monitoring are hard-coded, but I'm working on that next. The distro detection is pretty portable, though, and I'm proud of that. Please take, improve, and enjoy. No wallpaper link, it's digitalblasphemy which is semi-commercial, so not mine to give away. It changes via Variety anyways.
Conkyrc from my M4800 (quad core/eight thread) - http://pastebin.com/pQeJp3px - Original name is ~/.conkyrc
Lua for ring gauges, lifted from Mint originally, lightly modified - http://pastebin.com/TZwAbv4j - Original name is ~/.conky/clock_rings.lua
Lua for percentage padding - http://pastebin.com/R8k2Eqv3 - Original name is ~/.conky/conky_lua.lua
Conkyrc from my old E6530 (two cores/four threads) - http://pastebin.com/LgFDPQiA- Original name is ~/.conkyrc
The E6530 one isn't current, but it has the bars and CPU rings laid out for four threads, which is probably more common. By copying those sections into my M4800 master, you'll have a current 2C/4T version.
If anyone accomplishes anything with auto-detection of network/mounting and wouldn't mind sharing, it'll save me some time down the road. Otherwise, take whatever you like, enjoy.
-- mod edit: read the rules and only post thumbnails https://bbs.archlinux.org/viewtopic.php?id=61754 [jwr] --
Offline
*delete
Last edited by defconctugt (2014-12-20 06:34:03)
Offline
A Improved version:
background no
use_xft yes
xftfont 123:size=8
xftalpha 0.1
update_interval 1
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
maximum_width 400
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
default_color white
default_shade_color red
default_outline_color green
alignment top_left
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer none
TEXT
${alignc 32}${font xirod:size=11}${color}arch${color green} linux$color$font
${alignc}${font font:Bold:size=8}${execi 30 users | cut -c1-5}@$nodename$font
${alignc}${font font:Bold:size=8}defconctugt@$nodename$font
# SYS
${font xirod:Bold:size=10}${color green}SYSTEM${hr 2}$color${font}
System Uptime $alignr $uptime
User(s) $alignr$user_names
Active Consoles$alignr$user_terms
$sysname $kernel $alignr $machine
MB Temperature $alignr ${execi 30 sensors | grep 'temp1:' | cut -c17-18}
AC Status $alignr$acpiacadapter ${battery BAT1}
Battery Temp $alignr$acpitemp°C
System ${exec sensors | grep temp3}
# CPU
${font xirod:Bold:size=10}${color green}CPU${hr 2}$font
$color${font}Intel i7 4810MQ $alignr ${freq_g cpu0}GHz
- - - - - - - - - - - - -- - - - - - - - - - - - - - - - - - -
${font}Core 0 ${color green}${execi 30 sensors | grep 'Core 0:' | cut -c18-19}°C${color} @ ${cpu cpu1} % $alignc ${color green}${cpubar cpu1}${color}
${font}Core 1 ${color green}${execi 30 sensors | grep 'Core 1:' | cut -c18-19}°C${color} @ ${cpu cpu2} % $alignc ${color green}${cpubar cpu2}${color}
${font}Core 2 ${color green}${execi 30 sensors | grep 'Core 2:' | cut -c18-19}°C${color} @ ${cpu cpu3} % $alignc ${color green}${cpubar cpu3}${color}
${font}Core 3 ${color green}${execi 30 sensors | grep 'Core 3:' | cut -c18-19}°C${color} @ ${cpu cpu4} % $alignc ${color green}${cpubar cpu4}${color}
Core 0${alignr}Core1
${cpugraph cpu1 17,110 000000 BF0A0D} ${alignr}${cpugraph cpu2 17,110 000000 BF0A0D}
Core 2${alignr}Core 3
${cpugraph cpu3 17,110 000000 BF0A0D} ${alignr}${cpugraph cpu4 17,110 000000 BF0A0D}
# LOAD
${font xirod:Bold:size=10}${color green}LOAD${hr 2}$font${color}
${font font:bold:size=8.5}*** CPU ******** ${running_processes} / $processes $alignr (%) PID $alignr CPU $alignr MEM$font
${font font:bold:size=8.5}${color red}${top name 1}${alignr}${top pid 1}${top cpu 1} ${top mem 1}${color}$font
${color orange}${top name 2}${alignr}${top pid 2}${top cpu 2} ${top mem 2}${color}
${color yellow}${top name 3}${alignr}${top pid 3}${top cpu 3} ${top mem 3}${color}
${top name 4}${alignr}${top pid 4}${top cpu 4} ${top mem 4}
${top name 5}${alignr}${top pid 5}${top cpu 5} ${top mem 5}
${font font:bold:size=8.5}*** MEM ******** $alignr (%) PID $alignr MEM $alignr CPU$font
${font font:bold:size=8.5}${color red}${top_mem name 1}${alignr}${top_mem pid 1}${alignr}${top_mem mem 1} ${top_mem cpu 1}$font
${color orange}${top_mem name 2}${alignr}${top_mem pid 2}${alignr}${top_mem mem 2} ${top_mem cpu 2}$color
${color yellow}${top_mem name 3}${alignr}${top_mem pid 3}${alignr}${top_mem mem 3} ${top_mem cpu 3}$color
${color white}${top_mem name 4}${alignr}${top_mem pid 4}${alignr}${top_mem mem 4} ${top_mem cpu 4}$color
${top_mem name 5}${alignr}${top_mem pid 5}${alignr}${top_mem mem 5} ${top_mem cpu 5}
# MEMORY
${font xirod:Bold:size=10}${color green}MEMORY${hr 2}$color$font
${font Open Sans:bold:size=8.5}RAM$font
$mem / $memmax $alignr $memperc %
$membar
${font Open Sans:bold:size=8.5}SWAP$font
$swap / $swapmax $alignr $swapperc
${swapbar};
# HDD
${font xirod:Bold:size=10}${color green}Disks${hr 2}$font$color
${font font:bold:size=8.5}/dev/sda Read:$diskio_read Write:$diskio_write $alignr ${execi 30 sudo hddtemp /dev/sda | grep '/dev/sda:' | cut -c28-29}°C
${font font:bold:size=8.5}ROOT $font$font$alignr ${fs_type /}$font
${fs_used /} / ${fs_size /} $alignr ${fs_used_perc /} %
${fs_bar /}
.conkyrcr
background no
use_xft yes
xftfont 123:size=8
xftalpha 0.1
update_interval 1
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
maximum_width 400
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
default_color white
default_shade_color red
default_outline_color green
alignment top_right
gap_x 24
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer none
TEXT
# NETWORK
${font xirod:Bold:size=10}${color green}Network${hr 2}$font
${font font:Bold:size=8}${color green}NETWORK (GENERAL)${color green} ${stippled_hr}$color$font
Active Interface ${alignr}$gw_iface
Public IP${alignr}${execi 3600 wget -O - [url]http://ip.tupeux.com[/url] | tail}
Gateway IP ${alignr}$gw_ip
DNS ${alignr}$nameserver
TOR Status ${alignr}${if_running tor} Active${else}Disabled${endif}
Firewall ${alignr}${exec ufw status}
Packets $alignr In:${tcp_portmon 1 32767 count} Out: ${tcp_portmon 32768 61000 count}
${font font:Bold:size=8}$alignc${color green}NETWORK (WIRED) ${color green} ${stippled_hr}$color$font
${font font:Bold:size=8}eth0 $alignr ${addr eth0}$font
Down: ${color green}${downspeed eth0}k/s ${color}(${totaldown eth0})${alignr}Up: ${color green}${upspeed eth0}k/s $color(${totalup eth0})
${downspeedgraph eth0 17,110 000000 ff0000} ${alignr}${upspeedgraph eth0 17,110 000000 00ff00}$color
${font font:Bold:size=8}$alignc${color green}NETWORK (WIRELESS) ${color green} ${stippled_hr}$font$color
${font font:Bold:size=8}wlan0 $font$alignr ${addr wlan0}$font
SSID${font DroidSans:size=8.3}${alignr}${wireless_essid wlan0}${font}
Down: ${color green}${downspeed wlan0}k/s ${color}(${totaldown eth1})${alignr}Up: ${color green}${upspeed wlan0}k/s $color(${totalup eth1})
${downspeedgraph wlan0 17,110 000000 ff0000} ${alignr}${upspeedgraph wlan0 17,110 000000 00ff00}
$alignr${color green}Link quality:${color green}${wireless_link_bar 10,180 eth1}$color
# TCP & UDP
${font xirod:Bold:size=8}${color green}CONNECTIONS ${stippled_hr}$font$color
${font font:Bold:size=8}Inbound Connections: ${tcp_portmon 1 32767 count} ${alignr} Local Service / Port$font
${tcp_portmon 1 32767 rhost 0} ${alignr} $font${color MintCream}${tcp_portmon 1 32767 lservice 0}
${tcp_portmon 1 32767 rhost 1} ${alignr} $font${color MintCream}${tcp_portmon 1 32767 lservice 1}
${tcp_portmon 1 32767 rhost 2} ${alignr} $font${color MintCream}${tcp_portmon 1 32767 lservice 2}
${tcp_portmon 1 32767 rhost 3} ${alignr} $font${color MintCream}${tcp_portmon 1 32767 lservice 3}
${tcp_portmon 1 32767 rhost 4} ${alignr} $font${color MintCream}${tcp_portmon 1 32767 lservice 4}
${font font:Bold:size=8}Outbound Connections: ${tcp_portmon 32768 61000 count} ${alignr} Remote Service / Port$font
${tcp_portmon 32768 61000 rhost 0} ${alignr} ${tcp_portmon 32768 61000 rservice 0}
${tcp_portmon 32768 61000 rhost 1} ${alignr} ${tcp_portmon 32768 61000 rservice 1}
${tcp_portmon 32768 61000 rhost 2} ${alignr} ${tcp_portmon 32768 61000 rservice 2}
${tcp_portmon 32768 61000 rhost 3} ${alignr} ${tcp_portmon 32768 61000 rservice 3}
${tcp_portmon 32768 61000 rhost 4} ${alignr} ${tcp_portmon 32768 61000 rservice 4}
${tcp_portmon 32768 61000 rhost 5} ${alignr} ${tcp_portmon 32768 61000 rservice 5}
${tcp_portmon 32768 61000 rhost 6} ${alignr} ${tcp_portmon 32768 61000 rservice 6}
${tcp_portmon 32768 61000 rhost 7} ${alignr} ${tcp_portmon 32768 61000 rservice 7}
${tcp_portmon 32768 61000 rhost 8} ${alignr} ${tcp_portmon 32768 61000 rservice 8}
${tcp_portmon 32768 61000 rhost 9} ${alignr} ${tcp_portmon 32768 61000 rservice 9}
${tcp_portmon 32768 61000 rhost 10} ${alignr} ${tcp_portmon 32768 61000 rservice 10}
${tcp_portmon 32768 61000 rhost 11} ${alignr} ${tcp_portmon 32768 61000 rservice 11}
${tcp_portmon 32768 61000 rhost 12} ${alignr} ${tcp_portmon 32768 61000 rservice 12}
${tcp_portmon 32768 61000 rhost 13} ${alignr} ${tcp_portmon 32768 61000 rservice 13}
${tcp_portmon 32768 61000 rhost 14} ${alignr} ${tcp_portmon 32768 61000 rservice 14}
${tcp_portmon 32768 61000 rhost 15} ${alignr} ${tcp_portmon 32768 61000 rservice 15}
${tcp_portmon 32768 61000 rhost 16} ${alignr} ${tcp_portmon 32768 61000 rservice 16}
${tcp_portmon 32768 61000 rhost 17} ${alignr} ${tcp_portmon 32768 61000 rservice 17}
${tcp_portmon 32768 61000 rhost 18} ${alignr} ${tcp_portmon 32768 61000 rservice 18}
${tcp_portmon 32768 61000 rhost 19} ${alignr} ${tcp_portmon 32768 61000 rservice 19}
${color orange}${font xirod:size=8}FIREWALL LOG ${hr 2}$color$font
${execi 30 tail -n3 /var/log/gufw_log.txt | fold -w50}
$stippled_hr
${color orange}${font xirod:size=8}SYSTEM LOG $stippled_hr$color$font
${execi 30 tail -n3 /var/log/messages | fold -w50}
Last edited by defconctugt (2014-12-20 08:39:48)
Offline
Here is my conky...
Nothhing eye-candy but providing me the info that i need including the open remote connections.
I make it by copying some from here, some from there and then added my touch
Here is the config
For left side
background no
use_xft yes
xftfont Akzidenz-Grotesk BQ:Condensed:size=8
xftalpha 0.8
update_interval 2.0
update_interval_on_battery 6.0
total_run_times 0
own_window yes
own_window_transparent no
own_window_argb_visual yes
own_window_argb_value 180
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
maximum_width 600
minimum_size 100 1800
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
stippled_borders 8
border_margin 4
border_width 1
default_color gray
default_shade_color black
default_outline_color white
alignment top_left
gap_x 3
gap_y 0
no_buffers yes
text_buffer_size 2048
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale no
use_spacer yes
TEXT
${font Droid Sans:size=12}${color Tan1}NET${color Ivory}WORK ${font}
${if_match "${pre_exec cat /sys/class/net/eno1/operstate | sed -e 's/up/true/' -e 's/down/false/'}"=="true"}${color Tan2}eno1${color DarkSlateGray}${hr 2}${color}
${offset 10}Gateway IP: $gw_ip
${offset 10}Public IP: ${texeci 900 wget -q -O - checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'}${alignr} Local IP: ${addr eno1}
${offset 10}Down: ${downspeed eno1} k/s ${alignr}Up: ${upspeed eno1} k/s
${offset 10}${downspeedgraph eno1 16,100 444444 eeeeee} ${alignr}${upspeedgraph eno1 16,100 444444 eeeeee}
${offset 10}Total: ${totaldown eno1} ${alignr}Total: ${totalup eno1}${endif}
${if_match "${pre_exec cat /sys/class/net/wlp3s0/operstate | sed -e 's/up/true/' -e 's/down/false/'}"=="true"}${color Tan2}wlp3s0 ${wireless_link_qual_perc wlp3s0}% ${color DarkSlateGray}${hr 2}${color}
${offset 10}Gateway IP: $gw_ip
${offset 10}Public IP: ${texeci 900 wget -q -O - checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'}${alignr} Local IP: ${addr wlp3s0}
${offset 10}Down: ${downspeed wlp3s0} k/s ${alignr}Up: ${upspeed wlp3s0} k/s
${offset 10}${downspeedgraph wlp3s0 16,100 444444 eeeeee} ${alignr}${upspeedgraph wlp3s0 16,100 444444 eeeeee}
${offset 10}Total: ${totaldown wlp3s0} ${alignr}Total: ${totalup wlp3s0}${endif}
${voffset -16}${color Tan2}ESTABLISHED Connections${color DarkSlateGray}${hr 2}
${offset 10}${color lightgrey}Inbound: ${color white}${tcp_portmon 1 32767 count} ${color lightgrey}Outbound: ${color white}${tcp_portmon 32768 61000 count}${alignr}${color lightgrey}Total: ${color white}${tcp_portmon 1 65535 count}
${color slate grey}Process ${color slate grey}Remote IP ${color slate grey}L-Port ${alignr}${color slate grey}R-Port${color lightgrey}
${font DejaVu Sans Mono:size=7}${texeci 15 ss -anp | grep 'ESTAB' | grep -v 'thunderbird' | grep -v 'u_str' | sed -r 's|.*192.[0-9.]+:([0-9]*)\s*([0-9.]+):([0-9]+)[^"]+"([a-zA-Z0-9-]*).*|\4 \2 \1 \3|' | awk '{printf("%-16s %-15s %5s %5s\n",$1,$2,$3,$4)}'}
For right side
background no
use_xft yes
xftfont Akzidenz-Grotesk BQ:Condensed:size=8
xftalpha 0.8
update_interval 5.0
update_interval_on_battery 10.0
total_run_times 0
own_window yes
own_window_argb_visual yes
own_window_argb_value 200
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
maximum_width 500
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
stippled_borders 8
border_margin 4
border_width 1
default_color gray
default_shade_color black
default_outline_color white
alignment top_right
gap_x 3
gap_y 0
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer none
color1 0099CC
color2 9933CC
color3 669900
color4 FF8800
color5 CC0000
color6 AAAAAA
color7 484848
TEXT
${voffset -7}${texeci 1800 curl -s "http://weather.yahooapis.com/forecastrss?w=2295377&u=c" -o ~/.cache/weather.xml}${font :Condensed:size=14}${texeci 1800 grep "yweather:location" ~/.cache/weather.xml | grep -o "city=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}, ${texeci 1800 grep "yweather:location" ~/.cache/weather.xml | grep -o "country=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${font}${voffset -38}
${color white}${font Droid Sans:bold:size=14}${alignr}${texeci 1800 grep "yweather:condition" ~/.cache/weather.xml | grep -o "temp=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}°${font}
${texeci 1800 cp -f ~/.conky-google-now/$(grep "yweather:condition" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*").png ~/.cache/weather.png}${image ~/.cache/weather.png -p 0,36 -s 80x80}
${voffset -16}${offset 97}${font Droid Sans:bold:size=8}${texeci 1800 grep "yweather:condition" ~/.cache/weather.xml | grep -o "text=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | tr '[a-z]' '[A-Z]'}${color}
${image ~/.conky-google-now/wind.png -p 96,69 -s 22x22}${goto 130}Wind: ${texeci 1800 grep "yweather:wind" ~/.cache/weather.xml | grep -o "speed=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${texeci 1800 grep "yweather:units" ~/.cache/weather.xml | grep -o "speed=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${voffset 2}
${image ~/.conky-google-now/humidity.png -p 96,98 -s 22x22}${goto 130}Humidity: ${texeci 1800 grep "yweather:atmosphere" ~/.cache/weather.xml | grep -o "humidity=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}%${font}${voffset 16}
${goto 20}${texeci 1800 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1' | tr '[a-z]' '[A-Z]'}${goto 80}${texeci 1800 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2' | tr '[a-z]' '[A-Z]'}${goto 140}${texeci 1800 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3' | tr '[a-z]' '[A-Z]'}${goto 210}${texeci 1800 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4' | tr '[a-z]' '[A-Z]'}${goto 280}${texeci 1800 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==5' | tr '[a-z]' '[A-Z]'}
${goto 20}${texeci 1800 cp -f ~/.conky-google-now/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1').png ~/.cache/weather-1.png}${image ~/.cache/weather-1.png -p 10,160 -s 42x42}${texeci 1800 cp -f ~/.conky-google-now/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2').png ~/.cache/weather-2.png}${image ~/.cache/weather-2.png -p 72,160 -s 42x42}${texeci 1800 cp -f ~/.conky-google-now/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3').png ~/.cache/weather-3.png}${image ~/.cache/weather-3.png -p 134,160 -s 42x42}${texeci 1800 cp -f ~/.conky-google-now/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4').png ~/.cache/weather-4.png}${image ~/.cache/weather-4.png -p 204,160 -s 42x42}${texeci 1800 cp -f ~/.conky-google-now/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==5').png ~/.cache/weather-5.png}${image ~/.cache/weather-5.png -p 272,160 -s 42x42}${voffset 20}
${goto 22}${texeci 1800 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}°${goto 82}${texeci 1800 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'}°${goto 142}${texeci 1800 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'}°${goto 212}${texeci 1800 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4'}°${goto 282}${texeci 1800 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==5'}°
${goto 22}${texeci 1800 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}°${goto 82}${texeci 1800 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'}°${goto 142}${texeci 1800 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'}°${goto 212}${texeci 1800 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4'}°${goto 282}${texeci 1800 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==5'}°${font}
${voffset 5}${color cornflower blue} ${font :Condensed:size=26}$alignc${time %H:%Mh}
${voffset -50}${font :bold:size=10}$alignc${time %A %d %b. %Y}${font}
${voffset -8}${color Tan2}SYSTEM ${color DarkSlateGray}${hr 2}
${voffset 6}${color white}${font :Condensed:size=10}${alignc}${texeci 7200 dmesg | grep 'DMI:' | sed -r 's|[^:]+DMI:\s*([^/]+)/.*|\1|'}${font}
$alignc $nodename $kernel
$alignc ${color lightgrey}UpTime: ${color white}$uptime ${alignr}${color lightgrey}
${voffset 10}${offset 10}${color lightgrey}CPU-1: ${color white}${cpu cpu1}% ${alignr}${color lightgrey}${cpubar cpu1 6,50} ${color lightgrey} ${color green}${texeci 8 sensors | grep 'Core 0' | cut -c17-23 | sed '/^$/d'}C ${color}
${offset 10}${color lightgrey}CPU-2: ${color white}${cpu cpu2}% ${alignr}${color lightgrey}${cpubar cpu2 6,50} ${color lightgrey} ${color green}${texeci 8 sensors | grep 'Core 1' | cut -c17-23}C ${color}
${offset 10}${color lightgrey}CPU-3: ${color white}${cpu cpu2}% ${alignr}${color lightgrey}${cpubar cpu3 6,50} ${color lightgrey} ${color green}${texeci 8 sensors | grep 'Core 2' | cut -c17-23}C ${color}
${offset 10}${color lightgrey}CPU-4: ${color white}${cpu cpu2}% ${alignr}${color lightgrey}${cpubar cpu4 6,50} ${color lightgrey} ${color green}${texeci 8 sensors | grep 'Core 3' | cut -c17-23}C ${color}
${voffset -8}${offset 10}${color lightgrey}Processes: ${color white}$processes ${alignr}${color lightgrey}Running: ${color }$running_processes
${offset 10}${color slate grey}Highest CPU:${alignr}PID CPU
${offset 10}${color light slate blue} ${top name 1}${alignr}${top pid 1} ${top cpu 1}
${offset 10}${color lightgrey} ${top name 2}${alignr}${top pid 2} ${top cpu 2}
${offset 10}${color lightgrey} ${top name 3}${alignr}${top pid 3} ${top cpu 3}
${voffset -5}${color Tan2}MEMORY ${color DarkSlateGray}${hr 2}
${offset 10}${color slate grey}MEM: ${color } $memperc% ${alignr}$mem / $memmax
${offset 10}${membar 4,310}
${offset 10}${color slate grey}SWAP: ${color }$swapperc% ${alignr}$swap / $swapmax
${offset 10}${swapbar 4,310}
${voffset 6}${offset 10}${color slate grey}Highest MEM:${alignr}PID MEM
${font LCDMono:size=8}${offset 10}${color light slate blue} ${top_mem name 1}${alignr}${top_mem pid 1} ${top_mem mem 1}
${offset 10}${color lightgrey} ${top_mem name 2}${alignr}${top_mem pid 2} ${top_mem mem 2}
${offset 10}${color lightgrey} ${top_mem name 3}${alignr}${top_mem pid 3} ${top_mem mem 3}${font}
${voffset -5}${color Tan2}STORAGE ${color DarkSlateGray}${hr 2}
${offset 10}${color slate grey}Root: ${color }${fs_used_perc /}%U ${alignr}${fs_free /} / ${fs_size /}
${offset 10}${fs_bar 3,310 /}
${offset 10}${color slate grey}Home: ${color }${fs_used_perc /home}%U ${alignr}${fs_free /home} / ${fs_size /home}
${offset 10}${fs_bar 3,310 /home}
${offset 10}${color slate grey}Extra: ${color }${fs_used_perc /mnt/extra}%U ${alignr}${fs_free /mnt/extra} / ${fs_size /mnt/extra}
${offset 10}${fs_bar 3,310 /mnt/extra}
${if_mounted /mnt/LinData}${offset 10}${color slate grey}LinData: ${color }${fs_used_perc /mnt/LinData}%U ${alignr}${fs_free /mnt/LinData} / ${fs_size /mnt/LinData}
${offset 10}${fs_bar 3,310 /mnt/LinData}${endif}
${voffset -5}${color Tan2}EMAIL ${color DarkSlateGray}${hr 2}${color}${color}
${offset 10}${font :Condensed:size=10}${texeci 300 cat /home/samtech/tb/default/unread-counts | tr ':' '\t' | awk '{print $1}' | awk '{sum += $1} END { print sum}'} unread emails${font}
${voffset -5}${color Tan2}BATTERY ${color DarkSlateGray}${hr 2}
${offset 10}${color}Power: ${battery_short} ${battery_bar 6,50 BAT0}$alignr${battery_time BAT0}
Offline
The little things make me happy, like getting Conky to check if both AUR and official packages are out of date without additional software:
~/Scripts/update-check.sh (make executable)
#!/bin/sh
# Check Official Packages
checkupdates > /tmp/off.updates
# Check AUR Packages
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
~/.conkyrc
TEXT
${execi 14400 ~/Scripts/update-check.sh} Updates: ${execp cat /tmp/off.updates | wc -l} Off ${execp cat /tmp/aur.updates | wc -l} AUR
@jasonwryan - Thanks, I didn't know that!
Last edited by grandtheftjiujitsu (2015-01-10 06:46:11)
Offline
Or just use checkupdates (for official packages)...
Offline
Offline
A Improved version:
http://s30.postimg.org/pwkjx1bel/desktop.jpg
.conkyrclbackground no use_xft yes xftfont 123:size=8 xftalpha 0.1 update_interval 1 total_run_times 0 own_window yes own_window_type normal own_window_transparent yes own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager double_buffer yes maximum_width 400 draw_shades no draw_outline no draw_borders no draw_graph_borders yes default_color white default_shade_color red default_outline_color green alignment top_left no_buffers yes uppercase no cpu_avg_samples 2 net_avg_samples 2 override_utf8_locale yes use_spacer none TEXT ${alignc 32}${font xirod:size=11}${color}arch${color green} linux$color$font ${alignc}${font font:Bold:size=8}${execi 30 users | cut -c1-5}@$nodename$font ${alignc}${font font:Bold:size=8}defconctugt@$nodename$font # SYS ${font xirod:Bold:size=10}${color green}SYSTEM${hr 2}$color${font} System Uptime $alignr $uptime User(s) $alignr$user_names Active Consoles$alignr$user_terms $sysname $kernel $alignr $machine MB Temperature $alignr ${execi 30 sensors | grep 'temp1:' | cut -c17-18} AC Status $alignr$acpiacadapter ${battery BAT1} Battery Temp $alignr$acpitemp°C System ${exec sensors | grep temp3} # CPU ${font xirod:Bold:size=10}${color green}CPU${hr 2}$font $color${font}Intel i7 4810MQ $alignr ${freq_g cpu0}GHz - - - - - - - - - - - - -- - - - - - - - - - - - - - - - - - - ${font}Core 0 ${color green}${execi 30 sensors | grep 'Core 0:' | cut -c18-19}°C${color} @ ${cpu cpu1} % $alignc ${color green}${cpubar cpu1}${color} ${font}Core 1 ${color green}${execi 30 sensors | grep 'Core 1:' | cut -c18-19}°C${color} @ ${cpu cpu2} % $alignc ${color green}${cpubar cpu2}${color} ${font}Core 2 ${color green}${execi 30 sensors | grep 'Core 2:' | cut -c18-19}°C${color} @ ${cpu cpu3} % $alignc ${color green}${cpubar cpu3}${color} ${font}Core 3 ${color green}${execi 30 sensors | grep 'Core 3:' | cut -c18-19}°C${color} @ ${cpu cpu4} % $alignc ${color green}${cpubar cpu4}${color} Core 0${alignr}Core1 ${cpugraph cpu1 17,110 000000 BF0A0D} ${alignr}${cpugraph cpu2 17,110 000000 BF0A0D} Core 2${alignr}Core 3 ${cpugraph cpu3 17,110 000000 BF0A0D} ${alignr}${cpugraph cpu4 17,110 000000 BF0A0D} # LOAD ${font xirod:Bold:size=10}${color green}LOAD${hr 2}$font${color} ${font font:bold:size=8.5}*** CPU ******** ${running_processes} / $processes $alignr (%) PID $alignr CPU $alignr MEM$font ${font font:bold:size=8.5}${color red}${top name 1}${alignr}${top pid 1}${top cpu 1} ${top mem 1}${color}$font ${color orange}${top name 2}${alignr}${top pid 2}${top cpu 2} ${top mem 2}${color} ${color yellow}${top name 3}${alignr}${top pid 3}${top cpu 3} ${top mem 3}${color} ${top name 4}${alignr}${top pid 4}${top cpu 4} ${top mem 4} ${top name 5}${alignr}${top pid 5}${top cpu 5} ${top mem 5} ${font font:bold:size=8.5}*** MEM ******** $alignr (%) PID $alignr MEM $alignr CPU$font ${font font:bold:size=8.5}${color red}${top_mem name 1}${alignr}${top_mem pid 1}${alignr}${top_mem mem 1} ${top_mem cpu 1}$font ${color orange}${top_mem name 2}${alignr}${top_mem pid 2}${alignr}${top_mem mem 2} ${top_mem cpu 2}$color ${color yellow}${top_mem name 3}${alignr}${top_mem pid 3}${alignr}${top_mem mem 3} ${top_mem cpu 3}$color ${color white}${top_mem name 4}${alignr}${top_mem pid 4}${alignr}${top_mem mem 4} ${top_mem cpu 4}$color ${top_mem name 5}${alignr}${top_mem pid 5}${alignr}${top_mem mem 5} ${top_mem cpu 5} # MEMORY ${font xirod:Bold:size=10}${color green}MEMORY${hr 2}$color$font ${font Open Sans:bold:size=8.5}RAM$font $mem / $memmax $alignr $memperc % $membar ${font Open Sans:bold:size=8.5}SWAP$font $swap / $swapmax $alignr $swapperc ${swapbar}; # HDD ${font xirod:Bold:size=10}${color green}Disks${hr 2}$font$color ${font font:bold:size=8.5}/dev/sda Read:$diskio_read Write:$diskio_write $alignr ${execi 30 sudo hddtemp /dev/sda | grep '/dev/sda:' | cut -c28-29}°C ${font font:bold:size=8.5}ROOT $font$font$alignr ${fs_type /}$font ${fs_used /} / ${fs_size /} $alignr ${fs_used_perc /} % ${fs_bar /}
.conkyrcr
background no use_xft yes xftfont 123:size=8 xftalpha 0.1 update_interval 1 total_run_times 0 own_window yes own_window_type normal own_window_transparent yes own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager double_buffer yes maximum_width 400 draw_shades no draw_outline no draw_borders no draw_graph_borders yes default_color white default_shade_color red default_outline_color green alignment top_right gap_x 24 no_buffers yes uppercase no cpu_avg_samples 2 net_avg_samples 2 override_utf8_locale yes use_spacer none TEXT # NETWORK ${font xirod:Bold:size=10}${color green}Network${hr 2}$font ${font font:Bold:size=8}${color green}NETWORK (GENERAL)${color green} ${stippled_hr}$color$font Active Interface ${alignr}$gw_iface Public IP${alignr}${execi 3600 wget -O - [url]http://ip.tupeux.com[/url] | tail} Gateway IP ${alignr}$gw_ip DNS ${alignr}$nameserver TOR Status ${alignr}${if_running tor} Active${else}Disabled${endif} Firewall ${alignr}${exec ufw status} Packets $alignr In:${tcp_portmon 1 32767 count} Out: ${tcp_portmon 32768 61000 count} ${font font:Bold:size=8}$alignc${color green}NETWORK (WIRED) ${color green} ${stippled_hr}$color$font ${font font:Bold:size=8}eth0 $alignr ${addr eth0}$font Down: ${color green}${downspeed eth0}k/s ${color}(${totaldown eth0})${alignr}Up: ${color green}${upspeed eth0}k/s $color(${totalup eth0}) ${downspeedgraph eth0 17,110 000000 ff0000} ${alignr}${upspeedgraph eth0 17,110 000000 00ff00}$color ${font font:Bold:size=8}$alignc${color green}NETWORK (WIRELESS) ${color green} ${stippled_hr}$font$color ${font font:Bold:size=8}wlan0 $font$alignr ${addr wlan0}$font SSID${font DroidSans:size=8.3}${alignr}${wireless_essid wlan0}${font} Down: ${color green}${downspeed wlan0}k/s ${color}(${totaldown eth1})${alignr}Up: ${color green}${upspeed wlan0}k/s $color(${totalup eth1}) ${downspeedgraph wlan0 17,110 000000 ff0000} ${alignr}${upspeedgraph wlan0 17,110 000000 00ff00} $alignr${color green}Link quality:${color green}${wireless_link_bar 10,180 eth1}$color # TCP & UDP ${font xirod:Bold:size=8}${color green}CONNECTIONS ${stippled_hr}$font$color ${font font:Bold:size=8}Inbound Connections: ${tcp_portmon 1 32767 count} ${alignr} Local Service / Port$font ${tcp_portmon 1 32767 rhost 0} ${alignr} $font${color MintCream}${tcp_portmon 1 32767 lservice 0} ${tcp_portmon 1 32767 rhost 1} ${alignr} $font${color MintCream}${tcp_portmon 1 32767 lservice 1} ${tcp_portmon 1 32767 rhost 2} ${alignr} $font${color MintCream}${tcp_portmon 1 32767 lservice 2} ${tcp_portmon 1 32767 rhost 3} ${alignr} $font${color MintCream}${tcp_portmon 1 32767 lservice 3} ${tcp_portmon 1 32767 rhost 4} ${alignr} $font${color MintCream}${tcp_portmon 1 32767 lservice 4} ${font font:Bold:size=8}Outbound Connections: ${tcp_portmon 32768 61000 count} ${alignr} Remote Service / Port$font ${tcp_portmon 32768 61000 rhost 0} ${alignr} ${tcp_portmon 32768 61000 rservice 0} ${tcp_portmon 32768 61000 rhost 1} ${alignr} ${tcp_portmon 32768 61000 rservice 1} ${tcp_portmon 32768 61000 rhost 2} ${alignr} ${tcp_portmon 32768 61000 rservice 2} ${tcp_portmon 32768 61000 rhost 3} ${alignr} ${tcp_portmon 32768 61000 rservice 3} ${tcp_portmon 32768 61000 rhost 4} ${alignr} ${tcp_portmon 32768 61000 rservice 4} ${tcp_portmon 32768 61000 rhost 5} ${alignr} ${tcp_portmon 32768 61000 rservice 5} ${tcp_portmon 32768 61000 rhost 6} ${alignr} ${tcp_portmon 32768 61000 rservice 6} ${tcp_portmon 32768 61000 rhost 7} ${alignr} ${tcp_portmon 32768 61000 rservice 7} ${tcp_portmon 32768 61000 rhost 8} ${alignr} ${tcp_portmon 32768 61000 rservice 8} ${tcp_portmon 32768 61000 rhost 9} ${alignr} ${tcp_portmon 32768 61000 rservice 9} ${tcp_portmon 32768 61000 rhost 10} ${alignr} ${tcp_portmon 32768 61000 rservice 10} ${tcp_portmon 32768 61000 rhost 11} ${alignr} ${tcp_portmon 32768 61000 rservice 11} ${tcp_portmon 32768 61000 rhost 12} ${alignr} ${tcp_portmon 32768 61000 rservice 12} ${tcp_portmon 32768 61000 rhost 13} ${alignr} ${tcp_portmon 32768 61000 rservice 13} ${tcp_portmon 32768 61000 rhost 14} ${alignr} ${tcp_portmon 32768 61000 rservice 14} ${tcp_portmon 32768 61000 rhost 15} ${alignr} ${tcp_portmon 32768 61000 rservice 15} ${tcp_portmon 32768 61000 rhost 16} ${alignr} ${tcp_portmon 32768 61000 rservice 16} ${tcp_portmon 32768 61000 rhost 17} ${alignr} ${tcp_portmon 32768 61000 rservice 17} ${tcp_portmon 32768 61000 rhost 18} ${alignr} ${tcp_portmon 32768 61000 rservice 18} ${tcp_portmon 32768 61000 rhost 19} ${alignr} ${tcp_portmon 32768 61000 rservice 19} ${color orange}${font xirod:size=8}FIREWALL LOG ${hr 2}$color$font ${execi 30 tail -n3 /var/log/gufw_log.txt | fold -w50} $stippled_hr ${color orange}${font xirod:size=8}SYSTEM LOG $stippled_hr$color$font ${execi 30 tail -n3 /var/log/messages | fold -w50}
Sorry for quoting all of your conky config but i would like to ask for one thing. I have my conky setup, that i used for all the time but i recently changed few things, added few lines more and now it just won't fit the screen. It is too long. I was trying to find how to fix it, change it or how to do it and i saw your conky setup that was something like a quide for me because you have something similar that i wanted to do. I just wanted to cut in half my conky and place it over the screen - you did that with your conky.
So, here is the question. How did you run these 2 conky setup (i assume that left and right side, because of naming, are two independant conky setups that are run togheter)? One is named .conkyrcl, the other is .conkyrcr (conky left and conky right that's why there is l and r on the end of name). Now i wan't to start them with my system. Will there start without doing something more when i put them in ~ and leve them as .conkyrcl and .conkyrcr or do they have to have different names and something more?
Could you help me?
This is my oryginal setup of conky that won't fit the screen, it is too long
#brok9n_conky
background no
use_xft yes
xftfont 123:size=8
xftalpha 0.1
update_interval 1
total_run_times 0
own_window yes
own_window_argb_visual yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
maximum_width 400
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color lightgray
default_shade_color red
default_outline_color green
alignment top_right
gap_x 24
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer none
TEXT
${alignc 32}${font Open Sans:size=20}${color black}arch${color dodgerblue3} linux$font$color
${alignc}${font Open Sans:size=10}${color red}${execi 30 users | cut -c1-5}@$nodename
${color red}${font Open Sans:size=20}$alignr${time %H:%M}$color$font
${color dodgerblue3}${font Open Sans:Bold:size=10}Date${hr 2}$color$font
${color red}${font Open Sans:size=12}$alignr${time %a}, ${time %d %b %Y}$font$color
# Spotify
#${font Open Sans:Bold:size=10}${color dodgerblue3}Spotify${hr 2}
#${color}${font}${alignr}Manic Bloom - A Thousand Angels
# SYS
${font Open Sans:Bold:size=10}${color dodgerblue3}SYSTEM${hr 2}$color${font}
$sysname $kernel $alignr $machine
Uptime $alignr $uptime
MB Temperature $alignr ${execi 30 sensors | grep 'SYSTIN:' | cut -c17-18}°C
GPU Temperature $alignr ${execi 30 sensors | grep 'temp1:' | cut -c16-17}°C
# CPU
${font Open Sans:Bold:size=10}${color dodgerblue3}CPU${hr 2}
$color${font}Intwel_I5_4670K_HASWELL $alignr ${freq_g cpu0}GHz
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
${font}Core 0 ${color dodgerblue3}${execi 30 sensors | grep 'Core 0:' | cut -c18-19}°C${color} @ ${cpu cpu1} % $alignc ${color dodgerblue3}${cpubar cpu1}${color}
${font}Core 1 ${color dodgerblue3}${execi 30 sensors | grep 'Core 1:' | cut -c18-19}°C${color} @ ${cpu cpu2} % $alignc ${color dodgerblue3}${cpubar cpu2}${color}
${font}Core 2 ${color dodgerblue3}${execi 30 sensors | grep 'Core 2:' | cut -c18-19}°C${color} @ ${cpu cpu3} % $alignc ${color dodgerblue3}${cpubar cpu3}${color}
${font}Core 3 ${color dodgerblue3}${execi 30 sensors | grep 'Core 3:' | cut -c18-19}°C${color} @ ${cpu cpu4} % $alignc ${color dodgerblue3}${cpubar cpu4}${color}
# TOP
${font Open Sans:Bold:size=10}${color dodgerblue3}TOP${hr 2}
$color${font}${font Open Sans:bold:size=8.5}PROCESS $alignr CPU USAGE$font
${top name 1}${alignr}${top cpu 1} %
${top name 2}${alignr}${top cpu 2} %
${top name 3}${alignr}${top cpu 3} %
${top name 4}${alignr}${top cpu 4} %
${top name 5}${alignr}${top cpu 5} %
# MEMORY
${font Open Sans:Bold:size=10}${color dodgerblue3}MEMORY${hr 2}
$color${font}${font Open Sans:bold:size=8.5}RAM$font
$mem / $memmax $alignr $memperc %
$membar
${font Open Sans:bold:size=8.5}SWAP$font
$swap / $swapmax $alignr $swapperc
${swapbar};
# NETWORK
${font Open Sans:Bold:size=10}${color dodgerblue3}Network${hr 2}
$color${font Open Sans:bold:size=8.5}External IP ${font}${alignr}${execi 3600 wget -O - http://ip.tupeux.com | tail}$font
${font Open Sans:bold:size=8.5}eth0 $font$alignr ${addr enp4s6}
down $alignr ${downspeedf enp4s6} kb/s
up $alignr ${upspeedf enp4s6} kb/s
down total ${totaldown enp4s6} $alignr up total ${totalup enp4s6}
#${font Open Sans:bold:size=8.5}eth1 $font$alignr ${addr eth1}
#down $alignr ${downspeedf eth1} kb/s
#up $alignr ${upspeedf eth1} kb/s
#down total ${totaldown eth1} $alignr up total ${totalup eth1}
# HDD
${font Open Sans:Bold:size=10}${color dodgerblue3}Disks${hr 2}
$color${font Open Sans:bold:size=8.5}/dev/sda $font$alignr ${execi 30 sudo hddtemp /dev/sda | grep '/dev/sda:' | cut -c28-29}°C
${font Open Sans:bold:size=8.5}ROOT $font$font$alignr ${fs_type /}
${fs_used /} / ${fs_size /} $alignr ${fs_used_perc /} %
${fs_bar /}
${font Open Sans:bold:size=8.5}VAR $font$font$alignr ${fs_type /var}
${fs_used /var} / ${fs_size /var} $alignr ${fs_used_perc /var} %
${fs_bar /}
${font Open Sans:bold:size=8.5}HOME $font$alignr ${fs_type /home}
${fs_used /home} / ${fs_size /home} $alignr ${fs_used_perc /home} %
${fs_bar /home}
${font Open Sans:bold:size=8.5}0340GB $font$alignr ${fs_type /mnt/hd/0340GB/}
${fs_used /mnt/hd/0340GB/} / ${fs_size /mnt/hd/0340GB/} $alignr ${fs_used_perc /mnt/hd/0340GB/} %
${fs_bar /mnt/hd/0340GB/}
${font Open Sans:bold:size=8.5}0800B $font$alignr ${fs_type /mnt/hd/0800GB/}
${fs_used /mnt/hd/0800GB/} / ${fs_size /mnt/hd/0800GB/} $alignr ${fs_used_perc /mnt/hd/0800GB/} %
${fs_bar /mnt/hd/0800GB/}
${font Open Sans:bold:size=8.5}TC1 $font$alignr ${fs_type /mnt/tc/tc1_0640GB_1_WMASY4698194/}
${fs_used /mnt/tc/tc1_0640GB_1_WMASY4698194/} / ${fs_size /mnt/tc/tc1_0640GB_1_WMASY4698194/} $alignr ${fs_used_perc /mnt/tc/tc1_0640GB_1_WMASY4698194/} %
${fs_bar /mnt/tc/tc1_0640GB_1_WMASY4698194/}
${font Open Sans:bold:size=8.5}TC2 $font$alignr ${fs_type /mnt/tc/tc2_0640GB_2_WMASY4705185/}
${fs_used /mnt/tc/tc2_0640GB_2_WMASY4705185/} / ${fs_size /mnt/tc/tc2_0640GB_2_WMASY4705185/} $alignr ${fs_used_perc /mnt/tc/tc2_0640GB_2_WMASY4705185/} %
${fs_bar /mnt/tc/tc2_0640GB_2_WMASY4705185/}
${font Open Sans:bold:size=8.5}TC3 $font$alignr ${fs_type /mnt/tc/tc3_2000GB_1_Z1E6H7Q4/}
${fs_used /mnt/tc/tc3_2000GB_1_Z1E6H7Q4/} / ${fs_size /mnt/tc/tc3_2000GB_1_Z1E6H7Q4/} $alignr ${fs_used_perc /mnt/tc/tc3_2000GB_1_Z1E6H7Q4/} %
${fs_bar /mnt/tc/tc3_2000GB_1_Z1E6H7Q4/}
${font Open Sans:bold:size=8.5}TC4 $font$alignr ${fs_type /mnt/tc/tc4_2000GB_2_W1E1WBW0/}
${fs_used /mnt/tc/tc4_2000GB_2_W1E1WBW0/} / ${fs_size /mnt/tc/tc4_2000GB_2_W1E1WBW0/} $alignr ${fs_used_perc /mnt/tc/tc4_2000GB_2_W1E1WBW0/} %
${fs_bar /mnt/tc/tc4_2000GB_2_W1E1WBW0/}
${font Open Sans:bold:size=8.5}TC5 $font$alignr ${fs_type /mnt/tc/tc5_3000GB_1_WCC4N4K44PDK/}
${fs_used /mnt/tc/tc5_3000GB_1_WCC4N4K44PDK/} / ${fs_size /mnt/tc/tc5_3000GB_1_WCC4N4K44PDK/} $alignr ${fs_used_perc /mnt/tc/tc5_3000GB_1_WCC4N4K44PDK/} %
${fs_bar /mnt/tc/tc5_3000GB_1_WCC4N4K44PDK/}
#${font Open Sans:bold:size=8.5}TC6 $font$alignr ${fs_type /mnt/tc/tc6_3000GB_2_WCC4NEKJ1RDK/}
#${fs_used /mnt/tc/tc6_3000GB_2_WCC4NEKJ1RDK/} / ${fs_size /mnt/tc/tc6_3000GB_2_WCC4NEKJ1RDK/} $alignr ${fs_used_perc /mnt/tc/tc6_3000GB_2_WCC4NEKJ1RDK/} %
#${fs_bar /mnt/tc/tc6_3000GB_2_WCC4NEKJ1RDK/}
${exec feh --bg-scale "$(sed -n 's/wallpaper=//p' ~/.kde4/share/config/plasma-desktop-appletsrc)"}
#${font Open Sans:Bold:size=10}${color dodgerblue3}Disks${hr 2}
#${voffset 1}${color7}${font}${font Dejavu Sans:bold:size=10}${alignr} Free Used Size % Free
#${voffset 6}${font Pie charts for maps:size=14}7${font}${color1} ${voffset -5}Root:${alignr}$color ${fs_free /}${color lightgrey} ${fs_used /} /$color ${fs_size /} - ${fs_free_perc /}%
#${voffset 6}${fs_bar 12 /}
#${voffset 6}${font Pie charts for maps:size=14}7${font}${color1} ${voffset -5}Home:${alignr}$color ${fs_free /home}${color lightgrey} ${fs_used /home}/$color ${fs_size /home} - ${fs_free_perc /home}%
#${voffset 6}${fs_bar 12 /home}
I just won't to cut it in half, so i made:
#brok9n_conky
background no
use_xft yes
xftfont 123:size=8
xftalpha 0.1
update_interval 1
total_run_times 0
own_window yes
own_window_argb_visual yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
maximum_width 400
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color lightgray
default_shade_color red
default_outline_color green
alignment top_center
gap_x 24
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer none
TEXT
${alignc 32}${font Open Sans:size=20}${color black}arch${color dodgerblue3} linux$font$color
${alignc}${font Open Sans:size=10}${color red}${execi 30 users | cut -c1-5}@$nodename
${color red}${font Open Sans:size=20}$alignr${time %H:%M}$color$font
${color dodgerblue3}${font Open Sans:Bold:size=10}Date${hr 2}$color$font
${color red}${font Open Sans:size=12}$alignr${time %a}, ${time %d %b %Y}$font$color
# Spotify
#${font Open Sans:Bold:size=10}${color dodgerblue3}Spotify${hr 2}
#${color}${font}${alignr}Manic Bloom - A Thousand Angels
# SYS
${font Open Sans:Bold:size=10}${color dodgerblue3}SYSTEM${hr 2}$color${font}
$sysname $kernel $alignr $machine
Uptime $alignr $uptime
MB Temperature $alignr ${execi 30 sensors | grep 'SYSTIN:' | cut -c17-18}°C
GPU Temperature $alignr ${execi 30 sensors | grep 'temp1:' | cut -c16-17}°C
# CPU
${font Open Sans:Bold:size=10}${color dodgerblue3}CPU${hr 2}
$color${font}Intwel_I5_4670K_HASWELL $alignr ${freq_g cpu0}GHz
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
${font}Core 0 ${color dodgerblue3}${execi 30 sensors | grep 'Core 0:' | cut -c18-19}°C${color} @ ${cpu cpu1} % $alignc ${color dodgerblue3}${cpubar cpu1}${color}
${font}Core 1 ${color dodgerblue3}${execi 30 sensors | grep 'Core 1:' | cut -c18-19}°C${color} @ ${cpu cpu2} % $alignc ${color dodgerblue3}${cpubar cpu2}${color}
${font}Core 2 ${color dodgerblue3}${execi 30 sensors | grep 'Core 2:' | cut -c18-19}°C${color} @ ${cpu cpu3} % $alignc ${color dodgerblue3}${cpubar cpu3}${color}
${font}Core 3 ${color dodgerblue3}${execi 30 sensors | grep 'Core 3:' | cut -c18-19}°C${color} @ ${cpu cpu4} % $alignc ${color dodgerblue3}${cpubar cpu4}${color}
# TOP
${font Open Sans:Bold:size=10}${color dodgerblue3}TOP${hr 2}
$color${font}${font Open Sans:bold:size=8.5}PROCESS $alignr CPU USAGE$font
${top name 1}${alignr}${top cpu 1} %
${top name 2}${alignr}${top cpu 2} %
${top name 3}${alignr}${top cpu 3} %
${top name 4}${alignr}${top cpu 4} %
${top name 5}${alignr}${top cpu 5} %
# MEMORY
${font Open Sans:Bold:size=10}${color dodgerblue3}MEMORY${hr 2}
$color${font}${font Open Sans:bold:size=8.5}RAM$font
$mem / $memmax $alignr $memperc %
$membar
${font Open Sans:bold:size=8.5}SWAP$font
$swap / $swapmax $alignr $swapperc
${swapbar};
# NETWORK
${font Open Sans:Bold:size=10}${color dodgerblue3}Network${hr 2}
$color${font Open Sans:bold:size=8.5}External IP ${font}${alignr}${execi 3600 wget -O - http://ip.tupeux.com | tail}$font
${font Open Sans:bold:size=8.5}eth0 $font$alignr ${addr enp4s6}
down $alignr ${downspeedf enp4s6} kb/s
up $alignr ${upspeedf enp4s6} kb/s
down total ${totaldown enp4s6} $alignr up total ${totalup enp4s6}
#${font Open Sans:bold:size=8.5}eth1 $font$alignr ${addr eth1}
#down $alignr ${downspeedf eth1} kb/s
#up $alignr ${upspeedf eth1} kb/s
#down total ${totaldown eth1} $alignr up total ${totalup eth1}
and the other is
#brok9n_conky
background no
use_xft yes
xftfont 123:size=8
xftalpha 0.1
update_interval 1
total_run_times 0
own_window yes
own_window_argb_visual yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
maximum_width 400
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color lightgray
default_shade_color red
default_outline_color green
alignment top_right
gap_x 24
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer none
# HDD
${font Open Sans:Bold:size=10}${color dodgerblue3}Disks${hr 2}
$color${font Open Sans:bold:size=8.5}/dev/sda $font$alignr ${execi 30 sudo hddtemp /dev/sda | grep '/dev/sda:' | cut -c28-29}°C
${font Open Sans:bold:size=8.5}ROOT $font$font$alignr ${fs_type /}
${fs_used /} / ${fs_size /} $alignr ${fs_used_perc /} %
${fs_bar /}
${font Open Sans:bold:size=8.5}VAR $font$font$alignr ${fs_type /var}
${fs_used /var} / ${fs_size /var} $alignr ${fs_used_perc /var} %
${fs_bar /}
${font Open Sans:bold:size=8.5}HOME $font$alignr ${fs_type /home}
${fs_used /home} / ${fs_size /home} $alignr ${fs_used_perc /home} %
${fs_bar /home}
${font Open Sans:bold:size=8.5}0340GB $font$alignr ${fs_type /mnt/hd/0340GB/}
${fs_used /mnt/hd/0340GB/} / ${fs_size /mnt/hd/0340GB/} $alignr ${fs_used_perc /mnt/hd/0340GB/} %
${fs_bar /mnt/hd/0340GB/}
${font Open Sans:bold:size=8.5}0800B $font$alignr ${fs_type /mnt/hd/0800GB/}
${fs_used /mnt/hd/0800GB/} / ${fs_size /mnt/hd/0800GB/} $alignr ${fs_used_perc /mnt/hd/0800GB/} %
${fs_bar /mnt/hd/0800GB/}
${font Open Sans:bold:size=8.5}TC1 $font$alignr ${fs_type /mnt/tc/tc1_0640GB_1_WMASY4698194/}
${fs_used /mnt/tc/tc1_0640GB_1_WMASY4698194/} / ${fs_size /mnt/tc/tc1_0640GB_1_WMASY4698194/} $alignr ${fs_used_perc /mnt/tc/tc1_0640GB_1_WMASY4698194/} %
${fs_bar /mnt/tc/tc1_0640GB_1_WMASY4698194/}
${font Open Sans:bold:size=8.5}TC2 $font$alignr ${fs_type /mnt/tc/tc2_0640GB_2_WMASY4705185/}
${fs_used /mnt/tc/tc2_0640GB_2_WMASY4705185/} / ${fs_size /mnt/tc/tc2_0640GB_2_WMASY4705185/} $alignr ${fs_used_perc /mnt/tc/tc2_0640GB_2_WMASY4705185/} %
${fs_bar /mnt/tc/tc2_0640GB_2_WMASY4705185/}
${font Open Sans:bold:size=8.5}TC3 $font$alignr ${fs_type /mnt/tc/tc3_2000GB_1_Z1E6H7Q4/}
${fs_used /mnt/tc/tc3_2000GB_1_Z1E6H7Q4/} / ${fs_size /mnt/tc/tc3_2000GB_1_Z1E6H7Q4/} $alignr ${fs_used_perc /mnt/tc/tc3_2000GB_1_Z1E6H7Q4/} %
${fs_bar /mnt/tc/tc3_2000GB_1_Z1E6H7Q4/}
${font Open Sans:bold:size=8.5}TC4 $font$alignr ${fs_type /mnt/tc/tc4_2000GB_2_W1E1WBW0/}
${fs_used /mnt/tc/tc4_2000GB_2_W1E1WBW0/} / ${fs_size /mnt/tc/tc4_2000GB_2_W1E1WBW0/} $alignr ${fs_used_perc /mnt/tc/tc4_2000GB_2_W1E1WBW0/} %
${fs_bar /mnt/tc/tc4_2000GB_2_W1E1WBW0/}
${font Open Sans:bold:size=8.5}TC5 $font$alignr ${fs_type /mnt/tc/tc5_3000GB_1_WCC4N4K44PDK/}
${fs_used /mnt/tc/tc5_3000GB_1_WCC4N4K44PDK/} / ${fs_size /mnt/tc/tc5_3000GB_1_WCC4N4K44PDK/} $alignr ${fs_used_perc /mnt/tc/tc5_3000GB_1_WCC4N4K44PDK/} %
${fs_bar /mnt/tc/tc5_3000GB_1_WCC4N4K44PDK/}
#${font Open Sans:bold:size=8.5}TC6 $font$alignr ${fs_type /mnt/tc/tc6_3000GB_2_WCC4NEKJ1RDK/}
#${fs_used /mnt/tc/tc6_3000GB_2_WCC4NEKJ1RDK/} / ${fs_size /mnt/tc/tc6_3000GB_2_WCC4NEKJ1RDK/} $alignr ${fs_used_perc /mnt/tc/tc6_3000GB_2_WCC4NEKJ1RDK/} %
#${fs_bar /mnt/tc/tc6_3000GB_2_WCC4NEKJ1RDK/}
${exec feh --bg-scale "$(sed -n 's/wallpaper=//p' ~/.kde4/share/config/plasma-desktop-appletsrc)"}
#${font Open Sans:Bold:size=10}${color dodgerblue3}Disks${hr 2}
#${voffset 1}${color7}${font}${font Dejavu Sans:bold:size=10}${alignr} Free Used Size % Free
#${voffset 6}${font Pie charts for maps:size=14}7${font}${color1} ${voffset -5}Root:${alignr}$color ${fs_free /}${color lightgrey} ${fs_used /} /$color ${fs_size /} - ${fs_free_perc /}%
#${voffset 6}${fs_bar 12 /}
#${voffset 6}${font Pie charts for maps:size=14}7${font}${color1} ${voffset -5}Home:${alignr}$color ${fs_free /home}${color lightgrey} ${fs_used /home}/$color ${fs_size /home} - ${fs_free_perc /home}%
#${voffset 6}${fs_bar 12 /home}
So, as i said earlier: the question is how to run these two at the same time. I'm not an epxert also with placing them on the screen, i only know how to name to put in on the left/right, not in their own neighboorhood, or how it is named in english (one ant the second near itselves).
One thing more: conky config file is named .conkyrc. Will it start with namings like: .conkyrcl .conkyrcr?
Unfortunately, it just won't work correctly. Second part with disks won't run at all. First part with cpu is launched but not on top center, but on right...and without colors and so on. Strange.
Here is the one before editing it, it's just too long and my disks wont fit
http://imgur.com/3y4kIAK
Last edited by firekage (2015-01-21 12:50:20)
Offline
Saw these clocks for Android on the playstore, seemed a good thing to do.
min_clock.lua
--[[
minimal clock for conky
based upon similar android clock widget
written by easysid
Tuesday, 03 February 2015 16:20 IST
]]--
require 'cairo'
clock_table = {
-- clock style options
use12hourformat = true, -- 12 hr format. Set to false for 24 hrs
showday = true, -- show the day of the week
draw_background = true, -- set to false if you do not want a bg fill
draw_seconds = true, -- draw the seconds ring
-- options if above is true
seconds_ring_width = 4, -- seconds ring width
seconds_ring_base_color = {0x909090, 0.8}, -- base color
seconds_ring_fill_color = {0xFFFFFF, 0.8},-- fill color
--
-- main settings
--
xc = 170, -- centre of the clock
yc = 170,
R = 120, -- outer radius
r = 25, -- minute ring radius
border_width = 2,
-- color settings. {color, alpha}
background_color = {0xFFFFFF, 0.5}, -- bgcolor id draw_background is true.
fill_color = {0xb5145c, 1}, -- fill color for minutes ring
border_color = {0xFFFFFF, 1}, -- border color
text_color = {0xFFFFFF, 1}, -- color of numbers
-- font settings
-- specify the font as font:face, where face is bold, italic, bolditalic
hour_font = "lato", -- font face for hours
min_font = "lato", -- font face for minutes
day_font = "lato", -- font face for day and time period
hour_font_size = 100, -- font size for hours
min_font_size = 18, -- font size for minutes
day_font_size = 24, -- font size for day and period
}
function conky_main()
if conky_window == nil then return end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
cr = cairo_create(cs)
draw_clock(cr, clock_table)
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
end -- end main function
function draw_clock(cr, t)
-- The primary function to draw the clock
local divs = 60
local hour = tonumber(os.date("%H"))
local minutes = tonumber(os.date("%M"))
local m_theta = minutes*2*math.pi/divs - math.pi/2 -- calculate the angle
local xm = t.xc + t.R*math.cos(m_theta)
local ym = t.yc + t.R*math.sin(m_theta)
-- get font and font face
local dfont, dface = splitfont(t.day_font)
local mfont, mface = splitfont(t.min_font)
--print(mfont,mface)
-- calculate text extents
if t.use12hourformat or t.showday then
hy = getheight(hour,t.hour_font, 'normal', t.hour_font_size)
end
-- draw the outer ring
if t.draw_background then
cairo_set_source_rgba(cr, rgba_to_r_g_b_a(t.background_color))
cairo_arc(cr, t.xc, t.yc, t.R, 0, 2*math.pi)
cairo_fill(cr)
end
if t.draw_seconds then
local seconds = tonumber(os.date("%S"))
local s_theta = seconds*2*math.pi/divs - math.pi/2 -- calculate the angle
cairo_set_line_width(cr, t.seconds_ring_width)
cairo_set_source_rgba(cr, rgba_to_r_g_b_a(t.seconds_ring_base_color))
-- draw the base ring
cairo_arc(cr, t.xc, t.yc, t.R, 0, 2*math.pi)
cairo_stroke(cr)
-- draw the seconds indicator circle
cairo_set_source_rgba(cr, rgba_to_r_g_b_a(t.seconds_ring_fill_color))
cairo_arc(cr, t.xc, t.yc, t.R, -math.pi/2, s_theta)
cairo_stroke(cr)
else
cairo_set_line_width(cr, t.border_width)
cairo_set_source_rgba(cr, rgba_to_r_g_b_a(t.border_color))
cairo_arc(cr, t.xc, t.yc, t.R, 0, 2*math.pi)
cairo_stroke(cr)
end
-- draw the minutes ring
cairo_set_line_width(cr, t.border_width)
cairo_set_source_rgba(cr, rgba_to_r_g_b_a(t.fill_color))
cairo_arc(cr, xm, ym, t.r, 0, 2*math.pi)
cairo_fill(cr)
cairo_set_source_rgba(cr, rgba_to_r_g_b_a(t.border_color))
cairo_arc(cr, xm, ym, t.r, 0, 2*math.pi)
cairo_stroke(cr)
--
-- text drawing
--
-- check the time format
if t.use12hourformat then
hour = tonumber(os.date("%l"))
local ampm = os.date("%p")
out({x=t.xc,y=t.yc+hy,f=dfont,face=dface,fs=t.day_font_size,txt=ampm,hj='c',vj='n'})
end
if t.showday then
local day = os.date("%a")
out({x=t.xc,y=t.yc-hy,f=dfont,face=dface,fs=t.day_font_size,txt=day,hj='c',vj='t'})
end
out({x=t.xc,y=t.yc,f=t.hour_font,fs=t.hour_font_size,txt=hour,hj='c',vj='m'})
out({x=xm,y=ym,f=mfont,face=mface,fs=t.min_font_size,txt=minutes,hj='c',vj='m'})
end -- end draw_clock
function out(txj)--c,a,f,fs,face,x,y,txt,hj,vj,ro,sxo,syo,sfs,sface,sc,sa #
-- Taken from mrpeachy's wun.lua
local extents=cairo_text_extents_t:create()
tolua.takeownership(extents)
local function justify(jtxt,x,hj,y,vj,f,face,fs)
if face=="normal" then
face={f,CAIRO_FONT_SLANT_NORMAL,CAIRO_FONT_WEIGHT_NORMAL}
elseif face=="bold" then
face={f,CAIRO_FONT_SLANT_NORMAL,CAIRO_FONT_WEIGHT_BOLD}
elseif face=="italic" then
face={f,CAIRO_FONT_SLANT_ITALIC,CAIRO_FONT_WEIGHT_NORMAL}
elseif face=="bolditalic" then
face={f,CAIRO_FONT_SLANT_ITALIC,CAIRO_FONT_WEIGHT_BOLD}
else
print ('face not set correctly - "normal","bold","italic","bolditalic"')
end
cairo_select_font_face (cr,face[1],face[2],face[3])
cairo_set_font_size(cr,fs)
cairo_text_extents(cr,jtxt,extents)
local wx=extents.x_advance
local wd=extents.width
local hy=extents.height
local bx=extents.x_bearing
local by=extents.y_bearing+hy
local tx=x
local ty=y
--set horizontal alignment - l, c, r
if hj=="l" then
x=x-bx
elseif hj=="c" then
x=x-((wx-bx)/2)-bx
elseif hj=="r" then
x=x-wx
else
print ("hj not set correctly - l, c, r")
end
--vj. n=normal, nb=normal-ybearing, m=middle, mb=middle-ybearing, t=top
if vj=="n" then
y=y
elseif vj=="nb" then
y=y-by
elseif vj=="m" then
y=y+((hy-by)/2)
elseif vj=="mb" then
y=y+(hy/2)-by
elseif vj=="t" then
y=y+hy-by
else
print ("vj not set correctly - n, nb, m, mb, t")
end
return face,fs,x,y,rad,rad2,tx,ty
end--justify local function #########################################################
--set variables
local c=txj.c or {0xffffff, 1}
local a=txj.a or 1
local f=txj.f or "monospace"
local fs=txj.fs or 12
local x=txj.x or 100
local y=txj.y or 100
local txt=txj.txt or "text"
local hj=txj.hj or "l"
local vj=txj.vj or "n"
local face=txj.face or "normal"
--print text ##################################################################
local face,fs,x,y=justify(txt,x,hj,y,vj,f,face,fs)
cairo_select_font_face (cr,face[1],face[2],face[3])
cairo_set_font_size(cr,fs)
cairo_move_to (cr,x,y)
cairo_set_source_rgba (cr,rgba_to_r_g_b_a(c))
cairo_show_text (cr,txt)
cairo_stroke (cr)
return nx
end--function ou
function rgba_to_r_g_b_a(tcolor)
local color,alpha=tcolor[1],tcolor[2]
return ((color / 0x10000) % 0x100) / 255.,
((color / 0x100) % 0x100) / 255., (color % 0x100) / 255., alpha
end --end rgba
function getheight(txt,f,face,fs)
-- Return the height of text. Needed for proper placement
local extents=cairo_text_extents_t:create()
tolua.takeownership(extents)
if face=="normal" then
face={f,CAIRO_FONT_SLANT_NORMAL,CAIRO_FONT_WEIGHT_NORMAL}
elseif face=="bold" then
face={f,CAIRO_FONT_SLANT_NORMAL,CAIRO_FONT_WEIGHT_BOLD}
elseif face=="italic" then
face={f,CAIRO_FONT_SLANT_ITALIC,CAIRO_FONT_WEIGHT_NORMAL}
elseif face=="bolditalic" then
face={f,CAIRO_FONT_SLANT_ITALIC,CAIRO_FONT_WEIGHT_BOLD}
else
print ('face not set correctly - "normal","bold","italic","bolditalic"')
end
cairo_select_font_face (cr,face[1],face[2],face[3])
cairo_set_font_size(cr,fs)
cairo_text_extents(cr,txt,extents)
return extents.height
end -- end getheight
function splitfont(s)
-- Return font and face
if s:find(':') then
return s:match("([^:]+):([^:]+)")
else
return s, nil
end
end -- end splitfont
conkyrc is trivial
# -- Conky settings -- #
background no
update_interval 1
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
double_buffer yes
no_buffers yes
short_units yes
text_buffer_size 2048
imlib_cache_size 0
use_xft yes
xftfont calibri:pixelsize=25
xftalpha .8
own_window_type desktop
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
own_window yes
own_window_transparent yes
#own_window_argb_visual yes
own_window_colour 505050
default_color 000000
border_inner_margin 0
border_outer_margin 0
minimum_size 350 350
alignment tr
# -- Graphics settings -- #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
# -- Lua load -- #
lua_load min_clock.lua
lua_draw_hook_pre main
#at least one line (empty or not) after TEXT
TEXT
Desktop screenshots :: Origami :: github
Offline