Hello,
After installing icewm on beta3 (C3100) I played around with the brightness and zoom buttons (fn+1/2/3/4). I found a quick solution which didn't work as expected:
I edited the "keys" file of icewm with an editor (or you can do it with iceked too) which looked like that:
key "Ctrl+1" xrandr -s 0
key "Ctrl+2" xrandr -s 1
key "Ctrl+3" setfl -
key "Ctrl+4" setfl +
As you can see I have to set everything with ctrl instead of fn. So this is the compromise we have to take for now which can surely be solved later easily.
Anyway here was the problem I had first: setting the brightness works perfectly but zooming in and out does not properly in other WMs than matchbox.
Here someone described the problem with kde, which is basically the same which I had with icewm:
https://www.oesf.org/forums/index.php?act=S...ndpost&p=112298So the Problem is that xrandr wants to set the screen to 480x640 or 240x320, which matchbox understands but other WMs not. As it is landscape they want 640x480 or 320x240.
So xrandr -s 0 sets the screen to portrait mode (480x640) but other WMs show it in landscape. That means that if you have the taskbar on the down side of the screen it will disappear as it is about 640 pixels down but screen only has 480 in height which it can show. And the windows will be only 480 pixels broad where you have 640 pixels to view.
So I took a look at the options of xrandr and played around with them.
For example "-x" mirrors the screen in x-axis and "-y" in y-axis. If you use both with the previous xrandr command the screen will be exactly upside down.... but with one big difference: It is not portrait mode anymore!
OK but what should we do with the screen upside down? A simple answer: inverting it!
xrandr has another option for orientation which is "-o" and some useable arguments, like "inverted" .
So for invertating the screen just use "-o inverted".
here are the full commands:
xrandr -s 0 -x -y -o inverted (for zooming out: 640x480)
xrandr -s 1 -x -y -o inverted (for zooming in: 320x240)
Just add them to a shortcut now and it is ready.
The next step is to use the fn-key instead of ctrl, but I am short of time now. If someone finds a quick answer, please tell me. (btw. setting "-kb" into the defaultserverargs in the startx script doesnt work in icewm)
Stay Well
MONVMENTVM