SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-04-16 16:30:07

raoul95
New Member
Registered: 2012-02-19
Posts: 9

Setting X Y co-ordinates for each conky output

Is it possible to have an X Y co-ordinate for each output line in conky cos I like having mine in places to go with the background and theme but doing this would be so much easier than have lines of nothing in various font sizes to space them out correctly which sometimes just simply doesn't work.
And being able to rotate the individual outputs would also be nice
Any help would be much appreciated smile

Offline

Help fund CrunchBang, donate to the project!

#2 2012-04-16 16:38:59

fortyseven
#! Die Hard
From: Sector 7G
Registered: 2011-12-23
Posts: 514

Re: Setting X Y co-ordinates for each conky output

What about {goto} for x and {voffset} for y?


on the outside looking in

Offline

#3 2012-04-16 16:57:06

raoul95
New Member
Registered: 2012-02-19
Posts: 9

Re: Setting X Y co-ordinates for each conky output

Ahhh that works, thanks smile is there no way of rotating individual outputs then? cos it would be nice to be able to do that tongue

Offline

#4 2012-04-16 17:30:31

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: Setting X Y co-ordinates for each conky output

you would need some way of recognizing which wallpaper you had showing
then i would say a conky launch script of some kind

set up different conkies for the different wallpapers, then the script reads the wallpaper name and sets the correct conky

you could do it with exec to get the wallpaper name and if_match to set the XY, but i dont think that would be a very good way

there are some other ways i can think of to do what you want... none are particularly "easy"

and also... conky questions should go here http://crunchbanglinux.org/forums/topic … ky-thread/

Last edited by mrpeachy (2012-04-16 17:34:35)

Offline

#5 2012-04-16 17:36:44

raoul95
New Member
Registered: 2012-02-19
Posts: 9

Re: Setting X Y co-ordinates for each conky output

Yeah something that recognizes the wallpaper and then determines the conky script based on it would be pretty darn handy, but I'm a bit of a noob when it comes to that kinda thing so I'm not sure quite how to go about it hmm

Offline

#6 2012-04-16 17:48:20

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: Setting X Y co-ordinates for each conky output

nitrogen is the program that sets wallpaper in #!... i can see a terminal command to set wallpaper, but not to get the wallpaper name
although i would think there should be a way to do it

there are plenty of scripts around to get nitrogen to cycle through different wallpapers... i think they could be easily adapted to launch the correct conky also

how were you planning on having your wallpaper change?

Offline

#7 2012-04-16 17:54:52

rhowaldt
#!*$%:)
Registered: 2011-03-09
Posts: 4,396

Re: Setting X Y co-ordinates for each conky output

there was a member who posted an app he made for quick switching of your entire graphical setup, so wallpaper, conky, gtk-theme, etc. but i cannot find it. anyone know what i'm talking about and where to find it? this might be of use for you. or not smile

Offline

#8 2012-04-16 17:59:22

2ManyDogs
dv#!
From: elsewhere
Registered: 2011-11-22
Posts: 1,346

Re: Setting X Y co-ordinates for each conky output

rhowaldt wrote:

there was a member who posted an app he made for quick switching of your entire graphical setup, so wallpaper, conky, gtk-theme, etc. but i cannot find it. anyone know what i'm talking about and where to find it? this might be of use for you. or not smile

yes, I remember it but also can't find it sad


Be eggsalad to each other.

Offline

#9 2012-04-16 18:04:13

raoul95
New Member
Registered: 2012-02-19
Posts: 9

Re: Setting X Y co-ordinates for each conky output

yeah I can't find a way to get the name or file address either, and I would change it through nitrogen as you said, if there is away of finding out the name then you could have a simple script that changes the conky config file depending on which wallpaper you have, as there is a terminal command to change that.
Having said that I have no idea when it comes to writing scripts but I probably should learn at some point

Offline

#10 2012-04-16 18:45:56

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: Setting X Y co-ordinates for each conky output

youll need lua 5.1 installed for this
sorry, dont know bash smile
this might be all you need...

script.lua

repeat
   io.write("directory containing wallpaper:")
   io.flush()
   directory=io.read()
until directory~=nil
repeat
   io.write("file name:")
   io.flush()
   wallpaper=io.read()
until wallpaper~=nil

os.execute("nitrogen --set-scaled "..directory.."/"..wallpaper..".png &")
os.execute("conky -c /home/mcdowall/conky/"..wallpaper.." &")

need a conkyrc named the same as each wallpaper you will be using (without the file extension)

the script asks you to set the directory where the wallpaper is kept, then the name of the wallpaper without the .filetype
edit the filetype if needed
edit the way that nitrogen sets the wallpaper if needed
edit the location where the conky files are

launch in teminal like so

lua /path/to/file/script.lua

here i am echoing the results

mcdowall@mcdowall-desktop:~$ lua /home/mcdowall/script.lua
directory containing wallpaper:test
file name:test
nitrogen --set-scaled test/test.png
conky -c /home/mcdowall/conky/test

Last edited by mrpeachy (2012-04-16 18:49:28)

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo