There's an ${eve api_userid api_key character_id} command, no idea if it's of any use (know little more about eve than Bruce ). See : http://conky.sourceforge.net/variables.html
got the answer !!!!!
so here it is: to make a ordered slideshow from a folder, i use a template (inspired by Crinos512 templates on CH!)
and so, as long as i've got pics named 01.png, 02.png .... it works !!Code:#!/bin/bash # conky slideshow.sh # usage: # ${execp ~/scripts/conkyslide.sh} # NB=`date +%S` # image refresh >> 1 per sec echo "\${image /home/arp/scripts/conky_lingerie3D/manara/$NB.png -p 0,0}" exit 0
thx to proxess for the idea & crinos512 for template
OK, after seeing the second response, I got your code and I had NO IDEA there was an ${eve} command for conky.
After reading the variables:
and looking at your code:eve
api_userid api_key character_id
Fetches your currently training skill from the Eve Online API servers (http://www.eve-online.com/) and displays the skill along with the remaining training time.
I'll say this: Without the packages you downloaded:Code:${alignc}${texeci 300 /home/yourusername/.conky/eve/eve-get.py}${color}name ${color1}${texeci 300 /home/yourusername/.conky/eve/eve-name.py} ${color}race ${color1}${texeci 300 /home/yourusername/.conky/eve/eve-race.py} ${color}balance ${color1}${texeci 300 /home/yourusername/.conky/eve/eve-balance.py} ISK ${color}skillpoints ${color1}${texeci 300 /home/yourusername/.conky/eve/eve-skillpoints.py} ${color1}${texeci 30 /home/yourusername/.conky/eve/eve-skilltraining.py}
- eve-get.py
- eve-name.py
- eve-race.py
- eve-balance.py
- eve-skillpoints.py
- eve-skilltraining.py
Or the HowTo to set it up - - - there is nothing we can do for you.
So I guess your options are:
- show us where you downloaded the files
- ask the Author for support
- or try the Conky command:
Code:${eve api_userid api_key character_id}
Have a nice day.
Bruce
Hello,
I am hoping some of you conky pros can help me with a script I'm working on. The script is used to get your friends from Xbox live and pass it to conky. It works fine in a terminal, but when its passed to conky it will only print 4-5 friends and cuts off the last friend's status.
This is based off the code from this post:
http://ubuntuforums.org/showthread.php?t=1236199
As I'm not at my comp I can't post my .conkyrc, but I think this is is the value that could be causing the problem.Code:#!/bin/bash Filename=~/Friends.aspx line=`awk '/ Online/' $Filename | wc -l` #Gets the line count to determin how many friends are on. linect=$((line-1)) # Line will find 1 entry that does not relate to a friend, so this removes it. FRIENDS=$((linect*2)) #used to print only friends online. rm ~/Friends.aspx wget --load-cookies=cookies.txt --keep-session-cookies --ignore-length --no-check-certificate http://live.xbox.com/en-US/profile/Friends.aspx ; if [ "$line > 1" ] ; then awk '/h3|Online/' $Filename | sed -e '{ s/<h3>// #Deletes HTML "h3" tags. s/<.*>//g #Deletes all other HTML tags. /Online/d #Deletes the Online line. s/^ *// #Moves txt to the right. s/^[^-]./*&/ #Places an "*" in front of the gamertag. s/^-// #Deletes "-" in front of gamer status. s/[[:space:]]$// #Removes white spaces (conky writes them as a square box). 2d #Deletes 2 blank lines at the beginnig of the piped txt. /^$/d } ' | head -n$FRIENDS ; else if [ "$line <= 1" ] ; then echo '**No Friends are online**' ; fi fi
I read that conky will determin the hight of the window by the content of the command. Is this correct?Code:I have tried: minimum_size 5 5 & minimum_size 1280
Thanks
Laptop: i7 4930MX @3.9GHz undervolted; 32GB 4x8GB Kingston HyperX Impact 1600MHz; Nvidia 780M 4GB; Samsung 840 EVO mSATA 250GB; Ubuntu 16.04 and Windows 10 Pro.
Ubuntu #8076 / Linux #429448
You can also do something like this.
------------------------------
#!/bin/bash
SECOND=`date +%S`
files=(/home/user/Pictures/*.*) # create an array of the files.
N=${#files[@]} # Number of members in the array
file=${files[$SECOND]} # choose image in the array corresponding to secs
echo '${image '$file' -p 0,0 -s 400x400}' # Sets picture
exit
------------------------------
That way, you don't have to number your files. This generates an array of all the pictures in a particular directory and displays file #(seconds). If you want
more than 60 seconds, you can do something like `date +%s` for the number of seconds since January 1, 1970 00:00:00, then take modulo with respect to the
number of files you have, or N.
------------------------------
#!/bin/bash
SECOND=`date +%s`
files=(/home/user/Pictures/*.*)
N=${#files[@]}
file=${files[$SECOND%$N]}
echo '${image '$file' -p 0,0 -s 400x400}' # Sets picture
exit
------------------------------
Another cool thing you can do is to have your images move about ("animated"), by setting your position variable to be dependent on the time.
------------------------------
#!/bin/bash
SECOND=`date +%S`
((R=10#$SECOND*10)) # multiplied by 10 so it's not moving 1 pixel at a time...
# 10# to make sure it's interpreted as a decimal base
echo '${image /home/user/Pictures/test.png -p '$R',100 -s 400x400}'
exit
------------------------------
Good luck!
wow!! thx a lot, so many things to learn&test with scripts... i'll test all of that tonight
I think what you need to pump up is the "text_buffer_size" the default value is 256/per command.
If you have a command that needs to output a LOT of test pump that sucker up. Mine:
because of one command that gets 7 days of weather.Code:text_buffer_size 6144 TEXT
Have a nice day.
Bruce
Bookmarks