Re: Post your .conkyrc files w/ screenshots
Quote:
Originally Posted by
bra|10n
${alignr} or align to RHS is not as definitive or absolute as ${goto *}. In actual fact your code is telling conky to align to the right, and then move left 920! Hence in simple English, and notwithstanding the code-gibberish, ${goto} is far cleaner an instruction.
Yeah, I understand that, but using {goto} will align the text on the left, not the right. And I'm still not getting why, once it's right-aligned to a certain point, it doesn't jolly well stay there!
Oh well. I might have to find a compromise somehow.
Re: Post your .conkyrc files w/ screenshots
I think I may have found the problem; there was a stray ${font} command lurking in the top line. Apparently the ${alignr} command is dependent on font size, so that must have been messing with it somehow.
Edit: Yep, five minutes later, and everything's lined up like soldiers on parade. Although all that jiggering about somehow moved my album art 8 pixels to the left!
1 Attachment(s)
Re: Post your .conkyrc files w/ screenshots
Thought I might post this for those using unity to show how to use
Unity launcher quicklists to control and edit your conkys.
Save as Conky.desktop to ~/.local/share/applications
Code:
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=/home/glen/conky/toggleconky
Name=Conky
Icon=/home/glen/Pictures/letter-c.png
Comment=Toggle conky on/off
Actions=edit-demo;run-demo;edit-conkyrc
[Desktop Action edit-demo]
Name=Edit demo-conkyrc
Exec=gedit /home/glen/conky/configs/demo-conkyrc
OnlyShowIn=Unity;
[Desktop Action run-demo]
Name=Run demo-conkyrc
Exec=conky -c /home/glen/conky/configs/demo-conkyrc
OnlyShowIn=Unity;
[Desktop Action edit-conkyrc]
Name=Edit All Configs
Exec=gedit /home/glen/conky/configs/cal-conkyrc /home/glen/conky/configs/surf-conkyrc /home/glen/conky/configs/gmail-conkyrc /home/glen/conky/configs/timer-conkyrc
OnlyShowIn=Unity;
To edit for your setup and paths (must use full paths in the .desktop file, not the ~ symbol)...
Code:
gedit ~/.local/share/applications/Conky.desktop
Explanation
Quote:
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=/home/glen/conky/toggleconky #points to a toggleconky on/off script. Run with left or middle click.
Name=Conky
Icon=/home/glen/Pictures/letter-c.png #Find icon with google image search
Comment=Toggle conky on/off
Actions=edit-demo;run-demo;edit-conkyrc #Sets actions to use in the right click quicklist menu.
[Desktop Action edit-demo] #Use the same name as above
Name=Edit demo-conkyrc #Item name shown in quicklist...whatever you like.
Exec=gedit /home/glen/conky/configs/demo-conkyrc #Opens a specific config in gedit for pasting in configs for testing
OnlyShowIn=Unity;
[Desktop Action run-demo]
Name=Run demo-conkyrc
Exec=conky -c /home/glen/conky/configs/demo-conkyrc #Runs conky with test config
OnlyShowIn=Unity;
[Desktop Action edit-conkyrc]
Name=Edit All Configs
Exec=gedit /home/glen/conky/configs/cal-conkyrc /home/glen/conky/configs/surf-conkyrc /home/glen/conky/configs/gmail-conkyrc /home/glen/conky/configs/timer-conkyrc #As I run multiple configs, opens all in gedit
OnlyShowIn=Unity;
Sample toggleconky script
Code:
#!/bin/bash
# click to start, click to stop
# if pgrep conky; then pkill conky; else conky; fi
if pidof conky | grep [0-9] > /dev/null
then
exec killall conky
else
conky -c ~/conky/configs/timer-conkyrc &
conky -c ~/conky/configs/cal-conkyrc &
conky -c /home/glen/conky/configs/release.conkyrc &
fi
After editing, drag and drop ~/.local/share/applications/Conky.desktop
to the launcher.
Re: Post your .conkyrc files w/ screenshots
Quote:
Originally Posted by
Spike-X
Edit: Yep, five minutes later, and everything's lined up like soldiers on parade.
And then five minutes after that it all went to pieces again and I went to bed and cried myself to sleep.
Re: Post your .conkyrc files w/ screenshots
Quote:
Originally Posted by
Spike-X
And then five minutes after that it all went to pieces again and I went to bed and cried myself to sleep.
Grab a handkerchief and have a look at this section. :cry: 8-[
Code:
# Minimum size of text area
minimum_size 1900 300
minimum_width 1900
maximum_width 1920
There is no setting minimum_width
Try fixing the width with...
Code:
minimum_size 1900 300
maximum_width 1900
Re: Post your .conkyrc files w/ screenshots
Quote:
Originally Posted by
stinkeye
Grab a handkerchief and have a look at this section. :cry: 8-[
Code:
# Minimum size of text area
minimum_size 1900 300
minimum_width 1900
maximum_width 1920
There is no setting
minimum_width
Yeah, I'm not sure what I was thinking with that. I've taken that line out, and nothing drastic has occurred.
Still hasn't stopped those two objects (upspeed and downspeed) jumping around, though. I'll try changing them to monospace fonts (as suggested earlier) and see if that helps.
Re: Post your .conkyrc files w/ screenshots
I've got it! Because alignr is dependent on font size/width, the upspeed and downspeed readouts move position whenever the numbers for totalup and totaldown change!
I worked that out when I swapped UPLOAD SPEED/DOWNLOAD SPEED and UPLOADED/DOWNLOADED around to see if that would change things. It only made it worse, because the UPLOAD SPEED/DOWNLOAD SPEED numbers were contantly changing, thus causing the UPLOADED/DOWNLOADED numbers to move around all the time.
Re: Post your .conkyrc files w/ screenshots
Hello all!
I am trying to get my Google Calendar to display on my desktop using Conky, however it is only displaying my calendar partially. I am running Ubuntu 12.10 with Xfce 4.10 desktop environment.
Here is my current conkyrc file:
Code:
alignment top_right
background no
border_width 0
cpu_avg_samples 2
default_color white
default_outline_color white
default_shade_color white
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no
use_xft yes
xftfont DejaVu Sans Mono:size=10
gap_x 5
gap_y 60
minimum_size 5 5
net_avg_samples 2
double_buffer yes
out_to_console no
out_to_stderr no
extra_newline no
own_window yes
own_window_class Conky
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
stippled_borders 0
update_interval 1.0
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no
text_buffer_size 8096
TEXT
${execi 300 gcalcli --nc --cals=owner calw 4}
Note: When I run Conky, I get the following output in my terminal:
Code:
Conky: desktop window (e00003) is subwindow of root window (dc)
Conky: window type - override
Conky: drawing to created window (0x4200001)
Conky: drawing to double buffer
Traceback (most recent call last):
File "/usr/bin/gcalcli", line 1524, in <module>
BowChickaWowWow()
File "/usr/bin/gcalcli", line 1469, in BowChickaWowWow
gcal.CalQuery(args[0], count=int(args[1]))
File "/usr/bin/gcalcli", line 1011, in CalQuery
self._GraphEvents(cmd, start, count, eventList)
File "/usr/bin/gcalcli", line 712, in _GraphEvents
PrintMsg(CLR_NRM(), line + "\n")
File "/usr/bin/gcalcli", line 239, in PrintMsg
sys.stdout.write(unicode(msg, 'UTF-8'))
TypeError: decoding Unicode is not supported
Here is a screenshot of my desktop: http://imgur.com/Ntiu0
Much thanks!
Re: Post your .conkyrc files w/ screenshots
Quote:
Originally Posted by
Spike-X
I've got it! Because alignr is dependent on font size/width, the upspeed and downspeed readouts move position whenever the numbers for totalup and totaldown change!
I worked that out when I swapped UPLOAD SPEED/DOWNLOAD SPEED and UPLOADED/DOWNLOADED around to see if that would change things. It only made it worse, because the UPLOAD SPEED/DOWNLOAD SPEED numbers were contantly changing, thus causing the UPLOADED/DOWNLOADED numbers to move around all the time.
I've finally come up with a fix; I've given the upspeed and downspeed sections their own lines in conkyrc, and used voffset to move them up to where they need to be. It's dirty and ugly, but it works.
Another fix would have been using a monospace font, but I couldn't find one I liked. They're all so dull!
Re: Post your .conkyrc files w/ screenshots
Quote:
Originally Posted by
stinkeye
Sample toggleconky script
Code:
#!/bin/bash
# click to start, click to stop
# if pgrep conky; then pkill conky; else conky; fi
if pidof conky | grep [0-9] > /dev/null
then
exec killall conky
else
conky -c ~/conky/configs/timer-conkyrc &
conky -c ~/conky/configs/cal-conkyrc &
conky -c /home/glen/conky/configs/release.conkyrc &
fi
After editing, drag and drop
~/.local/share/applications/Conky.desktop
to the launcher.
Cool idea. Thanks for sharing. I have a question though, does the toggle script allow you to kill the conkies one at a time or is it all or nothing?