Welcome
Welcome to antiX-forum.

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, join our community today!

icewm

Post your tips and tricks here.

icewm

Postby OU812 on Mon May 12, 2008 7:07 pm

Hello. I know there is a wiki being developed and I have also offered to help anti customize the icewm part of antix, so I see this as a way to get my ideas out there for everyone to share in. Here's what I have so far:

1. There are 3 missing config files. Copy them from /usr/share/icewm to ~/.icewm as user:

Code: Select all
cp /usr/share/icewm/keys ~/.icewm
cp /usr/share/icewm/preferences ~/.icewm
cp /usr/share/icewm/winoptions ~/.icewm

2. To make icewm a little more usable, I suggest editing ~/.icewm/preferences as follows:

Code: Select all
leafpad ~/.icewm/preferences

MenuMouseTracking=1
TaskBarShowCollapseButton=1

ClockCommand="osmo"
RunCommand="fbrun"
ShutdownCommand="sudo halt"
RebootCommand="sudo reboot"
MailCommand="claws-mail"
CPUStatusCommand="wterm -tr +sb -fg white -T "Htop" -e htop"
NetStatusCommand="/opt/wicd/gui.py"

Just find the lines, uncomment them, and edit as suggested.

3. If you would like to add themes, create the folder ~/.icewm/themes and extract the tarballs to that directory.

Code: Select all
mkdir ~/.icewm/themes

Most themes have an icon for xterm, but not for wterm. So the result is a "wterm" button on your toolbar instead of the terminal icon from your theme. Here's a fix:

Code: Select all
leafpad ~/.icewm/toolbar

Edit it as follows:

Code: Select all
prog wterm xterm wterm -tr +sb -fg white -T "antiX"


4. Add a mixer to your toolbar. Add the following to ~/.icewm/toolbar:

Code: Select all
prog "Mixer" /usr/share/pixmaps/icon_aumix.xpm aumix

Or you could just use your keyboard with some predefined keys. Look in ~/.icewm/keys and you will see that there are some keys already defined for raising/lowering the volume using aumix.

5. Now would be a good time to log out and try your new icewm settings.

Some items for the future:
1. editing the menu (for this project I will use icemc from the repos)
2. porting config-user to icewm
3. additional tweaks as I learn more (for example, the absolute project found a way to include a volume slider on the taskbar. that's cool)

Peace Out.

john
Last edited by OU812 on Thu May 29, 2008 5:49 pm, edited 5 times in total.
OU812
 
Posts: 649
Joined: Sat Sep 29, 2007 9:12 pm
Location: California

Postby eriefisher on Mon May 12, 2008 11:24 pm

One suggestion, since it's already installed why not use fbrun?

RunCommand="fbrun"

Why add another app?

eriefisher
eriefisher
------------------------------------------------------------
If I knew It was this good I would have been "Anti" everything long ago.

The first thing a I met was a fly with a buzz......America
User avatar
eriefisher
 
Posts: 964
Joined: Sun Oct 07, 2007 6:16 pm
Location: Canada's South Coast

Postby OU812 on Tue May 13, 2008 1:24 am

Thanks! I forgot about that. I just replaced "gmrun" with "fbrun" and it works fine. I'm glad I started this thread!

BTW: Would you prefer that I keep a dark theme to compliment the fb theme or go in a different direction such as milk, blue, vista, etc.? Thanks.

john
OU812
 
Posts: 649
Joined: Sat Sep 29, 2007 9:12 pm
Location: California

Postby anticapitalista on Tue May 13, 2008 1:29 am

Thanks for starting this thread OU812.

I suppose it would be good to have a different theme to the fluxbox one to make it stand out as separate work.
But please, no Vista. :D
Philosophers have interpreted the world in many ways; the point is to change it.
User avatar
anticapitalista
Site Admin
 
Posts: 1324
Joined: Tue Sep 11, 2007 5:55 pm
Location: Greece

Postby eriefisher on Tue May 13, 2008 2:59 am

I thought there were a few themes geared towards IceWM? I forget what they were called.

eriefisher
eriefisher
------------------------------------------------------------
If I knew It was this good I would have been "Anti" everything long ago.

The first thing a I met was a fly with a buzz......America
User avatar
eriefisher
 
Posts: 964
Joined: Sun Oct 07, 2007 6:16 pm
Location: Canada's South Coast

Postby OU812 on Tue May 27, 2008 2:08 am

Bump - just wanted to let folks know that I've made some improvements. Thanks.

john
OU812
 
Posts: 649
Joined: Sat Sep 29, 2007 9:12 pm
Location: California

Postby eriefisher on Tue May 27, 2008 2:25 am

macondo posted some great tips on mepilovers. some of them I'm sure were for ICEWM.

http://mepislovers.org/forums/showthread.php?t=8954
eriefisher
------------------------------------------------------------
If I knew It was this good I would have been "Anti" everything long ago.

The first thing a I met was a fly with a buzz......America
User avatar
eriefisher
 
Posts: 964
Joined: Sun Oct 07, 2007 6:16 pm
Location: Canada's South Coast

Postby OU812 on Tue May 27, 2008 5:43 am

Thanks. I found a few cool things, but I'll need more time to explore.

- edit - I have a bad install? so the following is based on this install

I just found a problem - from my perspective anyway - with icewm: trayicons. Icewm doesn't seem to have a lot of support for this. I did find a couple of workarounds:

1. Right-click on the window title bar and choose tray icon.
2. For some apps - like osmo - it is critical that you remember to do this since it doesn't quit just because you close the window. So if you edit ~/.icewm/winoptions with something like

Code: Select all
osmo.icon:/usr/share/pixmaps/osmo.png
osmo.tray:Exclusive

then a tray icon will appear when osmo is launched. But this trick didn't work so well with vlc - an app that can be controlled with the tray icon.

So here's my solution: use lxpanel (remember, lxde was originally paired with icewm). Here's how:

1. Edit your /etc/apt/sources.list as described here:
http://lxde.sourceforge.net/download.html
Then do

Code: Select all
apt-get update
apt-get install lxpanel

2. Edit ~/.icewm/preferences to turn off the panel:

Code: Select all
ShowTaskBar=0 # 0/1

3. Install and use the lxice theme (optional, but it looks nice). Get it from here:
http://freshmeat.net/projects/lxice/

4. Now make a startup file to launch programs at startup and save it as ~/.icewm/startup.

Code: Select all
#!/bin/bash

conky &
lxpanel &
eval `cat ~/.fehbg` &

The first and last lines are optional. Now make it executable.

Code: Select all
chmod +x ~/.icewm/startup

Now edit ~/.xinitrc so that the startup file will launch during startup.

Code: Select all
exec icewm-session

5. Here's a nice little theme that I think goes well with lxice and lxpanel:
http://freshmeat.net/projects/jswatercolor/
You will also need to install the package "gtk2-engines-pixbuf" from the repos if you want to use it. You will also have to unpack it to ~/.themes (and create the directory if you haven't already). And finally launch switch and switch2 to choose the new gtk and gtk2 js-watercolor themes.

6. Now logout/login to see what happens. Hopefully, it's all good.

john[/code]
Last edited by OU812 on Tue May 27, 2008 9:48 pm, edited 2 times in total.
OU812
 
Posts: 649
Joined: Sat Sep 29, 2007 9:12 pm
Location: California

Postby OU812 on Tue May 27, 2008 6:54 am

If you're using my suggestion of using lxpanel and the lxice theme, then I suggest some more modifications:

1. Enable the logout command from the start menu (this will launch the logout dialog from the fluxbox menu). See this thread:
http://antix.freeforums.org/configure-l ... .html#4423

2. Edit the look of lxpanel to better match lxice.
a. Right-click on the panel and choose panel-settings.
b. Click the radio button background>none
c. Uncheck font>custom color

john
OU812
 
Posts: 649
Joined: Sat Sep 29, 2007 9:12 pm
Location: California

Postby OU812 on Tue May 27, 2008 3:06 pm

Here's a tip I found at www.psychocats.net

Hit [windows key] + [space bar] and a run dialog box will appear in the task bar. Pretty cool.

john
OU812
 
Posts: 649
Joined: Sat Sep 29, 2007 9:12 pm
Location: California

Postby OU812 on Tue May 27, 2008 3:40 pm

I think I was at the wicd site looking for a way to get a tray icon for wicd. They had some code which created startup file. However, I couldn't get it to execute. More recently, I found a nice icewm piece at psychocats: http://www.psychocats.net/ubuntu/icewm and this provided the extra info I needed. Formerly I edited ~/.xinitrc to get programs to launch for icewm, but of course they launched while starting other wm's as well. So the startup file fixed all that. See the above post for info:

4. Now make a startup file to launch programs at startup.

Code:
#!/bin/bash

conky &
lxpanel &
eval `cat ~/.fehbg` &

The first and last lines are optional. Now make it executable.

Code:
chmod +x ~/.icewm/startup

Now edit ~/.xinitrc so that the startup file will launch during startup.

Code:
exec icewm-session


john
OU812
 
Posts: 649
Joined: Sat Sep 29, 2007 9:12 pm
Location: California

Postby OU812 on Tue May 27, 2008 5:44 pm

Well, as it turns out I must have hosed my installation - tray icons are working just fine on my other antix box. (Also, on the hosed box I can't get the net load monitor to appear - so a second indication that something's wrong.) However, if you love lxpanel, then the above post will guide you through it. Or you can keep the minimalist feel of icewm and use their panel, which is quite good - when it's not hosed.

john
OU812
 
Posts: 649
Joined: Sat Sep 29, 2007 9:12 pm
Location: California

Postby eriefisher on Tue May 27, 2008 11:24 pm

1. Right-click on the window title bar and choose tray icon.
2. For some apps - like osmo - it is critical that you remember to do this since it doesn't quit just because you close the window. So if you edit ~/.icewm/winoptions with something like

Code:
osmo.icon:/usr/share/pixmaps/osmo.png
osmo.tray:Exclusive

then a tray icon will appear when osmo is launched. But this trick didn't work so well with vlc - an app that can be controlled with the tray icon.


In osmo's preferences there is a way to enable/diable a tray icon. I don't know if this affects icewm or not.
eriefisher
------------------------------------------------------------
If I knew It was this good I would have been "Anti" everything long ago.

The first thing a I met was a fly with a buzz......America
User avatar
eriefisher
 
Posts: 964
Joined: Sun Oct 07, 2007 6:16 pm
Location: Canada's South Coast

Postby OU812 on Thu May 29, 2008 5:51 pm

Bump - I did some looking around and found that most themes have a terminal icon included - usually called "xterm". So I edited ~/.icewm/toolbar to point to the xterm icon instead of the non-existent wterm icon. Please see the first post for details.

john
OU812
 
Posts: 649
Joined: Sat Sep 29, 2007 9:12 pm
Location: California

Postby eriefisher on Fri May 30, 2008 4:59 am

Using PcmanFM to display icons on the desktop of IceWM.

Image
eriefisher
------------------------------------------------------------
If I knew It was this good I would have been "Anti" everything long ago.

The first thing a I met was a fly with a buzz......America
User avatar
eriefisher
 
Posts: 964
Joined: Sun Oct 07, 2007 6:16 pm
Location: Canada's South Coast

Next

Return to Tips and Tricks

Who is online

Users browsing this forum: No registered users and 0 guests