LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Problem with IceWM (startup file) (https://www.linuxquestions.org/questions/linux-general-1/problem-with-icewm-startup-file-465028/)

Dralnu 07-17-2006 09:03 PM

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).

doc.nice 07-18-2006 04:07 AM

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 ;)

Dralnu 07-18-2006 10:45 AM

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...

doc.nice 07-18-2006 11:00 AM

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?

Dralnu 07-18-2006 12:12 PM

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?)


All times are GMT -5. The time now is 04:06 PM.