OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: Zumi on December 18, 2005, 09:00:35 am

Title: Fvwm-pdaxrom 0.4.x
Post by: Zumi on December 18, 2005, 09:00:35 am
After 5 months and 2 days of developing fvwm-pdaXrom team proudly presents *drumroll*...
...the new pdaXrom tuned Fvwm config files! (to cut down PR costs, this is from the speech of the 0.3.x release )

Download the 0.4.5 release:  [ You are not allowed to view attachments ]

Changelog since 0.3.1:
Code: [Select]
======================
fvwm-pdaxrom ChangeLog
======================

0.4.5 (2005-12-18)
    * files are distributed in the system directories, from the
    original /home/root/.fvwm directory
    * everything is home independent, symlink the
    /usr/share/fvwm-pdaxrom/xinitrc file as .xinitrc in an other
    home directory to use the package with another user too
    * added sample config lines to the .fvwm/personal/config file
    to help simple color changes, keybindigs modification

0.4.0 (2005-12-03)
    * updated ztaskbar, graphic battery display in the systray
    * added .fvwm/personal directory where you can store and use
    your altered config files across fvwm-pdaxrom installations
    * you can now edit .fvwm/personal/menutop or menubottom to add
    menu items to the pdaXrom menu more easily
    * added dinamically generated menus to the FvwmRoot menu, so
    you can set or view various things with a click in the menu
    * "Network Schemes" dynamic menu - set or view the active
    network scheme
    * "Volume" dynamic menu
    * "CPU Speed" dynamic menu

Release notes:
Read the welcome message after installing it, for more info.
The package depends on the "fvwm", it's in the official feed of RC12.
Previous topics about older releases: "pdaXrom-Fvwm, more eyecandy, less memory usage (https://www.oesf.org/forums/index.php?showtopic=8280)" and "Fvwm-pdaxrom 0.3.x, 0.3.1 released (https://www.oesf.org/forums/index.php?showtopic=13821)"
If you are thinking about "where was the 0.4.0 release...?" then the answer is, nowhere. It was only a pre-release and I made some big changes, so I skipped that one.

Here's a picture about new dynamic menus and the new ztaskbar with graphical battery meter:
 [ You are not allowed to view attachments ]

Let this be the bugreport thread, so feel free to report bugs here, suggest changes and express delight.
I hope you like all the stuff,
Zumi  
Title: Fvwm-pdaxrom 0.4.x
Post by: gromituk on December 18, 2005, 02:47:06 pm
Well done - I took the plunge and it seems to work a treat.  An immediate comparison with the default WM is that the taskbar is actually present on all desktops.

Does it need to be/is it restarted if the Z is left off for more than 12 hours?  The restart on the default WM at least prevents lockup, but is very annoying as it takes ages to refresh everything and resets to Desktop 1.
Title: Fvwm-pdaxrom 0.4.x
Post by: Zumi on December 18, 2005, 04:31:20 pm
Quote
[...]
Does it need to be/is it restarted if the Z is left off for more than 12 hours?  The restart on the default WM at least prevents lockup, but is very annoying as it takes ages to refresh everything and resets to Desktop 1.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=107490\"][{POST_SNAPBACK}][/a][/div]
Well, I'm using fvwm-pdaxrom for more than a year and I haven't experienced lockups with it. I went through several flashing and RC versions, I used to leave my Z suspended for more than 12 hours but I don't remember about lockups since the RC5 came out (there were stability problems before that).

Zumi
Title: Fvwm-pdaxrom 0.4.x
Post by: gromituk on December 18, 2005, 05:23:00 pm
That's good - but I presume I have to modify some script somewhere to prevent the WM being restarted automatically.
Title: Fvwm-pdaxrom 0.4.x
Post by: Zumi on December 18, 2005, 05:34:09 pm
Well, I don't think so. If there's a restarting script (what I haven't noticed yet) it must be restarting the openbox or matchbox processes, so it doesn't do a thing in Fvwm.
Title: Fvwm-pdaxrom 0.4.x
Post by: spaul on December 18, 2005, 06:55:50 pm
Hey Zumi,
Just curious, does the nokia bluetooth card you are using work with the PDAXROM using the GUI alone and not tinkering with some config script.
To the best of my knowledge no one has listed a success with a BT card using the GUI alone without editing.
Title: Fvwm-pdaxrom 0.4.x
Post by: spaul on December 18, 2005, 06:57:53 pm
Never mind, I should have read your sig closer its gps bluetooth, i'm curious about phone connections
Title: Fvwm-pdaxrom 0.4.x
Post by: cattin on December 22, 2005, 03:52:49 am
Keep up the good work! I like your fvwm configuration a lot. It allows me to configure and change the functionality very easily. As of this release it works a lot better on the SL-C3100. There are only two thinks that aren't properly working so far:

(1) the CPU  speed Menu. Your CPU speed logic doesn't seem to work on the C3k1 platform. I'll try to look into this next week.

(2) from time to time strange things happen to the taskbar when turning on the Z. Sometimes I get an additional purple 'X' with the root menu, sometime I get an additional ztaskbar in a separate window.

BTW: I love your dynamic menus! I haven't yet studied the mechanics behind it, but it seems the logical place for a CF/SD/wlan card unmounting menu.

regards, Philippe
Title: Fvwm-pdaxrom 0.4.x
Post by: gromituk on December 22, 2005, 04:37:56 am
There is some sort of restarting script, yes.  If you turn the Z on after a period of inactivity, it doesn't just re-draw the visible windows but the task-bar as well, and resets you to the "first" virtual desktop.
Title: Fvwm-pdaxrom 0.4.x
Post by: Zumi on January 02, 2006, 06:24:36 pm
Quote
Keep up the good work! I like your fvwm configuration a lot. It allows me to configure and change the functionality very easily. As of this release it works a lot better on the SL-C3100. There are only two thinks that aren't properly working so far:

(1) the CPU  speed Menu. Your CPU speed logic doesn't seem to work on the C3k1 platform. I'll try to look into this next week.
Yeah, I thought that's different in Cxx00 versions, but I can't figure that out with a C860.
Quote
(2) from time to time strange things happen to the taskbar when turning on the Z. Sometimes I get an additional purple 'X' with the root menu, sometime I get an additional ztaskbar in a separate window.
Well, these things never happened here. Somebody is experiencing the same thing?
Quote
BTW: I love your dynamic menus! I haven't yet studied the mechanics behind it, but it seems the logical place for a CF/SD/wlan card unmounting menu.
I was playing with this mount menu idea when I had time and I made some draft. It's in Python, so it need to be rewritten in C to use it as a dynamic menu in a release (because it's quite slow this way), but I think it's good to study the mechanism behind them if you try to incude it in your config.

It looks like this (green is mounted, blue is busy (you cannot unmount it) and grey is unmounted; if you click on a green, it gets umounted, if on a blue, nothing happens, if on a grey, it gets mounted):
 [ You are not allowed to view attachments ]
And here is the script. I'm gladly help if you are stuck how to use it, but I will include this in some form in the next release anyway.
 [ You are not allowed to view attachments ]
(sorry about "zip", the forum is bitchy about file extensions and it only allowed this, no py, no bz2)
Title: Fvwm-pdaxrom 0.4.x
Post by: gromituk on January 03, 2006, 04:52:22 am
I found on my 860 that I sometimes got oddities happening, with the screen filling with task bars, each one showing nothing but the name of one open application.
Title: Fvwm-pdaxrom 0.4.x
Post by: scoutme on January 11, 2006, 01:11:49 am
why my menu has no application, exception Aterm and the 3 Exit, Rotate and TheOtherICannotRemember ?
Title: Fvwm-pdaxrom 0.4.x
Post by: Zumi on January 11, 2006, 01:20:26 am
Quote
why my menu has no application, exception Aterm and the 3 Exit, Rotate and TheOtherICannotRemember ?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=110372\"][{POST_SNAPBACK}][/a][/div]
Probably the /usr/bin/fvwm-menu-generator.py program doesn't generates the menu on startup. Try to run it from console and see what's the error.
It happened for me sometimes that there were broken links in /usr/share/applications/ which made the script exit. If it's the same for you, then deleting the broken links solves the problem.
I try to make it more error-proof in the next version.

Zumi
Title: Fvwm-pdaxrom 0.4.x
Post by: jerrybme on January 12, 2006, 11:41:11 am
Zumi:

Love the new release! Been using it for a while. I've got a suggestion for making it easier to modify the taskbar (or anything else that changes between landscape/portrait).

I moved the $FVWMCOMMANDS from the landscape and portrait scripts into  seperate files, landscape-bar and portrait-bar, in the ./fvwm directory Here's how I'm doing it. I replaced the $FVWMCOMMANDS from fvwm-landscape.sh with the following:
Code: [Select]
if test -e $HOME/.fvwm/personal/landscape-bar; then
    $FVWMCOMMAND 'PipeRead "cat $[FVWM_USERDIR]/personal/landscape-bar"'
    else
    $FVWMCOMMAND 'PipeRead 'cat $[FVWM_USERDIR]/landscape-bar"'
fi

Then added similar code the the fvwm-portrait.sh script. This way I can hack my custom taskbar and easily go back to the default taskbar by renaming my custom file.

I'm using a similar process to read the wallpaper command from a seperate file so I can use the Taviso's wallpaper browsing function to set the wallpaper. I read that file from the landscape/portrait-bar file with a PipeRead command.

Thanks for all of your work on fvwm (and the kopi alarm)!

Cheers,
Jerry
Title: Fvwm-pdaxrom 0.4.x
Post by: scoutme on January 12, 2006, 02:09:54 pm
xstroke doesn't work on fvwm

since xstroke is the only Input method really working as it should on a touchscreen, I won't be able to use fvwm
Title: Fvwm-pdaxrom 0.4.x
Post by: Zumi on January 12, 2006, 03:47:55 pm
Quote
Zumi:

Love the new release! Been using it for a while. I've got a suggestion for making it easier to modify the taskbar (or anything else that changes between landscape/portrait).

I moved the $FVWMCOMMANDS from the landscape and portrait scripts into  seperate files, landscape-bar and portrait-bar, in the ./fvwm directory Here's how I'm doing it. I replaced the $FVWMCOMMANDS from fvwm-landscape.sh with the following:
[solution skipped]

Thanks for all of your work on fvwm (and the kopi alarm)!

Cheers,
Jerry[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=110655\")
Hi!

Thanks for the tip! The reason why I haven't done something similar to the taskbar as the root menu is that this way it doesn't really help. I was thinking about a file where you can put one item per line, and it puts shortcut icons described in the lines on the taskbar.

This way you don't have to do the math with coloumns and rows when you add a new item and I really don't want to change much syntax in the ~/.fvwm/personal folder, so I don't make transistional solutions there if it's possible.

I'm glad you like what I done.

To scoutme: Have you tried using rosetta? It's really nice, [a href=\"http://mail.pdaxrom.org/contrib/pgas/rosetta_07022005_armv5tel.ipk]pgas compiled it[/url]. I don't know what's the problem with xstroke, I haven't used it since a long time. Why it doesn't work? If I remember it had a taskbar icon that had to be clicked to draw... Try using xystray (https://www.oesf.org/forums/index.php?showtopic=13821&view=findpost&p=88604) to get a systray similar to the matchbox one.

Zumi
Title: Fvwm-pdaxrom 0.4.x
Post by: cmpayc13 on January 15, 2006, 01:54:09 pm
Hi All,

I tryed to use the xystray with fvwm. If I put the line

$FVWMCOMMAND '*ZaurusTaskbar: (4x1, Swallow (Respawn) Xystray `Exec exec xystray -iconrows 1 -iconcols 2 -iconsize 32`)

in my .fvwn2rc-file I can start the mb-applets from the shell and they are visible in the xystray-area, but the clock in not visble in the taskbar anymore. Any idea how to fix it?

Which scripts do I have to edit to start the mb-applets?
/usr/bin/fvwm-landscape.sh  does not seem to be the right place for it. If I put mb-applet-cards in this script and restart FVWM the taskbar disappears.

Is it possible to implement the following features with the FVWM?

We don't have to much place on the Z-screen. It would be very usefull to have the possibility to hide/show the taskbar  with the mouse (like icewm) or even better with a shortkey. So we can have almost windows maximized and easy switch to the taskbar if we need it.

Iconify All shortcut is not working for me. The menu-key is mapped to XF86LaunchC (tested it with xev). I edited the .fvwm2rc (changed XF86LaunchD to XF86LaunchC) to map Mail+C to Iconify All,  but no success.

Any suggestions are very apprecated

Best regards

Cmpayc
Title: Fvwm-pdaxrom 0.4.x
Post by: Zumi on January 15, 2006, 04:55:08 pm
Quote
Hi All,

I tryed to use the xystray with fvwm. If I put the line

$FVWMCOMMAND '*ZaurusTaskbar: (4x1, Swallow (Respawn) Xystray `Exec exec xystray -iconrows 1 -iconcols 2 -iconsize 32`)

in my .fvwn2rc-file I can start the mb-applets from the shell and they are visible in the xystray-area, but the clock in not visble in the taskbar anymore. Any idea how to fix it?
Imagine the taskbar as a table, consisting 1x40 cells. You added 4 cell (the xystray), so you have to remove 4 cells from something (usually the iconman). So:
Code: [Select]
$FVWMCOMMAND "*ZaurusTaskbar: (29x1, Swallow FvwmIconMan \`FvwmIconMan\`)"
change it to this:
$FVWMCOMMAND "*ZaurusTaskbar: (25x1, Swallow FvwmIconMan \`FvwmIconMan\`)"
... and the clock becomes visible.
Quote
Which scripts do I have to edit to start the mb-applets?
/usr/bin/fvwm-landscape.sh  does not seem to be the right place for it. If I put mb-applet-cards in this script and restart FVWM the taskbar disappears.
The best place is your .xinitrc file. If you have fvwm-pdaxrom installed, then ~/.xinitrc is a symlink to /usr/share/fvwm-pdaxrom/xinitrc. So delete it, copy it, edit so it starts the needed program.
Code: [Select]
rm ~/.xinitrc
cp /usr/share/fvwm-pdaxrom/xinitrc ~/.xinitrc
mcedit  ~/.xinitrc
*** add this line to it to the end, but *before* the fvwm command:
mb-applet-cards &
I hope this is working with xystray, I don't use it now, so I can't test it.
Quote
Is it possible to implement the following features with the FVWM?

We don't have to much place on the Z-screen. It would be very usefull to have the possibility to hide/show the taskbar  with the mouse (like icewm) or even better with a shortkey. So we can have almost windows maximized and easy switch to the taskbar if we need it.
I really haven't tought about this so far, I like to see my taskbar always, but it's possible to make such thing with Fvwm.
I found this in the Fvwm FAQ:
7.17 (http://www.fvwm.org/documentation/faq/#toc_7.17)  Autohiding FvwmButtons or other windows

Lemme know if you made something integrateable from it!
Quote
Iconify All shortcut is not working for me. The menu-key is mapped to XF86LaunchC (tested it with xev). I edited the .fvwm2rc (changed XF86LaunchD to XF86LaunchC) to map Mail+C to Iconify All,  but no success.
The default Calendar+Home (that's Control+XF86LaunchD in fact) works for me. Mail (or XF86LanuchC) is not a modifier key, so you can't set something like Mail+C. That would be like Q+Enter. Doesn't make sense.
Quote
Any suggestions are very apprecated

Best regards

Cmpayc
[div align=\"right\"][a href=\"index.php?act=findpost&pid=111054\"][{POST_SNAPBACK}][/a][/div]
I hope I helped!

Zumi
Title: Fvwm-pdaxrom 0.4.x
Post by: macstibs on January 15, 2006, 05:30:17 pm
I'm having a problem getting the menus and toolbar to work.  I get the basic menu and no window management.  I've uninstalled and reinstalled fvwm_pdaxrom a number of times, but no luck.  mbsession and icewmsession both work flawlessly.  I have no idea what the problems is.

Any suggestions?

I do notice that when I run startx I get the folowing error.


[FVWM][main]: <<ERROR>> Cannot read startup file, tried:
        /home/root/.fvwm/.fvwm2rc
        /home/root/.fvwm2rc
        /share/fvwm/.fvwm2rc
        /share/fvwm/system.fvwm2rc
        /etc/system.fvwm2rc
Title: Fvwm-pdaxrom 0.4.x
Post by: cmpayc13 on January 15, 2006, 05:36:44 pm
Zumi,

THANKS A LOT !

Best regards

Cmpayc
Title: Fvwm-pdaxrom 0.4.x
Post by: Zumi on January 15, 2006, 06:04:05 pm
Quote
I'm having a problem getting the menus and toolbar to work.  I get the basic menu and no window management.  I've uninstalled and reinstalled fvwm_pdaxrom a number of times, but no luck.  mbsession and icewmsession both work flawlessly.  I have no idea what the problems is.

Any suggestions?

I do notice that when I run startx I get the folowing error.


[FVWM][main]: <<ERROR>> Cannot read startup file, tried:
        /home/root/.fvwm/.fvwm2rc
        /home/root/.fvwm2rc
        /share/fvwm/.fvwm2rc
        /share/fvwm/system.fvwm2rc
        /etc/system.fvwm2rc
[div align=\"right\"][a href=\"index.php?act=findpost&pid=111083\"][{POST_SNAPBACK}][/a][/div]
Hmm, it seems that you are using a different version of fvwm. Try installing the one in the 1.1.0beta1 feed. Your one searches for config files in /share/fvwm, the one in the feed searches in /usr/share/fvwm. Or, you can move .fvwm2rc from /usr/share/fvwm to /share/fvwm!

Zumi
Title: Fvwm-pdaxrom 0.4.x
Post by: macstibs on January 15, 2006, 10:24:19 pm
Hmm, it seems that you are using a different version of fvwm. Try installing the one in the 1.1.0beta1 feed. Your one searches for config files in /share/fvwm, the one in the feed searches in /usr/share/fvwm. Or, you can move .fvwm2rc from /usr/share/fvwm to /share/fvwm!

Zumi
[div align=\"right\"][a href=\"index.php?act=findpost&pid=111093\"][{POST_SNAPBACK}][/a][/div]
[/quote]

genius... for some reason the .rc was in the wrong place.  no idea why, but it seems to have fixed the problem.

Thanks so much!  Great work!
Title: Fvwm-pdaxrom 0.4.x
Post by: adf on January 16, 2006, 12:19:16 am
very nice. very fast. very pretty.

Any way to run an ap (like ...say..firefox) fullscreen over the taskbar?
Title: Fvwm-pdaxrom 0.4.x
Post by: Zumi on January 16, 2006, 05:48:23 am
Quote
very nice. very fast. very pretty.

Any way to run an ap (like ...say..firefox) fullscreen over the taskbar?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=111111\"][{POST_SNAPBACK}][/a][/div]
The most simple method seems to be to add a Keybinding for maximizing to 640x480 and modify the StaysOnTop style of the taskbar.
So, translated to Fvwm language (this adds the keybinding to Fn+5):
Code: [Select]
Key 5 A 2 Maximize 640p 480p
Style ZaurusTaskbar StaysOnBottom
You can add this to your ~/.fvwm/personal/config file, or edit /usr/share/fvwm/.fvwm2rc accordingly.

Zumi

Ps.: The idea is good, I will implement it in some form, in the next version.
Title: Fvwm-pdaxrom 0.4.x
Post by: adf on January 16, 2006, 02:35:56 pm
Quote
Quote
very nice. very fast. very pretty.

Any way to run an ap (like ...say..firefox) fullscreen over the taskbar?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=111111\"][{POST_SNAPBACK}][/a][/div]
The most simple method seems to be to add a Keybinding for maximizing to 640x480 and modify the StaysOnTop style of the taskbar.
So, translated to Fvwm language (this adds the keybinding to Fn+5):
Code: [Select]
Key 5 A 2 Maximize 640p 480p
Style ZaurusTaskbar StaysOnBottom
You can add this to your ~/.fvwm/personal/config file, or edit /usr/share/fvwm/.fvwm2rc accordingly.

Zumi

Ps.: The idea is good, I will implement it in some form, in the next version.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=111127\"][{POST_SNAPBACK}][/a][/div]

thanks
Title: Fvwm-pdaxrom 0.4.x
Post by: cmpayc13 on January 18, 2006, 05:29:46 pm
Zumi,

as far as I understand You ( unfortunately I did not have enough time to RTFM)

[/quote]
I really haven't tought about this so far, I like to see my taskbar always, but it's possible to make such thing with Fvwm.
I found this in the Fvwm FAQ:
7.17 (http://www.fvwm.org/documentation/faq/#toc_7.17)  Autohiding FvwmButtons or other windows

Lemme know if you made something integrateable from it!

[/quote]

it's about definition of functions to hide/show. Is it possible to assign this functions to the shortcuts?

On some screenshots of desctop-fvwm are two icons on the left and right of the taskbar to hide those?
Any idea how to implement this?

Any suggestions are very apprecated

Thanks in advance

Best regards

Cmpayc
Title: Fvwm-pdaxrom 0.4.x
Post by: jerrybme on January 25, 2006, 02:16:44 pm
Zumi:
I've been playing around with xfce4 a bit now that I've got so much more room in my Z (quite a difference when you go from a C-750 to a C-3100!!). The one feature I like about xfce4 is the toggle fullscreen, great for firefox & other apps where you want the most screen space.

I found the following function on fvwm forums that toggles the active window fullscreen removes window decorations. Works great!

Code: [Select]
###############################
# FVWM-Crystal plugin: Fullscreen
# Written by: Maciej Delmanowski

# Overview:
# After using this function, current window will lose it's border and title
# and will be maximized to the full screen (wow). After using Fullscreen
# function on a "fullscreened" window it will return to it's previous size and
# position and border/title will be brought back.
###############################

Key F A M Fullscreen

DestroyFunc Fullscreen
AddToFunc Fullscreen
+ I Fullscreen-Stop
+ I Current (!Maximizable) Break
+ I TestRc (False) Fullscreen-Start

DestroyFunc Fullscreen-Start
AddToFunc Fullscreen-Start
+ I Current (State 0) Break
+ I SetEnv OldX-$[w.id] $[w.x]
+ I SetEnv OldY-$[w.id] $[w.y]
+ I SetEnv OldWidth-$[w.id] $[w.width]
+ I SetEnv OldHeight-$[w.id] $[w.height]
+ I Move 0p 0p
+ I Resize 100 100 frame
#+ I Layer 0 5
+ I WindowStyle NoTitle, !Borders, StaysOnTop, !Iconifiable, !Maximizable
+ I State 0 true

DestroyFunc Fullscreen-Stop
AddToFunc Fullscreen-Stop
#+ I Current (!State 0) Break
+ I DestroyWindowStyle
+ I State 0 false
#+ I Layer 0 4
+ I PipeRead "echo ResizeMove \\$\\[OldWidth-$[w.id]\\]p \\$\\[OldHeight-$[w.id]\\]p \\$\\[OldX-$[w.id]\\]p \\$\\[OldY-$[w.id]\\]p"

I recommend you add it to your next update.

Cheers,
Jerry
Title: Fvwm-pdaxrom 0.4.x
Post by: cattin on March 21, 2006, 02:29:23 am
I used the method proposed by jerrybme above and made a three level window zoom function out of it.

- First key press (Fn+2) maximises the window with the taskbar still visible
- The second key press (Fn+2) resizes the window so that it covers the taskbar
- Third key press (Fn+2) removes window decorations and uses the full screen for
  the window
- Fourth key press (Fn+2) switches the window back to its initial size

To use it, just put the code below in your /home/root/.fvwm/personal/config file and restart the window manager.

have fun, Philippe

Code: [Select]
Key 2 A 2 RotateFullscreen

DestroyFunc RotateFullscreen
AddToFunc   RotateFullscreen
+ I Current (!State 0) Zoom1
+ I Current (!State 1) Zoom2
+ I Current (!State 2) Zoom3
+ I Current (State 2) Zoom0

DestroyFunc Zoom1
AddToFunc Zoom1
+ I SetEnv OldX-$[w.id] $[w.x]
+ I SetEnv OldY-$[w.id] $[w.y]
+ I SetEnv OldWidth-$[w.id] $[w.width]
+ I SetEnv OldHeight-$[w.id] $[w.height]
+ I Current Maximize 640p 448p
+ I Current State 0 true
+ I Break 2

DestroyFunc Zoom2
AddToFunc Zoom2
+ I Current ResizeMaximize 640p 455p
+ I Style ZaurusTaskbar StaysOnBottom
+ I Current State 1 true
+ I Break 2

DestroyFunc Zoom3
AddToFunc Zoom3
+ I Move 0p 0p
+ I Resize 100 100 frame
+ I WindowStyle NoTitle, !Borders, StaysOnTop, !Iconifiable, !Maximizable
+ I Current State 2 true
+ I Break 2

DestroyFunc Zoom0
AddToFunc Zoom0
+ I DestroyWindowStyle
+ I PipeRead "echo ResizeMove \\$\\[OldWidth-$[w.id]\\]p \\$\\[OldHeight-$[w.id]\\]p \\$\\[OldX-$[w.id]\\]p \\$\\[OldY-$[w.id]\\]p"
+ I Current State 0 false
+ I Current State 1 false
+ I Current State 2 false
+ I Break 2
Title: Fvwm-pdaxrom 0.4.x
Post by: jerrybme on March 21, 2006, 10:04:10 am
Quote
I used the method proposed by jerrybme above and made a three level window zoom function out of it.

- First key press (Fn+2) maximises the window with the taskbar still visible
- The second key press (Fn+2) resizes the window so that it covers the taskbar
- Third key press (Fn+2) removes window decorations and uses the full screen for
  the window
- Fourth key press (Fn+2) switches the window back to its initial size

To use it, just put the code below in your /home/root/.fvwm/personal/config file and restart the window manager.

have fun, Philippe

Code: [Select]
Key 2 A 2 RotateFullscreen

DestroyFunc RotateFullscreen
AddToFunc   RotateFullscreen
+ I Current (!State 0) Zoom1
+ I Current (!State 1) Zoom2
+ I Current (!State 2) Zoom3
+ I Current (State 2) Zoom0

DestroyFunc Zoom1
AddToFunc Zoom1
+ I SetEnv OldX-$[w.id] $[w.x]
+ I SetEnv OldY-$[w.id] $[w.y]
+ I SetEnv OldWidth-$[w.id] $[w.width]
+ I SetEnv OldHeight-$[w.id] $[w.height]
+ I Current Maximize 640p 448p
+ I Current State 0 true
+ I Break 2

DestroyFunc Zoom2
AddToFunc Zoom2
+ I Current ResizeMaximize 640p 455p
+ I Style ZaurusTaskbar StaysOnBottom
+ I Current State 1 true
+ I Break 2

DestroyFunc Zoom3
AddToFunc Zoom3
+ I Move 0p 0p
+ I Resize 100 100 frame
+ I WindowStyle NoTitle, !Borders, StaysOnTop, !Iconifiable, !Maximizable
+ I Current State 2 true
+ I Break 2

DestroyFunc Zoom0
AddToFunc Zoom0
+ I DestroyWindowStyle
+ I PipeRead "echo ResizeMove \\$\\[OldWidth-$[w.id]\\]p \\$\\[OldHeight-$[w.id]\\]p \\$\\[OldX-$[w.id]\\]p \\$\\[OldY-$[w.id]\\]p"
+ I Current State 0 false
+ I Current State 1 false
+ I Current State 2 false
+ I Break 2
[div align=\"right\"][a href=\"index.php?act=findpost&pid=119527\"][{POST_SNAPBACK}][/a][/div]

Nicely done
Title: Fvwm-pdaxrom 0.4.x
Post by: pnb on March 21, 2006, 10:53:48 am
Thanks for the nice extra feature! However, for some reason my taskbar stays on top in all "zoom-modes"... Apparantly it ignores "ZaurusTaskBar StaysOnBottom".
Why that?
Peter