topic title: icewm config 2
Posts: 1,081
OU812
Joined: 29 Sep 2007
#1
Hello. I was thinking of updating the icewmconfig since I was never very happy with it; I'm also not very happy with the gui tools available either - I either can't install them or they behave in a way that I don't like. Unfortunately, I just don't have the skills to revamp my simple app to get it to work the I want it to.

Forunately, I've been feeling a little jealous of fluxbox's ability to configure it's environment from the right-click menu. And then it hit me: Instead of trying to create a control center type of icewm config app, why not steal a page from fluxbox and have some simple options available from some of preferences submenu? To test this out, I just took some code from my original app and created two files: a bash script that presents a set of workspace options and a perl script to make the changes in the preferences file. If the number of workspaces is changed, a dialog opens prompting the user to restart icewm.

I think I can add more options. I would need to keep the number of options low to avoid confusing users, to keep the layout logical and manageable, and to keep things clean. I'm pretty sure I'll need one bash script per option as well as perl scripts - perhaps 3 or 4 to handle all of the different types of edits to the preferences file. I'll also need to have a customized preferences file to keep the perl scripts easy to use (already done).

Here's a screenshot of my concept:


Give me your thoughts and ideas. Thanks.

john
Posts: 1,081
OU812
Joined: 29 Sep 2007
#2
OK. It turns out I do have the skills to make a control center. The layout so far looks like the antixcc. I've changed the code of the icewmcc so that the buttons launch zenity scripts with radio buttons. This way you can change one option at a time. Since the main window is written in gtkdialog, the window stays open until you decide to close it. The good news is it works great, the bad news is that I need two perl scripts to edit the icewm prefs file, and one bash script per icewmcc option. I also needed to edit the icewm prefs file to make the perl scripts easier to code.

I'm going to add a few more options such opaque window move, cpu status, net status, etc. Once done, I can think about layout options: similar to antixcc or similar to the screenshot app. Here's what I have:


And here's the scripts if you want test:

Unzip. Copy scripts (end in .sh or .pl) to /usr/local/bin and make sure they're executable. Back up your ~/.icewm/preferences file. Then copy the included preferences file to your ~/.icewm directory. Launch the control center with the command icewmcc.sh.

john
Last edited by OU812 on 25 Nov 2009, 15:50, edited 1 time in total.
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#3
Great stuff.
One suggestion.
Instead of the files being put straight in /usr/local/bin how about being put in an icewmcc folder in /usr/local/bin?
Posts: 1,520
eriefisher
Joined: 07 Oct 2007
#4
anticapitalista wrote:Great stuff.
One suggestion.
Instead of the files being put straight in /usr/local/bin how about being put in an icewmcc folder in /usr/local/bin?
As long as you give the full path the folder idea would work, or add /usr/local/bin/icewmcc to your path.
Posts: 1,081
OU812
Joined: 29 Sep 2007
#5
Yes, that should work. Just change the path in the scripts. But one thing at a time.

john
Posts: 1,081
OU812
Joined: 29 Sep 2007
#6
Changelog:

Added some features.
Changed virtual desktop window from radio buttons to a slider. More cooler now.

john

P.S. Uploaded latest version.
Posts: 1,081
OU812
Joined: 29 Sep 2007
#7
Here's a screenshot of the latest version:


john
Posts: 1,228
secipolla
Joined: 15 Jun 2008
#8
I didn't test yet. Just want to compliment for the desktop. It looks very 80's.
Posts: 1,228
secipolla
Joined: 15 Jun 2008
#9
Some observations:

>UseMouseWheel=0 --> IceWM stable (1.2.35-1) has this feature always disabled regardless of the settings in preferences and IceWM testing/unstable (1.2.37+1.3.4pre2-8) has it enabled, also regardless of the settings in preferences (just commenting, I know there isn't this settings in icewmcc.sh).

>Changing the number of workspaces isn't working (it doesn't change anything in the preferences file). This feature works in Icewm testing when editing the preferences file.

>TaskBarClockLeds=1 --> I think this should be set to 0 otherwise it overrides the theme settings.


I haven't tested everything but I'll do.
Posts: 1,228
secipolla
Joined: 15 Jun 2008
#10
Ok, John. Everything seems to be working fine except changing the number of workspaces.
And I find this app useful.
Posts: 1,228
secipolla
Joined: 15 Jun 2008
#11
I'm using it in antiX-8.5-pt1 and it's working fine, number of workspaces inclusive. So I must investigate why it didn't work in my installed system from the downloaded file.
Also I must translate it.
edit- ok, I found that icewmccwkspaces.pl wasn't set to execute. Now it works.
Posts: 1,228
secipolla
Joined: 15 Jun 2008
#12
John, as it is it works perfectly with the default ~/.icewm/preferences, at least here.

Also translated to pt_BR.
Posts: 1,081
OU812
Joined: 29 Sep 2007
#13
I thought it would as that's how it was originally designed. Thanks for testing.

john