Re: FVWM: Fvwm / FvwmButtons features

From: Albrecht Kadlec <albrecht_at_auto.tuwien.ac.at>
Date: Mon, 19 Aug 96 12:23:21 +0200

>>>>> Alan Wild writes:

A> Charles Hines wrote:
>
Marco> - Is it possible to use both Swallow and Action in a button?
Marco> I'd like to swallow oclock, and have an "xclock -digital" called
Marco> I click on the oclock button.
>
> I believe once an app is swallowed, all button events get directed to
> it, so you can't do this right now. Probably should make this
> possible in the future.

A> This isn't entirely true (sorry, Chuck).
I agree.

A> Yes, once an app is swallowed all events do get directed to it, but this
A> isn't true of the label. Presently I use the following FvwmButtons
A> configuration:

A> *FvwmButtons(1x4 \
A> Title 'System Info' \
A> Swallow "xload" 'Exec xload' \
A> Action(Mouse 1) 'Exec xosview -cua0 -net 200 -ul -l -geometry 325x325' \
A> Action(Mouse 2) 'Exec xcpustate -interval 1 -bg "#a4978e" -fg black' \
A> Action(Mouse 3) 'Exec rxvt -fg "khaki" -bg "dark olive green" \
A> -fat -n top -T Top -7 -e top' )

A> This lets me start three different applications by left/middle/right
A> clicking on the label. I do wish I could have this functionality
A> without havning to set a Title, but hey. . . at least this works.

well, all MOUSE button events are passed to that app. anyways.
but if the app has wminputhints=off, it doesn't accept KEYBOARD events,
so a keypress is handled by FvwmButtons.

thus sth like
 *FvwmButtons(1x4 \
         Swallow "xload" 'Exec xload' \
         Action 'Exec xosview -cua0 -net 200 -ul -l -geometry 325x325')

starts xosview, if you position the mouse on the xload and press enter,
without the need for the title.

well' it's not pretty, but I use it to have my emacs read my mail from xbiff.

If wminputhints=off also rejected MOUSE events, then your above example
would also work without need for the title.

albrecht
-- 
Overhead the albatross hangs	    |  And everything is green and submarine
Motionless upon the air		    |  And no one showed us to the land
And deep beneath the rolling waves  |  And no one knows the wheres or whys
In labyrinths of coral caves	    |  But something stares
The echo of a distant tide	    |  And something tries
Comes willowing across the sand     |  And starts to climb towards the light
							-- Pink Floyd, "Echoes"
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Mon Aug 19 1996 - 05:30:54 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:59 BST