LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 07-17-2006, 10:03 PM   #1
Dralnu
Member
 
Registered: Jul 2005
Distribution: Arch Linux, Gentoo Linux
Posts: 335

Rep: Reputation: Disabled
Problem with IceWM (startup file)


Ok, I'll get to the major issue here:

I'm running Gentoo, just so you all know, with IceWM as my desktop. I love it so far. Clean, simple, loads faster then KDE could ever DREAM of, ect. Well, anyways, the documents for it seem, lacking, online. In the online guide (which is what I've used mostly), there is a startup file which I want to use, the problem being that it doesn't work.

I ran a Google search on the problem, got the email list, and there are alot of questions but very few if any answers. I've looked for awhile, tryed various things, and nothing seems to be quite getting it. Anywho, I was hoping someone here could shed some light on this seemingly uncommon WM (why its uncommon evades me. Its the only one I know of that actually has a CPU monitor and net monitor in the taskbar o.o).
 
Old 07-18-2006, 05:07 AM   #2
doc.nice
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Debian
Posts: 274

Rep: Reputation: 34
ok, not much usable info about what exactly you want to do but a generic answer (for my working icewm):
1) create a directory .icewm in your home directory
2) copy the contents of /etc/X11/icewm to your ~/.icewm
3) adopt the files to your favorite behaviour
3) create a file startup with executable rights (I use 755 here) (touch startup && chmod 755 startup)
4) the contents is a simple shell script like this one (be shure that all commands inside are run in the background! (if they don't fork themselves, use the & sign):

Code:
#!/bin/bash

###########################################
#
# Sample icewm startup file
# to have an a syslog console
# a nice world background,
# a living screensaver and
# GPG-Agent running...
#
# Author: Florian Harbich (doc.nice)
# written for linuxquestions.org
# (Thread 465028)
#
# This code may be freely used
# or redistributed without
# any restrictions
# (and without any warranty)
#
###########################################

# kill a running xconsole
if [ -e /var/run/xconsole.$hostserver.pid ]; then
  pid=$(cat /var/run/xconsole.$hostserver.pid 2> /dev/null)
  if [ "$pid" ]; then
    kill $pid 2> /dev/null
  fi
  rm /var/run/xconsole.$hostserver.pid
fi
# start new xconsole at upper screen border
xconsole -notify -daemon -geometry 1024x200+0+0 -file /dev/xconsole
# remember the PID of running instance
echo $! > /var/run/xconsole.$hostserver.pid

# become an astronaut
xplanet -wait 120 -target earth -origin moon -label&

# support GPG passphrase asking for kmail
[ -z "$GPG_AGENT_INFO" ] && eval "$(gpg-agent)"

# enable the screensaver
xscreensaver&
HTH,
Flo

BTW: the command in your sig lacks an R
 
Old 07-18-2006, 11:45 AM   #3
Dralnu
Member
 
Registered: Jul 2005
Distribution: Arch Linux, Gentoo Linux
Posts: 335

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by doc.nice
ok, not much usable info about what exactly you want to do but a generic answer (for my working icewm):
1) create a directory .icewm in your home directory
2) copy the contents of /etc/X11/icewm to your ~/.icewm
3) adopt the files to your favorite behaviour
3) create a file startup with executable rights (I use 755 here) (touch startup && chmod 755 startup)
4) the contents is a simple shell script like this one (be shure that all commands inside are run in the background! (if they don't fork themselves, use the & sign):

Code:
#!/bin/bash

###########################################
#
# Sample icewm startup file
# to have an a syslog console
# a nice world background,
# a living screensaver and
# GPG-Agent running...
#
# Author: Florian Harbich (doc.nice)
# written for linuxquestions.org
# (Thread 465028)
#
# This code may be freely used
# or redistributed without
# any restrictions
# (and without any warranty)
#
###########################################

# kill a running xconsole
if [ -e /var/run/xconsole.$hostserver.pid ]; then
  pid=$(cat /var/run/xconsole.$hostserver.pid 2> /dev/null)
  if [ "$pid" ]; then
    kill $pid 2> /dev/null
  fi
  rm /var/run/xconsole.$hostserver.pid
fi
# start new xconsole at upper screen border
xconsole -notify -daemon -geometry 1024x200+0+0 -file /dev/xconsole
# remember the PID of running instance
echo $! > /var/run/xconsole.$hostserver.pid

# become an astronaut
xplanet -wait 120 -target earth -origin moon -label&

# support GPG passphrase asking for kmail
[ -z "$GPG_AGENT_INFO" ] && eval "$(gpg-agent)"

# enable the screensaver
xscreensaver&
HTH,
Flo

BTW: the command in your sig lacks an R
Yeah, I know. rm -rf / would be better

Anywho, do you know how to place a program on like, desktop 4 and execute a command at the same time? I've got mine setup where I run tail -f on the syslog, along with XMMS and then another empty console to take up the space on workspace 4 that I use for general system work and whatnot.

EDIT:

Seems klauncher isn't started when I use the startup file. How annoying...

Last edited by Dralnu; 07-18-2006 at 12:06 PM.
 
Old 07-18-2006, 12:00 PM   #4
doc.nice
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Debian
Posts: 274

Rep: Reputation: 34
maybe (but I didn't check) you can specify --desktop :0:3 for the fourth desktop (counting from 0).
but iirc this means display 0, screen 3 for multihead configurations...

what do you mean with "place a program on desktop 4 and execute a command at the same time"? start one app on the fouth desktop and another one somewhere else?
 
Old 07-18-2006, 01:12 PM   #5
Dralnu
Member
 
Registered: Jul 2005
Distribution: Arch Linux, Gentoo Linux
Posts: 335

Original Poster
Rep: Reputation: Disabled
I ment like start aterm, then execute tail within that terminal.

Mostly I feel like being lazy, lol (aren't most linux users? I mean, between cron jobs, gpm + console browsers, ect?)
 
  


Reply

Tags
example, icewm


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
IceWM startup config question GUIPenguin Linux - General 3 01-21-2005 01:28 AM
no sound on startup with icewm mcgoon Linux - Newbie 6 01-01-2005 08:33 AM
Icewm "startup" script problem ylikone Linux - General 2 12-18-2004 03:28 PM
IceWM doesn't execute my startup script martinpi Linux - Software 1 05-28-2004 03:24 AM
icewm startup probs (dependencies?) joeln Slackware 2 02-21-2004 08:16 PM


All times are GMT -5. The time now is 11:20 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration