SEARCH

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

You are not logged in.

#1 2009-08-14 22:10:25

aslamp
Member
Registered: 2009-07-20
Posts: 25

Conky as a screensaver

I <3 conky.

couldn't get a screenshot of my screensaver, but just imagine the coolest conky setup you can, but as a screensaver.

"conky-ss.desktop" in /usr/share/applications/screensavers/

[Desktop Entry]
Encoding=UTF-8
Name=Conky
Comment=Displays Information as a Screensaver with Conky
TryExec=conky-ss
Exec=conky-ss
StartupNotify=true
Terminal=true
Type=Application
Categories=GNOME;Screensaver
OnlyShowIn=GNOME;
X-Ubuntu-Gettext-Domain=gnome-screensaver

that will run this next file.

"conky-ss" in /usr/lib/xscreensaver

#!/bin/bash
killall conky
conky -q -c /home/[user]/.conkyrc-ss

for some reason mine only works when i kill other conky's. trying to work around that. i'll share when i figure something out.
it might have to do with them both drawing to the desktop instead of one (reg conky) being in a window..

then finally ".conkyrc-ss" in your ~/

background no
use_xft yes
xftfont AvantGardeLTMedium:size=10
xftalpha .1
update_interval 1.0
total_run_times 0
own_window no
double_buffer yes
minimum_size 0 0
draw_shades no
draw_outline no
draw_borders no
imlib_cache_size 0
short_units 1

display :0.0

mpd_port 6600
mpd_host localhost

default_color D7D3C5
color1 9f907d

default_color ffffff
color1 555555

draw_shades no

alignment top_middle
gap_x 0
gap_y 200
no_buffers yes
uppercase yes
cpu_avg_samples 2
override_utf8_locale no


TEXT
${font AvantGardeLTMedium:size=36}${alignc}${time %l:%M}
$font${alignc}$color${execi 30 python ~/bin/gmail.py}$color1 new messages
${alignc}$color${execi 30 python ~/bin/conkyGoogleReader.py}$color1 unread items

$alignc$color${execi 60 conkyForecast -l USIN0211 -d HT -i -u -x -e 3}F $color1${execi 60 conkyForecast -l USIN0211 -d CC}

${alignc}$color$mpd_title
${alignc}$color1$mpd_artist

once you stick all the files in the places (don't forget to sudo it, and "chmod +x" the conky-ss file) then you should see it under your "Screensaver and Power management"

just thought i'd get this idea out there and let people play with it =]

Last edited by aslamp (2009-08-15 01:02:38)

Offline

Be excellent to each other!

#2 2009-08-14 22:55:45

hailukahh
#! Member
From: Texas
Registered: 2009-07-27
Posts: 87

Re: Conky as a screensaver

WOW!  Great Idea,  I'll have to try this later.


<'(((><  I am not ashamed of the gospel, because it is the  ><)))'>
<'(((><  power of God, the salvation of everyone who believes.  ><)))'>

EeePC 900a : #! 9.04 : Atom 1.60 GHz : 1 GB RAM : 4 GB SSD

Offline

#3 2009-08-14 23:23:06

Awebb
The Singularity
Registered: 2009-07-23
Posts: 2,812

Re: Conky as a screensaver

I did what you said but no entry in the Screensaver dialog sad

EDIT: Whatever you mean by "sudo it", I chmodded +x the script and now it shows up in the dialog wink

Last edited by Awebb (2009-08-14 23:26:48)


I'm so meta, even this acronym

Offline

#4 2009-08-14 23:46:06

aslamp
Member
Registered: 2009-07-20
Posts: 25

Re: Conky as a screensaver

heh, i forgot that part, thanks smile

by "sudo it" i just meant the files need to be placed in the system files, not normally accessable by non-sudoed users =]

Offline

#5 2009-08-15 00:17:00

arpinux
#! Die Hard
From: Montréal, France
Registered: 2009-01-15
Posts: 689
Website

Re: Conky as a screensaver

Offline

#6 2009-08-15 00:38:59

arpinux
#! Die Hard
From: Montréal, France
Registered: 2009-01-15
Posts: 689
Website

Re: Conky as a screensaver

so, half-solved it: conky-ss.desktop had to be placed in /usr/share/applications/screensavers instead of /usr/share/applications
now, Conky is in my gnome-screensaver-preferences but nothing happend when screensaver starts hmm

Last edited by arpinux (2009-08-15 00:43:26)

Offline

#7 2009-08-15 01:04:24

aslamp
Member
Registered: 2009-07-20
Posts: 25

Re: Conky as a screensaver

Offline

#8 2009-08-15 01:08:25

arpinux
#! Die Hard
From: Montréal, France
Registered: 2009-01-15
Posts: 689
Website

Re: Conky as a screensaver

^ do you use the same conky as screeensaver  and as regular conky ?

Offline

#9 2009-08-15 03:24:30

fhsm
#! Junkie
From: New Hampshire, USA
Registered: 2009-01-05
Posts: 445

Re: Conky as a screensaver

Great idea, thanks!

Offline

#10 2009-08-15 05:09:00

aslamp
Member
Registered: 2009-07-20
Posts: 25

Re: Conky as a screensaver

Offline

#11 2009-08-15 08:07:13

Awebb
The Singularity
Registered: 2009-07-23
Posts: 2,812

Re: Conky as a screensaver

Is there a CLI way for setting the screensaver?


I'm so meta, even this acronym

Offline

#12 2009-08-15 11:01:22

arpinux
#! Die Hard
From: Montréal, France
Registered: 2009-01-15
Posts: 689
Website

Re: Conky as a screensaver

@aslamp:  hi, still doesn't work for me hmm
too bad for a such nice idea....

Offline

#13 2009-08-15 15:34:55

aslamp
Member
Registered: 2009-07-20
Posts: 25

Re: Conky as a screensaver

@arpinux what's the conky config that you are using? would you happen to have more than one screen?

Offline

#14 2009-08-15 15:47:34

arpinux
#! Die Hard
From: Montréal, France
Registered: 2009-01-15
Posts: 689
Website

Re: Conky as a screensaver

^ as i didn't know what was wrong, i replace my config by the default-#! to see what happen... nothing more...
and i have just one screen (laptop)
i had to use the same conky config for conkyrc & conky-ss because, if not, conky-ss kill conkyrc and at the "wakeup", no more conkyrc... just conky-ss.
i think i have to search harder/longer/better about xscreensaver/applications/conky-config.
if it works for you... i'll find the way to make it run with me wink
thanks for help smile

Offline

#15 2009-08-15 16:12:27

aslamp
Member
Registered: 2009-07-20
Posts: 25

Re: Conky as a screensaver

@arpinux i think the screensaver app runs it every 10 minutes (or something maybe) which caused mine to do a flickering thing.
the "killall conky" got rid of that. there would be some solution with pid's.. maybe i'll look into that. or just figuring out how to restart the reg conky after normal activity resumes.

glad i could help!

Offline

#16 2009-08-15 17:14:27

aslamp
Member
Registered: 2009-07-20
Posts: 25

Re: Conky as a screensaver

here's my new conky-ss

#!/bin/bash
if pidof conky | grep " "; then
conkysspid=`pidof conky | sed -e 's/$conkypid//'`
kill $conkysspid
else
export conkypid=`pidof conky`
fi
conky -q -c /home/jack/.conkyrc-ss

Offline

#17 2009-08-16 14:03:09

Bruce
#! CrunchBanger
Registered: 2009-05-29
Posts: 242

Re: Conky as a screensaver

Offline

#18 2009-08-17 22:25:51

aslamp
Member
Registered: 2009-07-20
Posts: 25

Re: Conky as a screensaver

alright, this should work better, but only if your other conky is in its own window:
conky-ss:

#!/bin/bash
if pidof conky | grep " "; then
conkypid=`cat /home/jack/.pidofconky`
kill `pidof conky | sed -e 's/$conkypid//'`
else
pidof conky > /home/jack/.pidofconky
fi
conky -q -c /home/jack/.conkyrc-ss

Last edited by aslamp (2009-08-18 14:01:18)

Offline

#19 2009-08-18 08:35:21

iggykoopa
Script Master
Registered: 2008-12-13
Posts: 1,486

Re: Conky as a screensaver

#!/bin/bash
if pidof conky | grep " "; then
conkypid=`cat /home/jack/.pidofconkf`
kill `pidof conky | sed -e 's/$conkypid//'`
else
pidof conky > /home/jack/.pidofconky
fi
conky -q -c /home/jack/.conkyrc-ss

I say never be complete, I say stop being perfect, I say lets evolve, let the chips fall where they may.

Offline

#20 2009-08-18 14:27:25

aslamp
Member
Registered: 2009-07-20
Posts: 25

Re: Conky as a screensaver

>.< heh, thanks. that mighta been why mine wasn't wroking..

thanks again

Offline

#21 2009-08-20 00:59:19

Digit
#! Die Hard
From: the internet
Registered: 2009-05-26
Posts: 1,083
Website

Re: Conky as a screensaver

this would be really cool to get working onscreen at the same time as boinc or electricsheep or similar.   big_smile   let ya see what its doing to yer processors n such.   smile

Offline

#22 2013-03-31 03:21:43

darren404
New Member
Registered: 2013-03-31
Posts: 1

Re: Conky as a screensaver

I know this is an old thread ,but I have been having fun making a few screensavers.  i found this stuff from a few places online.  playing movies, videos, or security cam through xscreensaver.  and running conky as well.

		    "LOSwave" 	mplayer -really-quiet -nosound -nolirc	      \
				  -nostop-xscreensaver -wid		                      \
				  $XSCREENSAVER_WINDOW -fs -loop 0	              \
				  $HOME/Videos/.ssvideos/LOSwave.mov	           \n\
		    "LOSlight" 	mplayer -really-quiet -nosound -nolirc	      \
				  -nostop-xscreensaver -wid		                      \
				  $XSCREENSAVER_WINDOW -fs -loop 0	              \
				  $HOME/Videos/.ssvideos/LOSlight.mov	           \n\
		    "LOSvideo" 	mplayer -really-quiet -nosound -nolirc	      \
				  -nostop-xscreensaver -wid		                      \
				  $XSCREENSAVER_WINDOW -zoom -loop 0 -ss        \
				  60 -shuffle				      \
				  $HOME/Videos/.ssvideos/*.avi		    \n\
		    "LOSconky" 	conky -q --window-id=$XSCREENSAVER_WINDOW     \
				  -c /home/user/.LOS/.conkyrc-ss	    \n\

Here is 4 screensavers, just put under programs: in your .xscreensaver file in your home dir. sorry the spacing might be a bit off.
Just make sure you close and save the file before xscreensaver does.  your screensavers will show up in the list using xscreensaver-demo
Cheers smile

Last edited by darren404 (2013-03-31 03:27:38)

Offline

#23 2013-03-31 03:34:41

mishle
#! CrunchBanger
From: Bitterroot Valley
Registered: 2010-07-20
Posts: 167

Re: Conky as a screensaver

Welcome Darren404 to the crunch bang community.

Last edited by mishle (2013-03-31 03:35:22)

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.
Server: acrobat

Debian Logo