FVWM: popup-menu question

2009-08-30 Thread Glen Lee Edwards
In a Menu, or a Popup-menu, is there a way to set them up so when the 
mouse focuses over one of the options that you can get a different 
response based on which mouse button you press?


For example, on my popup-menu, if I scroll down to an item called "Web 
Browser", is there a way to set it up so that if I left click I open Ice 
Weasel, center scroll button click opens Opera, and right click opens a 
sub-menu of bookmarks that I have configured in .fvwmrc?


Glen



Re: FVWM: Some fvwm functions quitting after a bit

2009-08-18 Thread Glen Lee Edwards

Viktor Griph wrote:

2009/8/18 Glen Lee Edwards :

Using FVWM 2.5.26 on debian lenny. �After a period of time, certian
functions/features quit working, such as the title bar buttons, the menu
won't appear when over a window but will over the root window. �Doing a
restart doesn't work, nor does quitting. �I have to do a killall fvwm to
restore functionality. �Sometimes fvwm shows up in ps as fvwm2, sometimes as
fvwm (less the '2'). �I'm not seeing anything in the log file. �Following is
my config script and log file.


See http://fvwm.org/documentation/faq/#0.1


I intentionally waited for some time to post this letter out of fear I'd 
look stupid.  I actually knew this, but somehow the connection between 
intellectual understanding and practical application disappeared.



# � for the title bar buttons:
Mouse 1 1 � � � N � � � Menu RootMenu Nop
[...]


You may want to use A modifier for functions, but define the bindings
before any bindings using modifiers on the same button and context.


Hmm ... use A (all) instead of N (none) so when I hit the num lock or 
caps lock key the window is therefore configured to maintain the same 
functionality, instead of freezing up like it has with my prior 
configuration.  Ok.



## Key Bindings
[...]

# Format: Key [key name] [context] [modifiers] [command]
Key Menu A N � �Menu RootMenu Nop
Key Menu A 3 � �Menu Window-Ops Nop
Key Menu A 4 � �Menu Window-Ops Nop
Key Menu A M � �Menu Window-Ops Nop
Key Menu A C � �WindowList
Key Menu A S � �WindowList


Here you probably want IgnoreModifiers, or create your own bindings
using different permutations of the modifiers you don't use.


I've added IgnoreModifiers L2 to my .fvwm2rc file so fvwm ignores caps 
lock and num lock.  I'm using Xorg, so I don't know if these are the 
same as in XFree, but I'll find out. :)


Thanks!

Glen



FVWM: Some fvwm functions quitting after a bit

2009-08-17 Thread Glen Lee Edwards
Using FVWM 2.5.26 on debian lenny.  After a period of time, certian 
functions/features quit working, such as the title bar buttons, the menu 
won't appear when over a window but will over the root window.  Doing a 
restart doesn't work, nor does quitting.  I have to do a killall fvwm to 
restore functionality.  Sometimes fvwm shows up in ps as fvwm2, 
sometimes as fvwm (less the '2').  I'm not seeing anything in the log 
file.  Following is my config script and log file.


Glen



# -*-Fvwm-*- 


ImagePath 
/home/glenlee/.fvwm/pixmaps:/usr/share/icons/gnome/32x32/apps:/usr/share/pixmaps

ModulePath /usr/lib/fvwm/2.5.26

Module FvwmDebug --log .fvwm.log --debug 1

Emulate Fvwm

ColormapFocus FollowsFocus

# Decor Styles:

#Vector drawing - 0 is shadow, 1 is hilight, 2 is the background color, 3 is 
the foreground color (font color)
# The following uses vectors to draw the title bar button icons rather than 
using a pixmap.
AddToDecor Default
+ ButtonStyle All ActiveUp (-- Raised) Inactive (-- Raised)
+ ButtonStyle 2 8 35...@1 20...@1 40...@0 30...@1 75...@0 50...@1 75...@0 
35...@1
+ ButtonStyle 4 17 20...@1 30...@1 50...@1 70...@1 80...@1 80...@0 60...@0 
80...@1 \
 80...@0 70...@0 50...@0 30...@0 20...@0 20...@0 40...@1 
20...@0 20...@1
+ ButtonStyle 6 10 20...@0 80...@0 80...@0 20...@1 20...@1 \
   30...@1 70...@1 70...@1 30...@0 30...@0
+ ButtonStyle 8 ActiveUp 4 70...@0 30...@0 30...@1 70...@0
+ AddButtonStyle 8 ActiveDown 4 30...@1 70...@1 70...@0 30...@0
+ AddButtonStyle 8 Inactive 4 70...@0 30...@0 30...@1 70...@0
+ ButtonStyle 10 ActiveUp 4 30...@1 70...@1 70...@0 30...@0
+ AddButtonStyle 10 ActiveDown 4 70...@0 30...@0 30...@1 70...@0
+ AddButtonStyle 10 Inactive 4 30...@1 70...@1 70...@0 30...@0
+ ButtonStyle 1 12 10...@0 90...@0 90...@0 10...@1 10...@1 \
 90...@0 90...@0 10...@1 10...@2 90...@0 90...@0 10...@1
+ ButtonStyle 3 5 30...@0 70...@0 70...@0 30...@1 30...@1
+ ButtonStyle 5 16 1...@1 9...@1 90...@0 40...@0 40...@0 60...@1 60...@0 \
 80...@0 50...@0 20...@1 40...@1 40...@1 60...@1 60...@0 
10...@0 1...@1 -- Raised
+ AddButtonStyle 5 ActiveDown 16 1...@0 9...@0 90...@1 40...@1 40...@1 60...@0 
60...@1 \
 80...@1 50...@1 20...@0 40...@0 40...@0 60...@0 60...@1 
10...@1 1...@0 -- Flat
+ ButtonStyle 7 15 1...@1 9...@1 90...@0 50...@0 50...@0 80...@0 60...@0 
60...@0 40...@0 \
 40...@1 20...@1 50...@1 50...@0 10...@0 1...@1 -- Raised
+ AddButtonStyle 7 ActiveDown 15 1...@0 9...@0 90...@1 50...@1 50...@1 80...@1 
60...@1 60...@1 \
 40...@1 40...@0 20...@0 50...@0 50...@1 10...@1 1...@0 -- Flat
+ ButtonStyle 9 12 50...@1 25...@1 40...@1 40...@1 25...@1 50...@1 \
   75...@0 60...@0 60...@0 75...@0 50...@0 50...@1
+ BorderStyle Active TiledPixmap pk_marb_1.xpm
+ BorderStyle Inactive TiledPixmap wood-floor.xpm
+ TitleStyle ActiveUp VGradient 100 2 rgb:ff/ff/ff 30 rgb:ff/aa/aa 40 
rgb:ff/00/00
+ TitleStyle ActiveDown VGradient 100 2 rgb:cc/33/33 20 rgb:ff/88/88 60 
rgb:ff/ee/ee
+ TitleStyle Inactive VGradient 100 2 rgb:44/44/44 20 rgb:ff/ff/ff 60 
rgb:00/00/00

SetAnimation 10 -.01 0 .01 .03 .08 .18 .3 .45 .6 .75 .85 .90 .94 .97 .99 1.0
DeskTopSize 3x3
MenuStyle * Fvwm
MenuStyle * Animation
MenuStyle * Foreground Black, Background gray40
MenuStyle * Greyed gray70, ActiveFore Red
MenuStyle * Font "xft:Adolph:size=10:encoding=utf-8"
MenuStyle * MenuFace VGradient 128 3 orange 33 yellow 33 violet 34 lightblue
MenuStyle * BorderWidth 7
MenuStyle * Hilight3DThickness 5
MenuStyle * RemoveSubmenus

# To see what fonts are available to you, if you have gnome installed you can 
use 'gfontsel', if not try 'xfontsel' Case matters
IconFont "xft:Adolph:size=10:encoding=utf-8"

# default Styles:
Style "*" Color rgb:ff/00/00/rgb:88/88/88, HilightFore rgb:00/00/00, 
HilightBack rgb:ff/aa/aa
Style "*" Font "xft:Adolph:size=10:encoding=utf-8"
Style "*" BorderWidth 7, HandleWidth 7
Style "*" DecorateTransient, NoPPosition
Style "*" IconBox 1000x100+0+10
Style "*" SloppyFocus, DepressableBorder
Style "*" RandomPlacement, SmartPlacement
Style "*" ScatterWindowGroups, GrabFocus
Style "*" BackingStoreOff, SaveUnderOff

# Styles for various Fvwm modules:
Style "Fvwm*" NoTitle, WindowListSkip, Sticky
Style "Fvwm*" BorderWidth 2
Style "FvwmPager" StaysOnTop
Style "FvwmBanner"StaysOnTop, FocusFollowsMouse
Style "FvwmButtons"   WindowListSkip, MouseFocus, NoIcon
Style "FvwmButtonsPanel"  FocusFollowsMouse
Style "FvwmTabs"  Title, !Sticky

# Styles for Gnome
Style "gnome-panel"   BorderWidth 0, HandleWidth 0, CirculateSkip, StaysOnTop, 
Sticky, NoTitle
Style "*panel"BorderWidth 0, HandleWidth 0, CirculateSkip, StaysOnTop, 
Sticky, NoTitle

# some simple default mouse bindings:
#   for the root window:
Mouse 1 R   A   Menu RootMenu Nop
Mouse 1 A   4   Menu RootMenu Nop
Mouse 2 R   A   Menu Window-Ops Nop
Mouse 2 A   4   Menu Window-Op