LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-26-2004, 09:30 PM   #1
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
script for apps. that don't stop xscreensaver


I'm not the first person to do this, I just thought it might be useful to someone.

in a terminal type:

cd ~/
pico [application-name-here]

enter these immortal words:
Code:
#!/bin/sh
xscreensaver-command -exit
[application-name-here]
xscreensaver -no-splash &
then type:

ctrl+x
y
[enter-key]
chmod u+x ./[application-name-here]

then run it:
~/[application-name-here]


can anyone tell me how to get xscreensaver to recognise activity from my joystick /dev/input/js0 ??

Last edited by Tuttle; 11-26-2004 at 09:36 PM.
 
Old 11-27-2004, 09:18 AM   #2
nukkel
Member
 
Registered: Mar 2003
Location: Belgium
Distribution: Hardened gentoo
Posts: 323

Rep: Reputation: 30
Code:
#!/bin/sh

while true; do
    xscreensaver-command -deactivate &
    sleep 60
done
this script will shut up xscreensaver as long as you leave it running. Useful when you don't want to write a script for every game you have...
 
Old 11-27-2004, 09:34 AM   #3
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Original Poster
Rep: Reputation: 52
nice
 
Old 11-27-2004, 04:20 PM   #4
nukkel
Member
 
Registered: Mar 2003
Location: Belgium
Distribution: Hardened gentoo
Posts: 323

Rep: Reputation: 30
Oh yeah about your joystick: to do that will requiring changing the source code, but it won't be easy I think... Especially if it's an USB joystick. If it's serial or parallel port then there *may* be a way to do it, if you're interested in hacking it let me know an' I'll explain further but I'm not sure if it will work at all...
 
Old 11-28-2004, 09:45 AM   #5
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Original Poster
Rep: Reputation: 52
naa, it's a saitek cyborg evo usb. Thanks for the info though :~]
 
Old 11-29-2004, 03:17 PM   #6
nukkel
Member
 
Registered: Mar 2003
Location: Belgium
Distribution: Hardened gentoo
Posts: 323

Rep: Reputation: 30
sure thing

see you 'round
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I stop autologin with a script? videoediting SUSE / openSUSE 1 04-03-2005 11:03 PM
xscreensaver installed, but no xscreensaver-demo command? dalesan Linux - Software 7 09-01-2004 02:06 PM
xscreensaver: how do I stop it from starting PionexUser Linux - General 9 09-15-2003 12:00 AM
How to stop Red Hat script Skyline Programming 3 08-24-2003 06:32 PM
script: stop firewall allelopath Linux - Software 1 04-30-2003 07:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:53 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