Re: FVWM: FVWM Buttons

From: Dominik Vogt <fvwm_at_fvwm.org>
Date: Mon, 17 Dec 2001 14:05:33 +0100

On Mon, Dec 17, 2001 at 08:12:26AM -0500, Reuben D Budiardja wrote:
> Hello,
> I have a newbie questions. So, I'll get to the points:
> 1. I know FVWM buttons can swallow apps. But can it swallow every apps? or is
> there somekind of limitations/requirements?

In theory you can swallow every application window. Some
applications might not like to be confined to a very small button,
though.

> 2. How can I make my own buttons (something like png or xpm file) and use it
> as FVWM buttons? I asked this long time ago, and someone suggested to read
> the manual, but I can't find the answer to this (or probably I just didn't
> really understand what I read).

Use the 'Icon' option in the button definition (see example
below). You have to use xpm images - png is not supported by fvwm
and its modules.

> I learned best probably by example, so if someone would like to send me
> example (or even rc files + screenshot off list), that'd be great too. I love
> FVWM because it's so configurable. Too bad I still have not mastered the
> config. I am using fvwm2-4.3

This is the example from the FvwmButtons man page:

----------------------------- snip -------------------------
# Make it titlebar-less, sticky, and give it an icon
Style "FvwmButtons" Icon toolbox.xpm, NoTitle, Sticky

*FvwmButtons: Font 5x7
*FvwmButtons: Back rgb:90/80/90
*FvwmButtons: Fore black
*FvwmButtons: Frame 1
# 9x11 pixels per button, 4x4 pixels for the frame
*FvwmButtons: Geometry 580x59+0-0
*FvwmButtons: Rows 5
*FvwmButtons: Columns 64
*FvwmButtons: BoxSize fixed
*FvwmButtons: Padding 1 1

# Pop up a module menu directly above the button.
*FvwmButtons: (9x1+3+0, Padding 0, Title "Modules", \
  Action `Menu Modulepopup rectangle $wx$h+$l+$t o+50 -100m`)

# first row of buttons from left to right:
*FvwmButtons: (3x2+0+1, Icon my_lock.xpm, Action `Exec xlock`)
*FvwmButtons: (3x2+3+1, Icon my_recapture.xpm, Action Recapture)
*FvwmButtons: (3x2+6+1, Icon my_resize.xpm, Action Resize)
*FvwmButtons: (3x2+9+1, Icon my_move.xpm, Action Move)
*FvwmButtons: (3x2+12+1, Icon my_fvwmconsole.xpm, \
  Action 'Module FvwmConsole')

# second row of buttons from left to right:
*FvwmButtons: (3x2+0+3, Icon my_exit.xpm, Action QuitSave)
*FvwmButtons: (3x2+3+3, Icon my_restart.xpm, Action Restart)
*FvwmButtons: (3x2+6+3, Icon my_kill.xpm, Action Destroy)
*FvwmButtons: (3x2+9+3, Icon my_shell.xpm, Action 'Exec rxvt')

# big items
*FvwmButtons: (10x5, Swallow (NoKill, NoCLose) \
  "FvwmPager" 'FvwmPager * * -geometry 40x40-1024-1024')
*FvwmButtons: (6x5, Swallow "FvwmXclock" `Exec xclock \
  -name FvwmXclock -geometry 40x40+0-3000 -padding 1 \
  -analog -chime -bg rgb:90/80/90`)
*FvwmButtons: (13x5, Swallow (NoClose) \
"FvwmIconMan" 'Module FvwmIconMan')
*FvwmButtons: (20x5, Padding 0, Swallow "xosview" \
  `Exec /usr/X11R6/bin/xosview -cpu -int -page -net \
  -geometry 100x50+0-3000 -font 5x7`)
----------------------------- snip -------------------------

Bye

Dominik ^_^ ^_^

-- 
Dominik Vogt, email: d.vogt_at_lifebits.de
LifeBits Aktiengesellschaft, Albrechtstr. 9, D-72072 Tuebingen
fon: ++49 (0) 7071/7965-0, fax: ++49 (0) 7071/7965-20
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Mon Dec 17 2001 - 07:06:12 GMT

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