LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop > Linux - Member Desktop Screenshots
User Name
Password
Linux - Member Desktop 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-10-2013, 07:16 AM   #46
Sector11
Member
 
Registered: Feb 2010
Distribution: BunsenLabs (Debian Stable)
Posts: 132

Rep: Reputation: Disabled

Quote:
Originally Posted by GlennsPref View Post
Update.

I now have most of the details and how to get them sorted.

Next is the Surf report, Brisbane area +-500Km, Australia, which I believe I can do standing on the shoulders of others. :-)
But the surf report will probably need to be in another conky, due to space requirements, atm.

/etc/conky/conky.conf

{snip code}

Please see attached png file

Thanks heaps for your tips and other help, ie being on hand!. Thanks heaps!

Regards Glenn
No problem Glenn, glad to help.

At a loss as to why you are using /etc/conky/conky.conf

That is the "default" conky that comes when you install conky. If you "copy" that to ~/.conkyrc then it's "still" a simple
Code:
conky
to start it. In fact the doc's recommend that.

But if your are going to have multiple conkys best to put them in a folder, ie:
Code:
~/conky/system-conky
~/conky/surf-conky
No need for rsync or permissions, they are in your /home and belong to you
Simple bash start script:
Code:
#!/bin/bash

# sleep 5 &&
conky -c ~/conky/system-conky &
conky -c ~/conky/surf-conky
Or: Start/Stop Conky, a bit more complicated but it starts/stops and restarts conkys.


BTW, your code has:
Code:
# Minimum size of text area
minimum_size 230
maximum_width 320
minimum_size has a height value as well, from one of mine:
Code:
minimum_size 270 920 ## width, height
maximum_width 270 ## width
Now the good/bad news ... I can't remember who it is that has a "script" for surfing conditions for Brisbane, but it's in one of forums I hung out in. I'll put out a call for help and get it for you if I can. I believe it's in conjunction with a weather script as well, but not sure.
 
Old 07-10-2013, 06:11 PM   #47
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Quote:
I can't remember who it is that has a "script" for surfing conditions for Brisbane,
The template I have is from a person in

Perth W.A. I figured I'll adapt that one,

Oh, from here...
http://ubuntuforums.org/showthread.p...4#post12705724

The window size(ing) is not a problem now. Thank you.

I have copied the conky.conf to ~/.conkyrc.
I will creat a .folder for the scripts. ~/.conky/conkyrc
No sweat!
Cheers
 
Old 07-10-2013, 06:27 PM   #48
Sector11
Member
 
Registered: Feb 2010
Distribution: BunsenLabs (Debian Stable)
Posts: 132

Rep: Reputation: Disabled
Quote:
Originally Posted by GlennsPref View Post
The template I have is from a person in

Perth W.A. I figured I'll adapt that one,

Oh, from here...
http://ubuntuforums.org/showthread.p...4#post12705724

The window size(ing) is not a problem now. Thank you.

I have copied the conky.conf to ~/.conkyrc.
I will creat a .folder for the scripts. ~/.conky/conkyrc
No sweat!
Cheers
CLICK! Yup, that who I was thinking of ... but I couldn't remember. Adapt ... yes, a Linux thing.

Good luck ... maybe a screenshot one day.
 
Old 07-11-2013, 09:24 AM   #49
Sector11
Member
 
Registered: Feb 2010
Distribution: BunsenLabs (Debian Stable)
Posts: 132

Rep: Reputation: Disabled
Quote:
Originally Posted by GlennsPref View Post
The template I have is from a person in

Perth W.A. I figured I'll adapt that one,

Oh, from here...
http://ubuntuforums.org/showthread.p...4#post12705724

The window size(ing) is not a problem now. Thank you.

I have copied the conky.conf to ~/.conkyrc.
I will creat a .folder for the scripts. ~/.conky/conkyrc
No sweat!
Cheers

Would you like a working version for Brisbane? From the same person, easysid. Wonder what he means by this: Budgie smugglers on and ready for action....
 
Old 07-11-2013, 10:39 PM   #50
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Smile

Hi, lol!
Quote:
Wonder what he means by this: Budgie smugglers on and ready for action....
I guess this is an Aussy thing..... Maybe "ready for anything regarding surfing"

Jockey type (bikini bottom) underwear/ swimwear, looks like you are trying to smuggle a Budgie in your pants.

It's a sporting annoyance (makes you try harder) (at a loss for words atm) "derogatory"

aka SLEDGING in cricket, Showing a critical or disrespectful attitude. "derogative - degrading - humiliating - pejorative"

Usually from other surf/non-surf guys in Board Shorts, perhaps too timid to show how much they are "packing".

Back on topic....
I have great news, I got the surf report to work and I'm pretty happy with the data for the system conky.

system
/home/glenn/.conky/system/conky.conf
Code:
background yes

use_xft yes
xftfont Bitstream Vera Sans Mono-9

# Text alpha when using Xft
xftalpha 0.65

mail_spool $MAIL

# Update interval in seconds
update_interval 1.0

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

# 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 2

# 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
#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 white}$nodename $sysname $kernel on $machine
Uptime:$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:${exec sensors | grep -n 'temp1' | sed -n 1p | awk -F'+' '{print $2}' | awk -F' ' '{print $1}'}
${color white}CPU Usage:${color green}${cpu cpu0}% ${color #DFDFDF}${cpubar}
${color #DFDFDF}${cpugraph} ${color #DFDFDF}
${color #dc0e0e}Graphics ${hr 2}$color
${color white}GPU Freq:${execi 5 nvidia-settings -t -q GPUCurrentProcessorClockFreqs | sed -n 2p}MHz
${color white}GPU Mem Used:${execi 5 nvidia-settings -t -q UsedDedicatedGPUMemory}Mb
${color white}GPU Temp:${execi 5 nvidia-settings -t -q GPUCoreTemp | sed -n 2p}°C
${color #dc0e0e}Cooling ${hr 1}$color
${color cyan}Noctua NH-U12P-se2:${exec sensors | grep -n 'fan1' | awk -F'+' '{print $1}' | awk -F' ' '{print $2}'}rpm
${color cyan}Top Case Fan:${exec sensors | grep -n 'fan2' | awk -F'+' '{print $1}' | awk -F' ' '{print $2}'}rpm
${color cyan}Rear Case Fan:${exec sensors | grep -n 'fan3' | awk -F'+' '{print $1}' | awk -F' ' '{print $2}'}rpm
${color cyan}Front Case Fan:${exec sensors | grep -n 'fan4' | awk -F'+' '{print $1}' | awk -F' ' '{print $2}'}rpm
${color cyan}GPU Fan:${execi 5 nvidia-settings -t -q GPUCurrentFanSpeed}%
${color #dc0e0e}Hdd ${hr 2}$color
${color white}used:${color green} ${fs_used_perc /}% ($fs_used/$fs_size) $alignr ${color white}
${color #DFDFDF}${fs_bar 6 /}$color
${color white}disk IO:${color green} $diskio
${color #dc0e0e}Memory ${hr 2}$color
${color white}RAM used:${color green} $memperc% ($mem/$memmax)
${color #DFDFDF}${membar 6}$color
${color #DFDFDF}${memgraph 25,320}$color
${color white}swap used:${color green} $swapperc% ($swap/$swapmax)
${color #DFDFDF}${swapbar 6}$color
${color #dc0e0e}Networking ${hr 2}$color
${color #dc0e0e}Internet ${hr 2}$color
${color white}Down: ${color green}${downspeed eth0} k/s ${alignr}${color white}Up:${color green} ${upspeed eth0} k/s
${color #DFDFDF}${downspeedgraph eth0 25,140 FF8200 ff0000} ${alignr}${upspeedgraph eth0
25,140 FF0000 FF9900}$color
${color white}Total: ${color green}${totaldown eth0} ${alignr}${color white}Total:${color green} ${totalup eth0}
${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}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}
surf
/home/glenn/.conky/surf/conky.conf
Code:
background no
update_interval 1
total_run_times 0

use_xft yes
xftfont Droid Sans:size=9
xftalpha 1.0
own_window yes
own_window_type normal
own_window_transparent no
own_window_colour ffffff
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

alignment tl
gap_y 60
gap_x 20

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}
${voffset 230}${font size=12}Surf Report: ${execi 3600 cat ~/.conky/surf/surf.txt | grep -A 1 "Effective from:" | tail -n1}${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}
${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
wget -O .f1 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
I have a few screen shots...

What I want to do now is get transparency for the system conky, and move the surf conky to my right-hand monitor top-left.

I'm a leftover from win98se, I like some icons close by.

Thank you for your support so far, Regards Glenn
Attached Thumbnails
Click image for larger version

Name:	conky-wip5-surf.png
Views:	61
Size:	38.7 KB
ID:	12927   Click image for larger version

Name:	conky-wip6-system.png
Views:	75
Size:	52.1 KB
ID:	12928   Click image for larger version

Name:	conky-wip4-fullscreen-sml.png
Views:	73
Size:	235.0 KB
ID:	12930  

Last edited by GlennsPref; 07-11-2013 at 10:49 PM. Reason: ready for anything regarding surfing
 
Old 07-12-2013, 01:48 AM   #51
stinkeye
LQ Newbie
 
Registered: Jul 2013
Location: Woop Woop
Distribution: Ubuntu 13.04
Posts: 11

Rep: Reputation: 2
@ GlennsPref
Hi,

From Glen to Glenn, glad you could use it.

I only toggle the surf report image on/off because I don't like the white background of the image.

I use this script to toggle a specific conky on/off
It will work with any conky by using as the command /full/path_to/toggle-any-conky /full/path/to/conky-config


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

## click to start, click to stop

### exec line in .desktop file 
# /full/path_to/toggle-any-conky /path/to/conky-config
# "/path/to/conky-config" becomes $1


if pgrep -f "conky -c $1"; then
	pkill -xf "conky -c $1"

else
	conky -c $1
	
fi
Eg
For my 7 day surf conky this command will toggle off/on...
Code:
/home/glen/conky/toggle-any-conky /home/glen/conky/configs/seabreeze-conkyrc
Attached Thumbnails
Click image for larger version

Name:	038.jpg
Views:	71
Size:	207.1 KB
ID:	12931  

Last edited by stinkeye; 07-12-2013 at 02:06 AM.
 
Old 07-12-2013, 04:16 AM   #52
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
I nearly joined your ubuntu thread this morning. lol.

Hey, you're a first timer, Welcome To LQ!

Yeah, I had to make a few changes, just a dot here and an address there.

Thank you very much. I've been trying for a "surf like report", I saw yours and although I tried to hack it to suit, I missed it.

I'll put it down to experience, I couldn't find the page on that site.

But it's Great!

And thanks for the other tips here, I'll go back and read them now.

Thank you, Glenn

<edit>With your info, I might look at a timer so it comes on frequently, but disaperars after a 10 secs , maybe. </edit>

Last edited by GlennsPref; 07-12-2013 at 04:23 AM. Reason: thanks for the other tips
 
Old 07-12-2013, 05:28 AM   #53
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Ahh! Got it!
that is,

..surf/conky.conf
change...
Code:
alignment tl
gap_y 10
gap_x 1936
Now for the launching of such conky's...

I can start them fine individually, but I'm a bit confused as to what to type for a start up...After the advise was a bit out-there(?)bash script would not complete.

And I have to get the transparency working for the simple, system conky window. (been reading a lot, the arch wiki seems the most Human readable, afaik.)

Still working, got a new srceen shot of the system conky...

Cheers, Glenn
Attached Thumbnails
Click image for larger version

Name:	conkyX2-screen2.jpg
Views:	52
Size:	158.6 KB
ID:	12934  

Last edited by GlennsPref; 07-12-2013 at 07:48 PM.
 
Old 07-14-2013, 09:42 PM   #54
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Smile

I got the transparency on both by appending this line to the conky.conf's...

Notice it is dependant on the full address to the image file.
Code:
${texeci 1000 feh --bg-scale "/home/glenn/Pictures/M104_ngc4594_sombrero_galaxy_hi-res.jpg"}
I having a bit of trouble getting the conkys to start at boot, this does not seem to work (just tried uppercase c, same error)

<edit>The content of ~/.conkyrc
Code:
conky -c /home/glenn/.conky/system/conky.conf &
conky -c /home/glenn/.conky/surf/conky.conf &
</edit>
Code:
Q: Can Conky use 2 different configurations at once?

A: Sure, just start Conky using the -c flag, like so:

$ conky -c config1
...
$ conky -c config2
...
console error message...
Code:
glenn@GamesBox:~ » conky                                                                                                               (15-07 12:32)
Conky: /home/glenn/.conkyrc: 1: no such configuration: 'Conky'
Conky: /home/glenn/.conkyrc: 2: no such configuration: 'Conky'
Conky: missing text block in configuration; exiting
***** Imlib2 Developer Warning ***** :
        This program is calling the Imlib call:

        imlib_context_free();

        With the parameter:

        context

        being NULL. Please fix your program.
Any other ideas?
Attached Thumbnails
Click image for larger version

Name:	conkyX2-screen3-sml.png
Views:	56
Size:	208.5 KB
ID:	12960  

Last edited by GlennsPref; 07-14-2013 at 09:47 PM. Reason: The content of ~/.conkyrc
 
Old 07-14-2013, 10:42 PM   #55
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 got the transparency on both by appending this line to the conky.conf's...

Notice it is dependant on the full address to the image file.
Code:
${texeci 1000 feh --bg-scale "/home/glenn/Pictures/M104_ngc4594_sombrero_galaxy_hi-res.jpg"}
I having a bit of trouble getting the conkys to start at boot, this does not seem to work (just tried uppercase c, same error)

<edit>The content of ~/.conkyrc
Code:
conky -c /home/glenn/.conky/system/conky.conf &
conky -c /home/glenn/.conky/surf/conky.conf &
</edit>
Code:
Q: Can Conky use 2 different configurations at once?

A: Sure, just start Conky using the -c flag, like so:

$ conky -c config1
...
$ conky -c config2
...
console error message...
Code:
glenn@GamesBox:~ » conky                                                                                                               (15-07 12:32)
Conky: /home/glenn/.conkyrc: 1: no such configuration: 'Conky'
Conky: /home/glenn/.conkyrc: 2: no such configuration: 'Conky'
Conky: missing text block in configuration; exiting
***** Imlib2 Developer Warning ***** :
        This program is calling the Imlib call:

        imlib_context_free();

        With the parameter:

        context

        being NULL. Please fix your program.
Any other ideas?
I think your getting things a bit mixed up here.

The ~/.conkyrc file is the config conky uses when running "conky" in terminal.
If running just one conky you would place your config here.
You have replaced this config with commands to start two separate conkys.


If you want to start 2 or more conkys you need to specify the config path in the start command.
eg for you, running each of these commands in terminal should start your conkys.
Test to make sure.
Code:
conky -c /home/glenn/.conky/system/conky.conf
conky -c /home/glenn/.conky/surf/conky.conf
So now instead of using "conky" as the start command, we use these 2 commands in a bash script to start the 2 conkys.
From Sector11's previous post...
Create a start script...
Code:
gedit ~/.start-conky
Copy paste and save the following...
Code:
#!/bin/bash

# sleep 5 &&
conky -c /home/glenn/.conky/system/conky.conf &
conky -c /home/glenn/.conky/surf/conky.conf
Make the ~/.start-conky script executable...
Code:
chmod +x ~/.start-conky
Test the script in terminal...
Code:
~/.start-conky

If it works, use the script for your startup command.

Last edited by stinkeye; 07-14-2013 at 11:26 PM.
 
Old 07-14-2013, 10:58 PM   #56
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Yes I saw that post, Thanks.

I did the same kinda thing, but was under the impression, perhaps mistakenly, that

typing conky on the cli would re/start conky. It does not work as expected.

All of the commands worked by them selves, as you mentioned,
conky -c /home/glenn/.conky/system/conky.conf
conky -c /home/glenn/.conky/surf/conky.conf

So, here is another nice hack, that kinda works.

startconky.sh script in /home/glenn/.kde4/Autostart/

Looks broken
 
Old 07-14-2013, 11:10 PM   #57
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
Yes I saw that post, Thanks.

I did the same kinda thing, but was under the impression, perhaps mistakenly, that

typing conky on the cli would re/start conky. It does not work as expected.

All of the commands worked by them selves, as you mentioned,
conky -c /home/glenn/.conky/system/conky.conf
conky -c /home/glenn/.conky/surf/conky.conf

So, here is another nice hack, that kinda works.

startconky.sh script in /home/glenn/.kde4/Autostart/

Looks broken
How does it look broken?

If the commands work, run the script to see if it works.
May pay to run this first to kill any conky instances.
Code:
killall conky
Not familiar with kde so can't advise on adding to startups.

Last edited by stinkeye; 07-14-2013 at 11:12 PM.
 
Old 07-15-2013, 05:59 PM   #58
Sector11
Member
 
Registered: Feb 2010
Distribution: BunsenLabs (Debian Stable)
Posts: 132

Rep: Reputation: Disabled
Something gone wrong ... I'm not getting notified of new posts

@ stinkeye ... hey friend welcome to LQ ... I've been here forever, but mostly right here in the conky-ness thread where post don't count.

You're in good hands GlennsPref, stinkeye is a conky

Now why I'm here:

I'm in the middle of a transition ... changes because ... well it's time ... I can ... why not!

tint2 is gone. I'm using "mouse wheel click" more now anyway and [Alt][F2] so a cleaner desktop. Until I mess it up with conkys.

Switched to an old OpenBox theme I did a while back as well - you and see the style in the bottom left of the screenshot with a mouse-wheel click - works just as well as tint2.

First conky to get revamped was v9000 weather... I used the 's11template.lua' as a base and revamped it for this:



Fonts needed: Monofur, Zekton & WW Digital

deep_skyblue_1.png & LightSlateGrey_1.png are just 1x1 pixel images created in GIMP for use as lines in conky, make them or get mine plus others.

s11.v9.corner.template.lua and the v9000 LUA script
Code:
--[[
 The latest script is a lua only weather script. aka: v9000
 http://crunchbanglinux.org/forums/topic/16100/weather-in-conky/

 the file:
http://dl.dropbox.com/u/19008369/v9000.tar.gz

 mrppeachys LUA Tutorial
 http://crunchbanglinux.org/forums/topic/17246/how-to-using-lua-scripts-in-conky/
]]
_G.weather_script = function()--#### DO NOT EDIT THIS LINE ##############
--these tables hold the coordinates for each repeat do not edit #########
top_left_x_coordinate={}--###############################################
top_left_y_coordinate={}--###############################################
--#######################################################################
--SET DEFAULTS ##########################################################
--set defaults do not localise these defaults if you use a seperate display script
-- default_font="CorporateMonoExtraBold"--font must be in quotes
default_font="Monofur"--font must be in quotes
default_font_size=12
default_color=0xffffff--white
default_alpha=1--fully opaque
default_image_width=50
default_image_height=50
-- ## New Options ###
default_face="bold"
-- "normal" for normal/normal
-- "bold" for normal/bold
-- "italic" for italic/normal
-- "bolditalic" for italic/bold
-- END OF DEFAULTS ######################################################
--START OF WEATHER CODE -- START OF WEATHER CODE -- START OF WEATHER CODE
out({c=0x778899,a=1,x=10,y=15,txt=now["date"].." "..now["month_short"].." "..now["year"].." | @ "..now["time"]})
image({x=20,y=20,h=50,w=50,file=now["weather_icon"]}) image({x=130,y=260,h=50,w=50,file=moon_icon[1]}) --image({x=20,y=20,h=50,w=50,file="/media/5/Conky/images/red+x.png"})
-- Temp / FeelsLike & CONDITIONS TEXT
out({c=0x00BFFF,a=1,f="WW Digital",fs=25,face="normal",x=80,y=60,txt=now["temp"].."°"})
--out({c=0x00BFFF,a=1,f="WW Digital",fs=25,face="normal",x=80,y=60,txt="102".."°"})
out({c=0x00FFFF,a=1,f="WW Digital",fs=25,face="normal",x=140,y=60,txt=now["feels_like"].."°"})
--out({c=0x00FFFF,a=1,f="WW Digital",fs=25,face="normal",x=140,y=60,txt="-22".."°"})
out({c=0x778899,a=1,x=81,y=72,txt="Temp    WC·HI"})

out({c=0x00BFFF,a=1,f="Zekton",fs=18,x=10,y=94,txt=now["conditions"]})

-- data titles
--    data output
datay=110   -- y=datay or
datayy=15   -- y=datay+(datayy*1) use 1 or more

out({c=0xDCDCDC,a=1,x=10,y=datay,txt="Today's High:     Low:"})
   out({c=0xFF8C00,a=1,x=105,y=datay,txt=high_temp[1].."°"})
   out({c=0x00BFFF,a=1,x=170,y=datay,txt=low_temp[1].."°"})
out({c=0xDCDCDC,a=1,x=10,y=datay+(datayy*1),txt="Wind Chill:"})
   out({c=0x00BFFF,a=1,x=90,y=datay+(datayy*1),txt=now["wind_chill"].."°"})
out({c=0xDCDCDC,a=1,x=10,y=datay+(datayy*2),txt="Heat Index:"})
   out({c=0xFF8C00,a=1,x=90,y=datay+(datayy*2),txt=now["heat_index"].."°"})
out({c=0xDCDCDC,a=1,x=10,y=datay+(datayy*3),txt="Wind:"})
   out({c=0x00BFFF,a=1,x=60,y=datay+(datayy*3),txt=now["wind_km"]})
   out({c=0x00BFFF,a=1,x=110,y=datay+(datayy*3),txt=now["wind_nesw"]})
   out({c=0xDCDCDC,a=1,x=140,y=datay+(datayy*3),txt="@"})
   out({c=0x00BFFF,a=1,x=160,y=datay+(datayy*3),txt=now["wind_deg"]})
out({c=0xDCDCDC,a=1,x=10,y=datay+(datayy*4),txt="Hum:"})
   out({c=0x00BFFF,a=1,x=60,y=datay+(datayy*4),txt=now["humidity"].."%"})
out({c=0xDCDCDC,a=1,x=110,y=datay+(datayy*4),txt="DP:"})
   out({c=0x00BFFF,a=1,x=160,y=datay+(datayy*4),txt=now["dew_point"].."°"})
out({c=0xDCDCDC,a=1,x=10,y=datay+(datayy*5),txt="Bar:"})
   out({c=0x00BFFF,a=1,x=60,y=datay+(datayy*5),txt=now["pressure_mb"]})
out({c=0xDCDCDC,a=1,x=110,y=datay+(datayy*5),txt="Vis:"})
   out({c=0x00BFFF,a=1,x=160,y=datay+(datayy*5),txt=now["visibility"]})
out({c=0xDCDCDC,a=1,x=10,y=datay+(datayy*6),txt="Precip:"})
   out({c=0x00BFFF,a=1,x=60,y=datay+(datayy*6),txt=precipitation[1].."%"})
out({c=0xDCDCDC,a=1,x=110,y=datay+(datayy*6),txt="Cloud:"})
   out({c=0x00BFFF,a=1,x=160,y=datay+(datayy*6),txt=cloud_cover[1].."%"})
out({c=0xDCDCDC,a=1,x=10,y=datay+(datayy*7),txt="Ceil:"})
   out({c=0x00BFFF,a=1,x=60,y=datay+(datayy*7),txt=now["ceiling"]})
out({c=0xDCDCDC,a=1,x=10,y=datay+(datayy*8),txt="UV:"})
   out({c=0x00BFFF,a=1,x=60,y=datay+(datayy*8),txt=uv_index_num[1]})
   out({c=0x00BFFF,a=1,x=110,y=datay+(datayy*8),txt=uv_index_txt[1]})
out({c=0xDCDCDC,a=1,x=10,y=datay+(datayy*9),txt="Sun:"})
   out({c=0xDCDCDC,a=1,x=60,y=datay+(datayy*9),txt=sun_rise_lc[1]})
   out({c=0x00BFFF,a=1,x=120,y=datay+(datayy*9),txt=sun_set_lc[1]})
out({c=0xDCDCDC,a=1,x=10,y=datay+(datayy*11),txt="Moon:"})
   out({c=0xDCDCDC,a=1,x=10,y=datay+(datayy*12),txt=moon_rise_lc[1]})
   out({c=0x00BFFF,a=1,x=70,y=datay+(datayy*12),txt=moon_set_lc[1]})
out({c=0xDCDCDC,a=1,x=10,y=datay+(datayy*13),txt="Phase:"})
   out({c=0x00BFFF,a=1,x=55,y=datay+(datayy*13),txt=moon_phase[1]})

-- line
image({x=205,y=5,w=1,h=260,file="/media/5/Conky/images/LightSlateGrey_1.png"})
-- 3 hour output
out({c=0x00BFFF,a=1,x=220,y=15,txt="Next 3"})
out({c=0x00BFFF,a=1,x=220,y=30,txt="Hours"})
-- 1st hour
out({c=0x778899,x=220,y=50,txt=now["fc_hour1_time"].."  "..now["fc_hour1_ampm"]})
image({w=30,h=30,x=223,y=55,file=now["fc_hour1_wicon"]}) -- image({w=30,h=30,x=223,y=55,file="/media/5/Conky/images/red+x.png"})
out({x=228,y=100,txt=now["fc_hour1_temp"] .."°"})
-- 2nd hour
out({c=0x778899,x=220,y=datay+(datayy*1),txt=now["fc_hour2_time"].."  "..now["fc_hour2_ampm"]})
image({w=30,h=30,x=223,y=130,file=now["fc_hour2_wicon"]}) --image({w=30,h=30,x=223,y=130,file="/media/5/Conky/images/red+x.png"})
out({x=228,y=180,txt=now["fc_hour2_temp"] .."°"})
-- 3rd hour
out({c=0x778899,x=220,y=210,txt=now["fc_hour3_time"].."  "..now["fc_hour3_ampm"]})
image({w=30,h=30,x=223,y=215,file=now["fc_hour3_wicon"]}) -- image({w=30,h=30,x=223,y=215,file="/media/5/Conky/images/red+x.png"})
out({x=228,y=datay+(datayy*10),txt=now["fc_hour3_temp"] .."°"})
-- line
image({x=275,y=5,w=1,h=300,file="/media/5/Conky/images/deep_skyblue_1.png"})

--start or weather forecast table section
--set start forecast day
start_day=1
--set total forecast days you want to display
number_of_days=10
topy=15
topyy=135 -- topy+(topyy*1)
topx=285
topxx=430
-- set coordinates for top lef corners for each repeat
-- x = l|r  y = u|d
top_left_x_coordinate[1],top_left_y_coordinate[1]        =topx,topy
   top_left_x_coordinate[2],top_left_y_coordinate[2]     =topx,topy+60
top_left_x_coordinate[3],top_left_y_coordinate[3]        =topx,topy+(60*2)
   top_left_x_coordinate[4],top_left_y_coordinate[4]     =topx,topy+(60*3)
top_left_x_coordinate[5],top_left_y_coordinate[5]        =topx,topy+(60*4)

-- line
image({x=420,y=5,w=1,h=300,file="/media/5/Conky/images/deep_skyblue_1.png"})

top_left_x_coordinate[6],top_left_y_coordinate[6]        =topxx,topy
   top_left_x_coordinate[7],top_left_y_coordinate[7]     =topxx,topy+60
top_left_x_coordinate[8],top_left_y_coordinate[8]        =topxx,topy+(60*2)
   top_left_x_coordinate[9],top_left_y_coordinate[9]     =topxx,topy+(60*3)
top_left_x_coordinate[10],top_left_y_coordinate[10]        =topxx,topy+(60*4)

--########################################################################################
for i=start_day,number_of_days-(start_day-1) do --start of day repeat, do not edit #######
tlx=top_left_x_coordinate[i] --sets top left x position for each repeat ##################
tly=top_left_y_coordinate[i] --sets top left y position for each repeat ##################
--########################################################################################
out({c=0x778899,a=1,x=tlx,y=tly,txt=forecast_day_short[i].."  "..forecast_date[i].."  "..forecast_month_short[i]})
image({x=tlx,y=tly+0,h=30,w=30,file=weather_icon[i]})
 image({x=tlx+105,y=tly+5,h=20,w=20,file=moon_icon[i]}) --image({x=tlx+60,y=tly+5,h=20,w=20,file="/media/5/Conky/images/red+x.png"})
out({c=0xFF8C00,a=1,x=tlx+35,y=tly+13,txt=high_temp[i].."°"})
	out({c=0xDCDCDC,a=1,x=tlx+65,y=tly+13,txt="P "..precipitation[i].."%"})
out({c=0x00BFFF,a=1,x=tlx+35,y=tly+28,txt=low_temp[i].."°"})
	out({c=0xDCDCDC,a=1,x=tlx+65,y=tly+28,txt="H "..humidity[i].."%"})
out({c=0x00BFFF,a=1,x=tlx,y=tly+40,txt=conditions_short[i]})


--   out({c=0xDCDCDC,a=1,x=tlx+50,y=tly+52,txt="UV "..uv_index_num[i]})
--out({c=0xDCDCDC,a=1,x=tlx,y=tly+95,txt="S "..sun_rise_lc[i]})
--   out({c=0x00BFFF,a=1,x=tlx+73,y=tly+95,txt=sun_set_lc[i]})
--out({c=0xDCDCDC,a=1,x=tlx,y=tly+110,txt="M "..moon_rise_lc[i]})
--   out({c=0x00BFFF,a=1,x=tlx+73,y=tly+110,txt=moon_set_lc[i]})
--########################################################################################
end--of forecast repeat section ##########################################################
--########################################################################################
--END OF WEATHER CODE ----END OF WEATHER CODE ----END OF WEATHER CODE ---
--#######################################################################
end--of weather_display function do not edit this line ##################
--#######################################################################
 
Old 07-15-2013, 07:21 PM   #59
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
What an excellent thread, onya Corp for starting it (even if it was ages ago).

Ok why I'm posting, I borrowed a Conky.conf posted in here and like it alot but would like to add the user that is logged in to it. I have added a line User:$alignr$user_names and it shows User (as in the title of the line) on conky but not the name of the actual user logged in. Is there another setting or something I need to add to get this to work?

See below for my borrowed conky.conf
Code:
# stuff after 'TEXT' will be formatted on screen
##TEXT

background yes
use_xft yes
xftfont Sans:size=8
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 250 250
maximum_width 200
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders yes
default_color white
#default_color FFFF00
#default_color C0C0C0
#default_color F5F5F5
#default_color FF69B4
#default_color black
#default_color grey
#default_color red
#default_color tan2
#default_color dimgrey
#default_color CCCC33
#default_color 800000
#default_color 99FF99
#default_color 99FFFF
default_shade_color black
default_outline_color white
alignment top_right
gap_x 12
gap_y 80
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no

TEXT
${font sans-serif:bold:size=10} $alignc Cobber Linux
${font sans-serif:bold:size=8} SYSTEM ${hr 2}
${font sans-serif:normal:size=8}$sysname $kernel $alignr $machine
Host:$alignr$nodename
User:$alignr$user_names
Time: ${time %a %d %b %l:%M:%S%p}
Uptime:$alignr$uptime
File System: $alignr${fs_type}
Laptop Temperature:  ${acpitemp}c
${font sans-serif:bold:size=8}PROCESSORS ${hr 2}
${font sans-serif:normal:size=8}${cpugraph cpu1}
CPU 1: ${cpu cpu1}% ${cpubar cpu1}
CPU 2: ${cpu cpu2}% ${cpubar cpu2}

${font sans-serif:bold:size=8}MEMORY ${hr 2}
${font sans-serif:normal:size=8}RAM $alignc $mem / $memmax $alignr $memperc%
$membar
${font sans-serif:bold:size=8}DISKS ${hr 2}
${font sans-serif:normal:size=8}/ $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_used_perc /}%
${fs_bar /}
${font sans-serif:normal:size=8}/home $alignc ${fs_used /home} / ${fs_size /home} $alignr ${fs_used_perc /home}%
${fs_bar /home}
SWAP $alignc ${swap} / ${swapmax} $alignr ${swapperc}%
${swapbar}
${font sans-serif:bold:size=8}TOP PROCESSES ${hr 2}
${font sans-serif:normal:size=8}${top_mem name 1}${alignr}${top mem 1} %
${top_mem name 2}${alignr}${top mem 2} %
$font${top_mem name 3}${alignr}${top mem 3} %
$font${top_mem name 4}${alignr}${top mem 4} %
$font${top_mem name 5}${alignr}${top mem 5} %

${font sans-serif:bold:size=8}NETWORK ${hr 2}
${color}link strength: ${color} ${wireless_link_bar 7,50 wlan0}
${font sans-serif:normal:size=8}IP address: $alignr ${addr wlan0}
ESSID: $alignr ${wireless_essid wlan0}
Connection quality: $alignr ${wireless_link_qual_perc wlan0}%
${downspeedgraph wlan0}
Download: ${downspeed wlan0}kb/s $alignr total: ${totaldown wlan0}
${upspeedgraph wlan0}
Upload: ${upspeed wlan0}kb/s $alignr total: ${totalup wlan0}
 
Old 07-15-2013, 08:54 PM   #60
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
What an excellent thread, onya Corp for starting it (even if it was ages ago).

Ok why I'm posting, I borrowed a Conky.conf posted in here and like it alot but would like to add the user that is logged in to it. I have added a line User:$alignr$user_names and it shows User (as in the title of the line) on conky but not the name of the actual user logged in. Is there another setting or something I need to add to get this to work?
Your config with $user_names works here on Ubuntu 13.04
What is your conky version.
Quote:
glen@Raring:~$ conky -v
Conky 1.9.0 compiled Thu May 24 15:31:18 UTC 2012 for Linux 2.6.24-31-server (x86_64)
Try opening a terminal as here it shows multiple user instances with terminals open.
Does the terminal command users work?
Quote:
glen@Raring:~$ users
glen glen
Also try with enclosed brackets in the config line and without the $alignr
eg
Code:
User: ${user_names}
Hi Sector11
Attached Thumbnails
Click image for larger version

Name:	041.jpg
Views:	93
Size:	63.1 KB
ID:	12973  

Last edited by stinkeye; 07-15-2013 at 09:38 PM.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop > Linux - Member Desktop Screenshots

All times are GMT -5. The time now is 08:26 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration