LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop > Linux - Screenshots
User Name
Password
Linux - Screenshots This forum is for the discussion and display of Linux Desktop screenshots. Please remember that many members browse LQ from work, so NSFW screenshots are not appropriate.

Notices

Reply
 
Search this Thread
Old 07-24-2013, 12:36 PM   #76
Sector11
Member
 
Registered: Feb 2010
Location: Buenos Aires, Argentina
Distribution: Debian SID & CrunchBang
Posts: 70

Rep: Reputation: Disabled

Quote:
Originally Posted by GlennsPref View Post
I want to add a syslog section, and I can't get it to show.
edit.
Code:
${color orange}Syslog: ${hr 2}${color}
${color white}${execi 30 tail -n3 /var/log/messages | fold -w50}
In a terminal the commands work, with sudo, but It won't display. Any thoughts?

Thank you, Regards Glenn
I think chmod will come to your rescue ... (chmod +x /var/log/messages) Although your line works perfectly for me and /var/log/messages is root: owned - root: read-write

I like the Wikipedia CHMOD page better than man chmod in a terminal.

I caught the "log messages" bug from JuseBox on the ARCH forums. Neat idea ... I made a "full screen" conky in a window (open it - read it - close it) with various log files

I added an "-s" so it would break at spaces vs in the middle of words:

Code:
${color5}GlennsPref's line${color} ${hr}

${execi 30 tail -n3 /var/log/messages | fold -s -w50}

${hr}

${color5}dmesg:
${color}${exec dmesg | tail -n10}

${color5}/var/log/daemon.log:
${color}${exec tail -n10 /var/log/daemon.log}


then mrpeachy grabbed it and made it "interactive" now that's cool! Read from there and the next 3 or 4 posts.

Hope that helps.

EDIT: This is my conky.test; that's why you see other stuff - I am working on a couple of things

Last edited by Sector11; 07-24-2013 at 12:38 PM.
 
Old 07-24-2013, 12:50 PM   #77
Sector11
Member
 
Registered: Feb 2010
Location: Buenos Aires, Argentina
Distribution: Debian SID & CrunchBang
Posts: 70

Rep: Reputation: Disabled
Quote:
Originally Posted by stinkeye View Post
Also, if you want to break at spaces with fold, use the -s option...ie fold -sw50
mumble mumble ... I just take tooooooooo long with my three finger typing ... and got carried away anyway....

Sad thing with the Ubuntu forums being down.

You should join the CrunchBang forums as well, your name is all over the conky thread there ... of course I'm quoting you and showing your work in the Monster Conky Thread quite often.

I'm sure people would appreciate your wisdom, and it's like the Ubuntu conky thread, people from all different distros are there talking conky.
 
Old 07-24-2013, 01:10 PM   #78
stinkeye
LQ Newbie
 
Registered: Jul 2013
Location: Woop Woop
Distribution: Ubuntu 13.04
Posts: 11

Rep: Reputation: 2
Quote:
Originally Posted by Sector11 View Post
mumble mumble ... I just take tooooooooo long with my three finger typing ... and got carried away anyway....
Only one rapid fire finger here....
 
Old 07-24-2013, 01:37 PM   #79
Sector11
Member
 
Registered: Feb 2010
Location: Buenos Aires, Argentina
Distribution: Debian SID & CrunchBang
Posts: 70

Rep: Reputation: Disabled
Quote:
Originally Posted by stinkeye View Post
Only one rapid fire finger here....
HAHAHAHAHAHAHAHA!!!!! Oh how I need that laugh!

If that was one of my fingers I'd be like greased lightning!
 
Old 07-24-2013, 06:38 PM   #80
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
Quote:
glenn@GamesBox:~ tail -n3 /var/log/messages | fold -sw50
tail: cannot open ‘/var/log/messages’ for reading: Permission denied
only works with sudo.

Thanks for "break at spaces with fold", looks better.

I'm thinking I still have a sudo problem on my system.

edit, Now if I use sudo for syslog and dmidecode it works fine.

I've thought about using the static info as suggested, but I want the cpu speed live,

so I can check if any upgrades have changed the settings for power management.

wip, but I'm loving it.

Regards Glenn

Last edited by GlennsPref; 07-24-2013 at 06:59 PM. Reason: Working now.
 
Old 07-24-2013, 06:47 PM   #81
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
Hey! syslog is working without sudo.

Now, dmidecode has stopped working.
 
Old 07-24-2013, 07:12 PM   #82
Sector11
Member
 
Registered: Feb 2010
Location: Buenos Aires, Argentina
Distribution: Debian SID & CrunchBang
Posts: 70

Rep: Reputation: Disabled
Quote:
Originally Posted by GlennsPref View Post
Hey! syslog is working without sudo.

Now, dmidecode has stopped working.
I'm at a loss ... I can read all but one log ...
I have a friend who uses kubuntu if that's the system you are using ... I can ask him.
 
Old 07-25-2013, 01:11 AM   #83
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
Thumbs up

No thank you, give me some more time.

I'm running Mageia Cauldron (prerelease/testing/unstable/bleeding-edge)

I have never (I can't remember...) been able to view the system logs as described. Sux to be me!(?)

Anyway the conkys are working (thank you Very Much!), They look similar to what you have seen here.

Cheers, Glenn

Here's the code.

System Conky
~/.conky/system/conky.conf
Code:
background yes

use_xft yes
xftfont Bitstream Vera Sans Mono-8

# Text alpha when using Xft
xftalpha 0.65

# Update interval in seconds
update_interval 0.50

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_argb_visual true
own_window_argb_value 0
own_window_type desktop
own_window_transparent yes
#own_window_hints undecorated,below,skip_taskbar,skip_pager,sticky

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 230
maximum_width 320

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no # amplifies text

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border width
border_width 0

# Text alignment, other possible values are commented
# tr - top right
# tl - top left
# tm - top middle
# br - bottom right
# bl - bottom left
# bm - bottom middle
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
gap_x 10
gap_y 25

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# pad the % outputs to two places, and use short units
short_units yes
pad_percents 2
# increase buffer size 256=default
text_buffer_size 1024

# lines after 'TEXT' will be formatted on screen
TEXT
${color #dc0e0e}System: ${hr 2}$color
${color}${pre_exec whoami} @ $nodename: $sysname, $kernel on $machine
${color white}${pre_exec sudo dmidecode --type baseboard | grep 'Product' | cut -d' ' -f3-} by ${pre_exec sudo dmidecode --type baseboard | grep 'Manufacturer' | cut -d' ' -f2-}
Uptime:${color green}$uptime
${color white}${time %A %B %e, %G} ${color green}${time %I:%M:%S}${time %p} ${time %Z}
${color white}Processes:${color green} $processes ${color white}Running:${color green} $running_processes ${color white}
${color orange}Cpu: ${hr 1}$color
${color white}CPU Temp:${color green}${exec sensors | grep -n 'temp1' | sed -n 2p | awk -F'+' '{print $2}' | awk -F' ' '{print $1}'}
${color white}CPU Usage:${color green}${cpu cpu0}% ${color #DFDFDF}${cpubar}
${color white}${pre_exec sudo dmidecode --type processor | grep 'Current Speed' | cut -d' ' -f3-} on ${pre_exec sudo dmidecode --type processor | grep 'Version' | cut -d' ' -f2-}
${color #dc0e0e}Graphics: ${hr 2}$color
${color white}GPU Freq:${alignr}${color green}${execi 5 nvidia-settings -t -q GPUCurrentProcessorClockFreqs | sed -n 2p} MHz
${color white}GPU Mem: Used:${alignr}${color green}${execi 5 nvidia-settings -t -q UsedDedicatedGPUMemory}  Mb
${color white}GPU Temp:${alignr}${color green}${execi 5 nvidia-settings -t -q GPUCoreTemp | sed -n 2p}  C
${color cyan}Cooling: ${hr 1}$color
${color white}Noctua NH-U12P-se2:${alignr}${color green}${exec sensors | grep -n 'fan1' | awk -F'+' '{print $1}' | awk -F' ' '{print $2}'} rpm
${color white}Top Case Fan:${alignr}${color green}${exec sensors | grep -n 'fan2' | awk -F'+' '{print $1}' | awk -F' ' '{print $2}'} rpm
${color white}Rear Case Fan:${alignr}${color green}${exec sensors | grep -n 'fan3' | awk -F'+' '{print $1}' | awk -F' ' '{print $2}'} rpm
${color white}Front Case Fan:${alignr}${color green}${exec sensors | grep -n 'fan4' | awk -F'+' '{print $1}' | awk -F' ' '{print $2}'} rpm
${color white}GPU Fan:${alignr}${color green}${execi 5 nvidia-settings -t -q GPUCurrentFanSpeed}   %
${color orange}Disks: ${hr 2}${color}
${color} /dev/sdb5 ${color}(${fs_type /}) /: ${alignr} /dev/sdb6 ${color}(${fs_type /home}) /home:
${fs_used /} used of ${fs_size /} ${alignr} ${fs_used /home} used of ${fs_size /home}
Disk I/O - ${color green}${diskio /dev/sdb5} ${color white}${alignr} Disk I/O - ${color green}${diskio /dev/sdb6}
${color #dc0e0e}Memory: ${hr 2}$color
${color white}RAM used:${color green} $memperc% ($mem/$memmax)
${color #DFDFDF}${membar 6}$color
${color white}Swap used:${color green} $swapperc% ($swap/$swapmax)
${color #DFDFDF}${swapbar 6}$color
${color orange}Networking: ${hr 2}${color}
 ${color green}Dynamic public IP address: ${color white}${execi 3600 curl ifconfig.me}
 ${color green}IP: ${color white}${addr eth0}  ${color green}Gateway: ${color white}${gw_ip eth0}
 ${color green}Down:${color cyan} ${downspeed eth0} kb/s${color green} ${alignr}Up:${color cyan}    ${upspeed eth0} kb/s
 ${color}${downspeedgraph eth0 25,140 ff0000 0000ec}${alignr}${upspeedgraph eth0    25,140 0000ff ec0000}
 Connections in:${color green} ${tcp_portmon 1 32767 count}${color} Connections    out:${color green} ${tcp_portmon 32768 61000 count}${color} Total:${color}    ${tcp_portmon 1 65535 count}
${color orange} Inbound Connection ${alignr} Local Service/Port
${color} ${tcp_portmon 1 32767 rhost 0} ${alignr} ${tcp_portmon 1 32767    lservice 0}
 ${tcp_portmon 1 32767 rhost 1} ${alignr} ${tcp_portmon 1 32767 lservice 1}
 ${tcp_portmon 1 32767 rhost 2} ${alignr} ${tcp_portmon 1 32767 lservice 2}
 ${tcp_portmon 1 32767 rhost 3} ${alignr} ${tcp_portmon 1 32767 lservice 3}
${color orange} Outbound Connection ${alignr} Remote Service/Port${color}
${color} ${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}
${color #dc0e0e}Top: ${hr 1}$color
${color}Name              PID     CPU%   MEM%
${color yellow} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${color lightgrey} ${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}
${color lightgrey} ${top name 6} ${top pid 6} ${top cpu 6} ${top mem 6}
${color}Mem usage
${color yellow} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color lightgrey} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color lightgrey} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${color lightgrey} ${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}
${color lightgrey} ${top_mem name 5} ${top_mem pid 5} ${top_mem cpu 5} ${top_mem mem 5}
${color #dc0e0e}News headlines: ${hr 2}:${color}
${color #7f8ed3}${execi 300 /home/glenn/.conky/system/conky-rss.sh http://rss.slashdot.org/Slashdot/slashdot 8 2}
${color orange}Syslog: ${hr 2}${color}
${color yellow}${execi 30 sudo tail -n3 /var/log/messages | fold -sw50}
slash-dot headlines
~/.conky/system/conky-rss.sh (not the best name...should be slashdot-rss.sh!)
Code:
#!/bin/bash
# RSS Display Script by Bill Woodford (admin@sdesign.us) v1.0
#
# This script is designed to output story titles for most any RSS Feed.
#
# This script depends on curl.  Please ensure it is installed and in your $PATH
# Gentoo: emerge -av net-misc/curl
# Debian: apt-get install curl
# Homepage: http://curl.haxx.se/
#
# Usage:
# .conkyrc:	${execi [time] /path/to/script/conky-rss.sh URI LINES TITLENUM}
#	URI = Location of feed, ex. http://www.gentoo.org/rdf/en/glsa-index.rdf
#	LINES = How many titles to display (default 5)
#	TITLENUM = How many times the title of the feed itself is specified, usually 1 or 2 (default 2)
#
# Usage Example
#		${execi 300 sudo /home/youruser/scripts/conky-rss.sh http://www.foxnews.com/xmlfeed/rss/0,4313,1,00.rss 4 2}

#RSS Setup - Don't change unless you want these values hard-coded!
uri=$1							#URI of RSS Feed
lines=$2						#Number of headlines
titlenum=$3						#Number of extra titles

#Script start
#Require a uri, as a minimum
if [[ "$uri" == "" ]]; then
	echo "No URI specified, cannot continue!" >&2
	echo "Please read script for more information" >&2
else
	#Set defaults if none specified
	if [[ $lines == "" ]]; then lines=5 ; fi
	if [[ $titlenum == "" ]]; then titlenum=2 ; fi

	#The actual work
	curl -s --connect-timeout 30 $uri |\
	sed -e 's/<\/title>/\n/g' |\
	grep -o '<title>.*' |\
	sed -e 's/<title>//' |\
	head -n $(($lines + $titlenum)) |\
	tail -n $(($lines))
fi
I leave the comments here if they are usefull to someone else.

Surf Conky
~/.conky/surf/conky.conf
Code:
background yes
update_interval 1
total_run_times 0

use_xft yes
xftfont Droid Sans:size=9
xftalpha 1.0
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_argb_visual true
own_window_argb_value 0
own_window_type desktop
own_window_transparent yes
#own_window_hints undecorated,below,skip_taskbar,skip_pager,sticky

double_buffer yes
draw_shades no
draw_outline no
draw_borders no
stippled_borders 10
# Text alignment, other possible values are commented
# tr - top right
# tl - top left
# tm - top middle
# br - bottom right
# bl - bottom left
# bm - bottom middle

alignment tl
gap_y 10
gap_x 1936

default_shade_color grey
default_outline_color black
default_color 000000
use_spacer none
no_buffers yes
uppercase no
color1 F8DF58

text_buffer_size 512
override_utf8_locale yes

minimum_size 600 260
maximum_width 600

max_specials 1024
max_user_text 4000

imlib_cache_size 0
border_inner_margin 5
border_outer_margin 3
border_width 3

TEXT

${execi 3600 curl --retry 4 "http://www.swellnet.com.au/reports/surfers-paradise/daily" | sed -e :a -e 's/<[^>]*>//g;/</N;//ba' | sed '/^$/d' > ~/.conky/surf/surf.txt}
${execi 3600 ~/.conky/surf/get/wget_seabreeze}
${image ~/.conky/surf/get/.seabreeze.png -p 0,0}
${color white}${voffset 230}${font size=12}Surf Report: ${color white}${execi 3600 cat ~/.conky/surf/surf.txt | grep -A 1 "Effective from:" | tail -n1}${color white}${alignr 10}${execi 3600 cat ~/.conky/surf/surf.txt | grep -A 1 "Rating:" | sed ':a;N;$!ba;s/\n/ /g'}${font}
${voffset -10}${hr 2}
${color white}${execi 3600 cat ~/.conky/surf/surf.txt | grep -A 2 "Rating:" | tail -n1 | fold -sw86}
~/.conky/surf/get/wget_seabreeze
Code:
#!/bin/bash
cd /home/glenn/.conky/surf/get
wget -O index.html http://www.seabreeze.com.au/graphs/qld.asp
grep rgg.png .f1>.f2
sed -i 's/"/\n/g' .f2
sed -i 's/?/\n/g' .f2
grep .png .f2>.f3
sed -i "1s/^/http\:\/\/www\.seabreeze\.com\.au/" .f3
i=$(sed -n '1p' .f3)
wget -O ./.seabreeze.png $i
Cheers, Glenn
Attached Images
File Type: png GamesBox-Conkys-system.png (104.6 KB, 5 views)
File Type: png GamesBox-Conkys-surf.png (25.3 KB, 4 views)
File Type: png GamesBox-Conkys-screen-sml.png (193.0 KB, 23 views)

Last edited by GlennsPref; 07-25-2013 at 01:45 AM. Reason: remove some #comments, reload 2 .png's :-)
 
Old 07-25-2013, 03:31 AM   #84
stinkeye
LQ Newbie
 
Registered: Jul 2013
Location: Woop Woop
Distribution: Ubuntu 13.04
Posts: 11

Rep: Reputation: 2
Hi Glenn,
I've been trying to work out why your wget_seabreeze script was still working
when you had changed the original line...
Code:
wget -O .f1 http://www.seabreeze.com.au/graphs/qld.asp
to
Code:
wget -O index.html http://www.seabreeze.com.au/graphs/qld.asp
The rest of the script relies on interacting with the .f1 file which you are now not creating.

This script was written for me a few years ago because the last part of the image address
was forever changing and I didn't know how to download it.
eg the current address is (from the browser right click > copy image address)...
Code:
http://www.seabreeze.com.au/images/forecast/3/BRIS/rgg.png?n=1374738791000
The numbered ending changes hourly, so the script was used to download the site source
and then isolate the correct image address to download the latest image.

Due to the fact that your script is still working, it appears you don't need the ending
to take you to the latest image...
IE using the latest image address
Code:
http://www.seabreeze.com.au/images/forecast/3/BRIS/rgg.png?n=1374738791000
or just
Code:
http://www.seabreeze.com.au/images/forecast/3/BRIS/rgg.png
both give the latest image.

So the wget_seabreeze script is not needed at all and the line in your ~/.conky/surf/conky.conf calling the script...
Code:
${execi 3600 ~/.conky/surf/get/wget_seabreeze}
can be replaced with simply directly downloading the latest image...
Code:
${execi 3600 curl http://www.seabreeze.com.au/images/forecast/3/BRIS/rgg.png > ~/.conky/surf/get/.seabreeze.png}

Last edited by stinkeye; 07-25-2013 at 03:33 AM.
 
Old 07-25-2013, 04:33 PM   #85
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
Hi, Thanks stinkeye, I had changed that when I was looking for the file.

As it stands, the image works, but it seems to fade a bit,
like the cloud icons diminish, but I guess that could be white on white.

I had actually forgotten I had changed that. I switched it back just now and it works too.

Later today I'll give the new line a go. Cheers.
 
Old 11-07-2013, 03:01 PM   #86
Sector11
Member
 
Registered: Feb 2010
Location: Buenos Aires, Argentina
Distribution: Debian SID & CrunchBang
Posts: 70

Rep: Reputation: Disabled
New one on the right ----->>>

conky:
Code:
## killall conky && conky -c /media/5/Conky/S11_Vert.conky &

###  Begin Window Settings  ##################################################
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
own_window_class Conky
own_window_title S11

# Use the Xdbe extension? (eliminates flicker)
# It is highly recommended to use own window with this one
# so double buffer won't be so big.
double_buffer yes

### ARGB can be used for real transparency
### NOTE that a composite manager is required for real transparency.
### This option will not work as desired (in most cases) in conjunction with
### own_window_type normal
# own_window_argb_visual yes

### When ARGB visuals are enabled, this use this to modify the alpha value
### Use: own_window_type normal
### Use: own_window_transparent no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
# own_window_argb_value 0 #255

minimum_size 120 0  ##820 260   ## width, height
maximum_width 120     ##820       ## width, usually a good idea to equal minimum width

#gap_x 0 # left-right
#gap_y 0 # up-down
gap_x 10 # left-right
gap_y 10 # up-down


alignment tr
##################################left#################  End Window Settings  ###
###  Font Settings  #########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
#xftfont Liberation Sans:size=15
xftfont monofur:bold:size=11

# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1
# Force UTF8? requires XFT ###
override_utf8_locale yes

### WARNING ### These do NOT play well with /media/5/Conky/LUA/draw-bg.lua ###
draw_shades yes #### <<<--- yes --- To see it easier on light screens.
default_shade_color 000000
draw_outline no #### <<<--- yes --- Amplifies text if yes OJO with changing fonts
default_outline_color 000000
uppercase no
######################################################  End Font Settings  ###
###  Color Settings  #########################################################
#default_shade_color black
#default_outline_color black

#default_color DCDCDC #220 220 220	Gainsboro
#default_color C0C0C0 #192 192 192 Silver
default_color B0E0E6 #176 224 230 PowderBlue
color0 8FBC8F #143 188 143	DarkSeaGreen
color1 778899 #119 136 153	LightSlateGray
color2 D8BFD8 #216 191 216	Thistle
color3 9ACD32 #154 205  50	YellowGreen
color4 48D1CC # 72 209 204 MediumTurquoise
color5 FFDEAD #255 222 173	NavajoWhite
color6 00BFFF #  0 191 255	DeepSkyBlue
color7 5F9EA0 # 95 158 160	CadetBlue
color8 BDB76B #189 183 107	DarkKhaki
color9 CD5C5C #205  92  92	IndianRed  #FF0000 #255   0   0	Red
#####################################################  End Color Settings  ###
###  Borders Section  ########################################################
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 0
# graph borders
draw_graph_borders yes
#default_graph_size 15 40

#####################################################  End Borders Secton  ###
###  Miscellaneous Section  ##################################################
# Boolean value, if true, Conky will be forked to background when started.
background yes

# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer none

# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
 text_buffer_size 1536

# Subtract (file system) buffers from used memory?
no_buffers yes

# change GiB to G and MiB to M
short_units yes

# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2

#   Maximum size of user text buffer, i.e. layout below TEXT line in config file
#  (default is 16384 bytes)
# max_user_text 16384

# Desired output unit of all objects displaying a temperature. Parameters are
# either "fahrenheit" or "celsius". The default unit is degree Celsius.
# temperature_unit Fahrenheit

## Imlib2 image cache size, in bytes. Defaults to 4MiB. Increase this value
## if you use $image lots.		Set to 0 to disable the image cache.
imlib_cache_size 0

##############################################  End Miscellaneous Section  ###
###  LUA Settings  ###########################################################
## Above and After TEXT - requires a composite manager or it blinks.
##
# lua_load ~/wea_conky/draw_bg.lua
## TEXT
## ${lua conky_draw_bg 10 0 0 0 0 0x000000 0.2}
## ${lua conky_draw_bg corner_radius x_position y_position width height color alpha}
##
##
## OR Both above TEXT (No composite manager required - no blinking!)
##
 lua_load /media/5/Conky/LUA/draw-bg.lua
# lua_draw_hook_pre draw_bg 10 0 0 0 0 0xffffff 0.3
# TEXT

update_interval 1
TEXT
${lua conky_draw_bg 10 0 0 0 0 0x000000 0.3}${goto 45}${font monofur:bold:size=16}${color5}${time %b}${color}${font}
${execpi 7200 ncal -h | /media/5/Conky/scripts/ncal.awk}
${goto 40}${font monofur:bold:size=16}${color5}${time %Y}${color}${font}
${voffset -170}${color5}${goto 90}${font LED_mono:size=20}${time %H}

${goto 90}${time %M}

${goto 90}${time %S}${font}${color}${voffset 70}
${alignc}${uptime_short}
${alignc}${membar 0,110}
${alignc}${execi 86400 lsb_release -is} ${execi 86400 lsb_release -rs}
${alignc}${color5}${kernel}${color}

${alignc}CPU Info
${color5}${alignc}${membar 0,60}${color}
${alignc}CPU μm ${color5}${freq_g}${color}
${alignc}Avg ${if_match ${cpu cpu0}<10}${color1}00${color5}${cpu cpu0}\
${else}${if_match ${cpu cpu0}<100}${color5}0${color7}${cpu cpu0}\
${else}${color9}${cpu cpu0}${endif}${endif}${color5} %${color}
${alignc}${color5}1  ${color}|  ${color5}2  ${color}|  ${color5}3${color}
${alignc}${if_match ${cpu cpu1}<10}${color1}00${color5}${cpu cpu1}\
${else}${if_match ${cpu cpu1}<100}${color1}0${color7}${cpu cpu1}\
${else}${color9}${cpu cpu1}${endif}${endif}${color}\
 | ${if_match ${cpu cpu2}<10}${color1}00${color5}${cpu cpu2}\
${else}${if_match ${cpu cpu2}<100}${color1}0${color7}${cpu cpu2}\
${else}${color9}${cpu cpu2}${endif}${endif}${color}\
 | ${if_match ${cpu cpu3}<10}${color1}00${color5}${cpu cpu3}\
${else}${if_match ${cpu cpu3}<100}${color1}0${color7}${cpu cpu3}\
${else}${color9}${cpu cpu3}${endif}${endif}${color}

${alignc}Sensors
${color5}${alignc}${membar 0,50}${color}
CPU ${color5}${platform f71882fg.2560 temp 1}${color}\
${alignr}MB ${color5}${platform f71882fg.2560 temp 2}${color}
GPU ${color5}${nvidia temp}${color}\
${alignr}HD ${color5}${hddtemp /dev/sda}${color}
${alignc}Fan ${color5}${platform f71882fg.2560 fan 1} ${color}RPM

${alignc}NVIDIA Freq
${alignc}GPU ${color5}${nvidia gpufreq} ${color}MHz
${alignc}MEM ${color5}${nvidia memfreq} ${color}MHz

${alignc}Disk Activity
${color5}${alignc}${membar 0,90}${color}
Read   ${color5}${diskio_read /dev/sda}${color}
Write  ${color5}${diskio_write /dev/sda}${color}

/Root ${color5}${fs_size /}${color}
   Free  ${color5}${fs_free /}${color}
   Used  ${color5}${fs_used_perc /} %${color}
/Home ${color5}${fs_size /home}${color}
   Free  ${color5}${fs_free /home}${color}
   Used  ${color5}${fs_used_perc /home} %${color}
/M/5  ${color5}${fs_size /media/5}${color}
   Free  ${color5}${fs_free /media/5}${color}
   Used  ${color5}${fs_used_perc /media/5} %${color}

${alignc}Network Totals
${alignc}${color5}${membar 0,100}${color}
tx ↑ ${upspeed eth0}
${color0}rx ↓ ${downspeed eth0}${color}
${color5}${exec date --date="0 day" | awk '{print $3" "$2}'}${alignr}${execpi 300 vnstat | grep "today" | awk '{print $8" "$9}'}${color}
tx ↑${alignr}${execpi 300 vnstat | grep "today" | awk '{print $5" "$6}'}
${color0}rx ↓${alignr}${execpi 300 vnstat | grep "today" | awk '{print $2" "$3}'}${color}
${color5}${execpi 3600 date --date="-1 day" | awk '{print $3" "$2}'}${alignr}${execpi 300 vnstat | grep "yesterday" | awk '{print $8" "$9}'}${color}
tx ↑${alignr}${execpi 300 vnstat | grep "yesterday" | awk '{print $5" "$6}'}
${color0}rx ↓${alignr}${execpi 300 vnstat | grep "yesterday" | awk '{print $2" "$3}'}${color}
${color5}Curr Wk${alignr}${execpi 300 vnstat -w | grep "current week" | awk '{print $9" "$10}'}${color}
tx ↑${alignr}${execpi 300 vnstat -w | grep "current week" | awk '{print $6" "$7}'}
${color0}rx ↓${alignr}${execpi 300 vnstat -w | grep "current week" | awk '{print $3" "$4}'}${color}
${color5}${time %b %Y}${alignr}${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $9" "$10}'}${color}
tx ↑${alignr}${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $6" "$7}'}
${color0}rx ↓${alignr}${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $3" "$4}'}${voffset -170}
ncal.awk
Code:
#!/usr/bin/gawk -f
# based on: cal.C512.sh
# a bash script by Crinos512
#####################################################################
#                                                                   #
# ncal.awk script by dk75                                           #
#                                                                   #
# usage:                                                            #
# ncal -h | ncal.awk             - if Sunday is a first day of      #
#                                  the week                         #
# ncal -h | ncal.awk monday=TRUE - if Monday is a first day of      #
#                                  the week                         #
#                                                                   #
#####################################################################

BEGIN	\
{
	weekend[1]=7
	weekend[2]=1

	if ( ARGV[1]=="monday=TRUE" )
	{
		weekend[1]=6
		weekend[2]=7
	}

	today=strftime("%02d")
}

NR==1	\
{
	month=$1
	year=$2
}

NR>1	\
{
	gsub(/ {4}/," 0 ", $0)
	days[NR-1,1]=$1
	days[NR-1,2]=$2
	days[NR-1,3]=$3
	days[NR-1,4]=$4
	days[NR-1,5]=$5
	days[NR-1,6]=$6
	days[NR-1,7]=$7
}

END	\
{
	#############################################################
	# preparing and formatting data                              #
	#############################################################
	for ( i=1; i<=7; i++ )
	{
		for ( j=2; j<=7; j++ )
		{
			days[i,j]=sprintf("%02d", days[i,j])

			if ( days[i,j]=="00" )
				days[i,j]=""

			if ( days[i,j]==today )
				days[i,j]="${color5}"days[i,j]"${color}"
			else
				days[i,j]="${color}"days[i,j]"${color}"
		}

		if ( i==weekend[1] )
			days[i,1]="${color5}"days[i,1]"${color}"
		else if ( i==weekend[2] )
			days[i,1]="${color5}"days[i,1]"${color}"
		else
			days[i,1]="${color1}"days[i,1]"${color}"
	}
	# ###########################################################

	#############################################################
	# displaying data                                           #
	#############################################################
	#print "${alignc}${color6}"month"${color}"

	for ( j=0; j<=1; j++ )
	{
		for ( i=1; i<=7; i++ )
		{
			printf "%s %s %s %s\n", days[i,1], days[i,2+j], days[i,4+j], days[i,6+j]
		}
	}

	#print "${alignc}${color6}"year"${color}"
}
 
Old 11-27-2013, 03:46 PM   #87
Sector11
Member
 
Registered: Feb 2010
Location: Buenos Aires, Argentina
Distribution: Debian SID & CrunchBang
Posts: 70

Rep: Reputation: Disabled
Another new conky .... Today I made an appointment to have my eyes checked.

I'm forgetful ... when I say 'my forgetter is getting better' I'm usually joking, but I do tend to forget some things so today I wrote a neat (opinion) little conky to remind me of things.

It has the ability so show nothing until the right day, or show a 'note' with an "in x days" and on the day of the event show what's what:


On the left is the code that shows nothing until the day of the reminder, I put a couple of ${membar 0,100} commands in there to show it's really running.

On the right is the reminder as if it was today.

The code is easy enough.

On the left - shows nothing until the day:
Code:
update_interval 1
TEXT
${alignc}${membar 0,100}
${if_match "${time %x}"=="12/12/13"}${alignc}${color5}Eyes today${color}
${alignc}12/12/13 @ 14:00
${alignc}be 15 min early.
${alignc}V. del Pino 2458 1st Fl.
${alignc}Dra. Reijana${else}${endif}
${alignc}${membar 0,100}
and in the centre:
Code:
update_interval 1
TEXT
${if_match "${time %x}"=="12/12/13"}${alignc}${color5}Eyes today${color}
${alignc}12/12/13 @ 14:00
${alignc}be 15 min early.
${alignc}V. del Pino 2458 1st Fl.
${alignc}Dra. Reijana${else}${alignc}${color5}Eyes in ${exec conkyDaysDiff 20131212} days${color}
${goto 15}${color1}SU MO ${color5}Dec 2013${color1} FR SA
${goto 15}${color1}${execpi 86400 FLAR=`date +12`; ncal -bh -m12 2013 | sed '2d' | sed -e '1d' -e 's/\<'$FLAR'\>/${color5}&${color1}/' | sed ':a;N;$!ba;s/\n/\n${goto 15}/g'}${endif}${color}
Now I have to remember to add it to my autostart script. :lol: :lol: :lol:
 
Old 11-27-2013, 03:58 PM   #88
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Undecided
Posts: 3,183
Blog Entries: 4

Rep: Reputation: 762Reputation: 762Reputation: 762Reputation: 762Reputation: 762Reputation: 762Reputation: 762
You my good man, have waaaaaaaaaaaaaay too much free time.
 
Old 11-27-2013, 04:37 PM   #89
Sector11
Member
 
Registered: Feb 2010
Location: Buenos Aires, Argentina
Distribution: Debian SID & CrunchBang
Posts: 70

Rep: Reputation: Disabled
Quote:
Originally Posted by Habitual View Post
You my good man, have waaaaaaaaaaaaaay too much free time.
It's called: retired. But sometimes I'm busier than a ... pick your poison.
 
Old 11-30-2013, 07:25 AM   #90
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Undecided
Posts: 3,183
Blog Entries: 4

Rep: Reputation: 762Reputation: 762Reputation: 762Reputation: 762Reputation: 762Reputation: 762Reputation: 762
You need a proper "hobby", but I suppose this one doesn't irritate the Wife.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
conky question: passing conky-variable to shell-script zlin50 Linux - Software 2 12-29-2012 06:47 PM
LXer: Conky Colors Makes Your Conky Beautiful In Seconds (Version 3.20 Released) LXer Syndicated Linux News 0 08-01-2010 11:21 AM
'Casting away const'ness' in C jrtayloriv Programming 3 03-11-2008 04:32 PM
Conky on Suse 10.0 - *** buffer overflow detected *** conky terminated Slidex Linux - Software 1 03-17-2006 11:50 AM
newbie-ness newbiebob LinuxQuestions.org Member Intro 2 07-15-2005 04:33 PM


All times are GMT -5. The time now is 03:06 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration