LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-15-2013, 10:01 PM   #61
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with Slackware 14.
Posts: 2,617

Rep: Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552

Thanks for your reply.
It started working after a while without any changes, sorry about that.
Quote:
Originally Posted by stinkeye View Post
Your config with $user_names works here on Ubuntu 13.04
What is your conky version.
1.9.0-2

Quote:
Originally Posted by stinkeye View Post
Try opening a terminal as here it shows multiple user instances with terminals open.
Does the terminal command users work?
Sure does.


Quote:
Originally Posted by stinkeye View Post
Also try with enclosed brackets in the config line and without the $alignr
eg
Code:
User: ${user_names}
it works as it should.
 
Old 07-15-2013, 10:23 PM   #62
stinkeye
LQ Newbie
 
Registered: Jul 2013
Location: Woop Woop
Distribution: Ubuntu 13.04
Posts: 11

Rep: Reputation: 2
Quote:
Originally Posted by k3lt01 View Post
Thanks for your reply.
It started working after a while without any changes, sorry about that.
1.9.0-2

Sure does.


it works as it should.
Ah ok ..no probs.

To show the current user and avoid multiple instances with terminals open you could use...
Code:
${pre_exec whoami}
 
Old 07-15-2013, 10:29 PM   #63
Sector11
Member
 
Registered: Feb 2010
Location: Buenos Aires, Argentina
Distribution: Debian SID & CrunchBang
Posts: 69

Rep: Reputation: Disabled
Quote:
Originally Posted by stinkeye View Post
eg
Code:
User: ${user_names}
Hi Sector11
Hi 'glenglen' like me, sector11sector11, I see you are logged in twice as well

All user_xxx command work here too.

 
Old 07-15-2013, 11:09 PM   #64
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with Slackware 14.
Posts: 2,617

Rep: Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552
Quote:
Originally Posted by stinkeye View Post
Ah ok ..no probs.
I went and had lunch, come back, and its gone again.

Quote:
Originally Posted by stinkeye View Post
To show the current user and avoid multiple instances with terminals open you could use...
Code:
${pre_exec whoami}
Changed the setting to this, saved conky.conf (I have donky.cong in my head now ) and it started working immediately. Hopefully this one wont work only when it feels like it like the old setting.

Thanks again.
 
Old 07-15-2013, 11:12 PM   #65
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with Slackware 14.
Posts: 2,617

Rep: Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552
Love your background Sector11, I had a changing LOTR background for a while.
 
Old 07-15-2013, 11:48 PM   #66
stinkeye
LQ Newbie
 
Registered: Jul 2013
Location: Woop Woop
Distribution: Ubuntu 13.04
Posts: 11

Rep: Reputation: 2
Quote:
Originally Posted by k3lt01 View Post
I went and had lunch, come back, and its gone again.


Changed the setting to this, saved conky.conf (I have donky.cong in my head now ) and it started working immediately. Hopefully this one wont work only when it feels like it like the old setting.

Thanks again.
Maybe $USER is popping out for a nibble as well.
The pre_exec command shouldn't give problems as it only executes once before conky displays anything and does not update.

Well seeing as this is a conky screenshot thread I may as well show the current conkys I display.
8 in total.
I use a
  • surf wind and weather conky
  • calendar conky
  • gmail conky
  • system panel conky

Then I have various conkys I toggle on/off via scripts called from a unity quicklist...
  • 7 day wind and waves forecast conky
  • daily wizard ID comic conky
  • local surfcam conky (updates every minute or can fetch images for the last hour at 5min intervals and replay as a slideshow)
  • swell radar conky
Attached Images
File Type: jpg 051.jpg (180.3 KB, 16 views)
File Type: jpg 046.jpg (212.2 KB, 17 views)

Last edited by stinkeye; 07-25-2013 at 04:25 AM.
 
Old 07-16-2013, 07:20 AM   #67
Sector11
Member
 
Registered: Feb 2010
Location: Buenos Aires, Argentina
Distribution: Debian SID & CrunchBang
Posts: 69

Rep: Reputation: Disabled
Quote:
Originally Posted by k3lt01 View Post
Love your background Sector11, I had a changing LOTR background for a while.
Thanks, I made that from one that had a creamy white lettering.
 
Old 07-16-2013, 07:28 AM   #68
Sector11
Member
 
Registered: Feb 2010
Location: Buenos Aires, Argentina
Distribution: Debian SID & CrunchBang
Posts: 69

Rep: Reputation: Disabled
Quote:
Originally Posted by stinkeye View Post
Then I have various conkys I toggle on/off via scripts called from a unity quicklist...
  • 7 day wind and waves forecast conky
  • daily wizard ID comic conky
  • local surfcam conky (updates every minute or can fetch images for the last hour at 5min intervals and dispay as a slideshow)
  • swell radar conky
Question: how do you shutdown one specific conky in a script?

You interested in a bean background for that clock?
Attached Images
File Type: png coffee.png (137.1 KB, 7 views)
 
Old 07-16-2013, 08:51 AM   #69
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
Question: how do you shutdown one specific conky in a script?

You interested in a bean background for that clock?
Remember a few months ago.... http://ubuntuforums.org/showthread.p...1#post12464093

Arclance showed how to kill a specific conky which evolved into a script that can be used to
toggle any conky off/on.

toggle-any-conky
Code:
#!/bin/bash

## click to start, click to stop

### exec line in .desktop file 
# /full/path_to/toggle-any-conky /full/path/to/conky-config
## Eg /home/glen/conky/toggle-any-conky /home/glen/conky/configs/comic-conkyrc


if pgrep -f "conky -c $1"; then
	pkill -xf "conky -c $1"
else
	conky -c $1
	
fi
The one script can be used to toggle any specific conky on/off.
Eg this section of my unity quicklist shows the commands I use to toggle specific conkys.
Code:
[Desktop Action Seabreeze]
Name=7 day Forecast On/Off
Exec=/home/glen/conky/toggle-any-conky /home/glen/conky/configs/seabreeze-conkyrc
OnlyShowIn=Unity;

[Desktop Action comic]
Name=Comic On/Off
Exec=/home/glen/conky/toggle-any-conky /home/glen/conky/configs/comic-conkyrc
OnlyShowIn=Unity;

[Desktop Action gmail]
Name=Gmail On/Off
Exec=/home/glen/conky/toggle-any-conky /home/glen/conky/configs/gmail-conkyrc
OnlyShowIn=Unity;

[Desktop Action surf]
Name=Surf Report On/Off
Exec=/home/glen/conky/toggle-any-conky /home/glen/conky/configs/surf-conkyrc
OnlyShowIn=Unity;

Tried the bean clock...the pic looses it's sharpness in conky.
Looks like a tortoiseshell clock
Attached Images
File Type: jpg 052.jpg (14.3 KB, 9 views)
 
Old 07-16-2013, 10:26 AM   #70
Sector11
Member
 
Registered: Feb 2010
Location: Buenos Aires, Argentina
Distribution: Debian SID & CrunchBang
Posts: 69

Rep: Reputation: Disabled
Quote:
Originally Posted by stinkeye View Post
Remember a few months ago.... http://ubuntuforums.org/showthread.p...1#post12464093

Arclance showed how to kill a specific conky which evolved into a script that can be used to
toggle any conky off/on.
Riiiiiiiiiiiiiiiight!!! GrouchyGaijin started it all .... totally forgot about that

I'll have to do what you did... only in OpenBox.


Quote:
Originally Posted by stinkeye View Post
Tried the bean clock...the pic looses it's sharpness in conky.


Looks like a tortoiseshell clock
heheheh Instead of resizing the image to fit the clock crop the image to fit the clock.

Is the image you posted the "actual" size of the clock ... you need bigger coffee beans. ?

EDIT: @ stinkeye - try these. Or maybe a lighter roast?
Attached Images
File Type: png stinkeye.png (39.8 KB, 4 views)

Last edited by Sector11; 07-16-2013 at 12:12 PM. Reason: added image
 
Old 07-18-2013, 09:47 PM   #71
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

Hi, I mentioned a few things in frustration last week, about broken...

There's quite a bit going on with my system at the moment.

about broken... orphaned files after start, can not remove file,... ,no such file exists,

I've put this down to my scripting skills, I am getting better every day.
Code:
rm: cannot remove ‘index.html’: No such file or directory
rm: cannot remove ‘index.html’: No such file or directory
rm: cannot remove ‘index.html’: No such file or directory
rm: cannot remove ‘index.html’: No such file or directory
rm: cannot remove ‘index.html’: No such file or directory
rm: cannot remove ‘index.html’: No such file or directory
rm: cannot remove ‘index.html’: No such file or directory
rm: cannot remove ‘index.html’: No such file or directory
rm: cannot remove ‘index.html’: No such file or directory
rm: cannot remove ‘index.html’: No such file or directory
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 32731    0 32731    0     0   4918      0 --:--:--  0:00:06 --:--:-- 25235
--2013-07-19 11:46:24--  http://www.seabreeze.com.au/graphs/qld.asp
Resolving www.seabreeze.com.au (www.seabreeze.com.au)... 50.23.74.196
Connecting to www.seabreeze.com.au (www.seabreeze.com.au)|50.23.74.196|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 51070 (50K) [text/html]
Saving to: ‘index.html’

100%[==================================================>] 51,070      61.6KB/s   in 0.8s   

2013-07-19 11:46:30 (61.6 KB/s) - ‘index.html’ saved [51070/51070]

rm: cannot remove ‘index.html’: No such file or directory
rm: cannot remove ‘index.html’: No such file or directory
But other than that, both conky's work very well.

I have them both in the background, so I have the same desktop realestate.

Here's the scripts,

system conky
/home/glenn/.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 margins
#border_margin 0

# border width
border_width 0

# Default color and also border color, grey90 == #e5e5e5
#default_color grey90
#default_shade_color black
#default_outline_color DarkGrey

# 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

# stuff after 'TEXT' will be formatted on screen
TEXT
${color #dc0e0e}System ${hr 2}$color
${color}${pre_exec whoami} @ $nodename: $sysname, $kernel on $machine
${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 #00ff00}${time %I:%M:%S}${time %p} ${time %Z}
${color white}Processes:${color green} $processes ${color white}Running:${color green} $running_processes ${color white}
${color #dc0e0e}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 #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 #00ff00}${execi 300 sudo ~/.conky/system/get/ip.sh}
 IP: ${color green}${addr eth0}  Gateway: ${color green}${gw_ip eth0}
 Down:${color green} ${downspeed eth0} k/s${color} ${alignr}Up:${color green}    ${upspeed eth0} k/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} 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} 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}Squid ${hr 2}$color
${color white}Down: ${color green}${downspeed eth1} k/s ${alignr}${color white}Up:${color green} ${upspeed eth1} k/s
#${color #DFDFDF}${downspeedgraph eth1 25,140 FF8200 ff0000} ${alignr}${upspeedgraph eth1 25,140 FF0000 FF9900}$color
${color white}Total: ${color green}${totaldown eth1} ${alignr}${color white}Total:${color green} ${totalup eth1}
${color white}Inbound:${color green} ${tcp_portmon 1 32767 count}
${color white}Outbound:${color green} ${tcp_portmon 32768
61000 count}${alignr}${color white}Total:${color green} ${tcp_portmon 1 65535 count}
${color #dc0e0e}Internal lo ${hr 2}$color
${color white}Down: ${color green}${downspeed lo} k/s ${alignr}${color white}Up:${color green} ${upspeed lo} k/s
${color #DFDFDF}${downspeedgraph lo 25,140 FF8200 ff0000} ${alignr}${upspeedgraph lo
25,140 FF0000 FF9900}$color
${color white}Total: ${color green}${totaldown lo} ${alignr}${color white}Total:${color green} ${totalup lo}
${color white}Inbound:${color green} ${tcp_portmon 1 32767 count}
${color white}Outbound:${color green} ${tcp_portmon 32768
61000 count}${alignr}${color white}Total:${color green} ${tcp_portmon 1 65535 count}
${color #dc0e0e}Top ${hr 1}$color
${color}Name              PID     CPU%   MEM%
${color #ddaa00} ${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}Mem usage
${color #ddaa00} ${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 orange}News headlines${hr 2}:${color}
${color #7f8ed3}${execi 300 sudo /home/glenn/.conky/system/conky-rss.sh http://rss.slashdot.org/Slashdot/slashdot 5 2}
/home/glenn/.conky/system/conky-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
/home/glenn/.conky/system/get/ip.sh
Code:
#!/bin/bash
cd /home/glenn/.conky/system/get
sudo wget -q -O - checkip.dyndns.org | sed 's/^.*Address: \([^<]\{1,\}\)<.*/\1/'
sudo rm index.html
Surf conky
/home/glenn/.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 sudo 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}
/home/glenn/.conky/surf/get/wget_seabreeze
Code:
#!/bin/bash
cd /home/glenn/.conky/surf/get
sudo 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)
sudo wget -O ./.seabreeze.png $i
I start the conky's by calling this ...~/.startconky.sh

sh .startconky.sh
Code:
#!/bin/bash
sleep 3 &&
conky -d -c /home/glenn/.conky/system/conky.conf &
sleep 3 &&
conky -d -c /home/glenn/.conky/surf/conky.conf &
exit
Thank you for your help.

Regards Glenn ;-)
Attached Images
File Type: png 2conkys-sml.png (185.1 KB, 14 views)
File Type: jpg conkysFS-sml.jpg (42.8 KB, 3 views)

Last edited by GlennsPref; 07-18-2013 at 09:49 PM.
 
Old 07-18-2013, 11:53 PM   #72
stinkeye
LQ Newbie
 
Registered: Jul 2013
Location: Woop Woop
Distribution: Ubuntu 13.04
Posts: 11

Rep: Reputation: 2
Hi GlennsPref,
Looking at your conky, just wondering why your using sudo on these lines...
Code:
#80 ${pre_exec sudo dmidecode --type baseboard | grep 'Product' | cut -d' ' -f3-} by ${pre_exec sudo dmidecode --type baseboard | grep 'Manufacturer' | cut -d' ' -f2-}
As this info will probably never change I would just hardcode the results of those dmidecode commands in the conky.
Make a note in your conky of the dmidecode commands used to get the baseboard info.
You could change permissions to not require sudo...
Code:
sudo chmod u+s /usr/sbin/dmidecode
If you look at man dmidecode you can also do a sudo dump (--dump-bin FILE)
and then access the info without sudo (--from-dump FILE)



Code:
#107 ${color #00ff00}${execi 300 sudo ~/.conky/system/get/ip.sh}
This line to show your public IP address unnecessarily uses sudo to call a script that also uses an unneeded sudo then tries to remove a non-existent file...???
Code:
#!/bin/bash
cd /home/glen/conky/GlennsPref/system/get
sudo wget -q -O - checkip.dyndns.org | sed 's/^.*Address: \([^<]\{1,\}\)<.*/\1/'
sudo rm index.html
The line can be replaced with this for your public IP address in conky...
Code:
${color 00ff00}${execi 3600 curl ifconfig.me}


Code:
#148 ${color #7f8ed3}${execi 300 sudo /home/glenn/.conky/system/conky-rss.sh http://rss.slashdot.org/Slashdot/slashdot 5 2}
Your calling a script in your home folder which should be owned by you. No sudo needed.

EDIT:
Also just noticed you added sudo commands to the surf forecast conkyrc and wget_seabreeze script I posted.
???

Last edited by stinkeye; 07-19-2013 at 07:36 PM.
 
Old 07-20-2013, 08:41 AM   #73
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, the sudo commands are just part of my systems permissions debarcle, atm.

Both conkys work with any-out refference to sudo.

Sorry (ab)out that. Glenn

and thanks heaps for the other tips. I don't normally require sudo.

<edit>
Seems I had used a switch twice in my zshrc, and it was really confusing to sort out, but...

I remember my surprise when I decided to check if they ran under bash, It's working now.
</edit>

Last edited by GlennsPref; 07-24-2013 at 05:22 AM. Reason: thanks heaps for the other tips & edit
 
Old 07-24-2013, 04:17 AM   #74
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:
This line to show your public IP address unnecessarily uses sudo to call a script that also uses an unneeded sudo then tries to remove a non-existent file...???
Code:

#!/bin/bash
cd /home/glen/conky/GlennsPref/system/get
sudo wget -q -O - checkip.dyndns.org | sed 's/^.*Address: \([^<]\{1,\}\)<.*/\1/'
sudo rm index.html

The line can be replaced with this for your public IP address in conky...
Code:

${color 00ff00}${execi 3600 curl ifconfig.me}

Thanks for the ifconfig.me tip, ...I think I'll use that.(kiss)

The missing file to be deleted... Can you tell me how you know that? (I got it, the address is wrong!) I tried to (at least) segregate the scripts away from dumping stuff in my $USER base folder.

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

Last edited by GlennsPref; 07-24-2013 at 05:25 AM. Reason: edit in code tag
 
Old 07-24-2013, 10:46 AM   #75
stinkeye
LQ Newbie
 
Registered: Jul 2013
Location: Woop Woop
Distribution: Ubuntu 13.04
Posts: 11

Rep: Reputation: 2
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
If the command...
Code:
tail -n3 /var/log/messages | fold -w50
gives you output in the terminal,
I can't see why the conky code doesn't work.

Your command works for me in a conky when used with a test file.
May just need a killall conky and a restart if your editing while conky is running.
Could also add this setting to your conkyrc above "TEXT" (default is 256 bytes)
Code:
text_buffer_size 1024
Also, if you want to break at spaces with fold, use the -s option...ie fold -sw50

Last edited by stinkeye; 07-24-2013 at 11:10 AM.
 
  


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 02:52 PM.

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