Perry Hutchison
2014-11-01 06:41:36 UTC
I suspect there is something about colorsets that I don't
understand.
I am using fvwm 2.5.30 with Ubuntu 12.04. My ~/.fvwm/.fvwm2rc
reads the stock Ubuntu system.fvwm2rc and then makes some
adjustments. For the most part this works, but when I try to
create a colorset 37 (which seems to be not otherwise defined
or used), and then define a new xterm menu item using it, the
window opened by the new item gets default colors instead of
those defined by my "Colorset 37" directive.
It does not seem to matter whether I define the new colorset
before, or after, reading system.fvwm2rc -- it does not work
either way. However, if I use one of the already-defined
colorsets in the new menu item -- leaving the item definition
otherwise identical -- I do get that colorset's colors; so it
seems that the colorset references in the new menu item at
least are correctly formatted.
This is what I have in ~/.fvwm/.fvwm2rc -- the commented
AddToMenu MenuFvwmShells being the one that results in default
colors if I uncomment it and instead comment the one following it.
--8<---------------cut here---------------start------------->8---
Read /etc/X11/fvwm/system.fvwm2rc
Colorset 37 fg white, bg 80/00/00, Plain, NoShape
*FvwmButtons: Geometry 200x90-0-54
*FvwmIconMan: ManagerGeometry 2x0-210-54
AddToMenu MenuFvwmUtilities "Calendar%menu/clock.xpm%" Exec exec ical
AddToMenu MenuFvwmUtilities "Monitor Setup" Exec exec gnome-display-properties
AddToMenu MenuFvwmWebBrowsers "Firefox" Exec exec firefox
#AddToMenu MenuFvwmShells "&Unlogged $[gt.default]%menu/terminal-remote.xpm%" Exec export SCRIPT_LOGFILE=/dev/null && exec xterm -fg $[fg.cs37] -bg $[bg.cs37]
AddToMenu MenuFvwmShells "&Unlogged $[gt.default]%menu/terminal-remote.xpm%" Exec export SCRIPT_LOGFILE=/dev/null && exec xterm -fg $[fg.cs32] -bg $[bg.cs32]
Style * IconBox -210 0 -0 -154, IconGrid 1 1, IconFill right bottom
# redefine without font changes
DestroyFunc FuncFvwmRunInXterm
AddToFunc FuncFvwmRunInXterm
+ I exec xterm -fg $[fg.cs34] -bg $[bg.cs34] -T "$0" -n "$0" -e $1
# initial apps
Exec exec xterm -fg $[fg.cs30] -bg $[bg.cs30]
Exec sh -c "sleep 1 && exec ical -iconic"
# wait a while for screen to get set up before enabling Xinerama support
# (else Buttons, IconMan, and the initial apps land on the wrong screen)
FuncFvwmRestartModule FvwmCommandS
PipeRead '( ( sleep 3 ; FvwmCommand "Xinerama True" ) & ) 1>&2'
--8<---------------cut here---------------end--------------->8---
At over 170KB the system.fvwm2rc is too large to post in its
entirety, but these excerpts show its Colorset definitions and
the definition of MenuFvwmShells
--8<---------------cut here---------------start------------->8---
Colorset 0 fg black, bg rgb:70/a0/a0
Colorset 1 VGradient 40 2 rgb:88/7b/66 1 rgb:66/5c/4c 1 rgb:88/7b/66, \
bg AliceBlue, fg gray80, fgAlpha 85, NoShape
Colorset 2 VGradient 40 2 rgb:cc/b8/9a 1 rgb:99/8a/7b 1 rgb:cc/b8/9a, \
bg AliceBlue, fg white, NoShape
Colorset 3 fg black, bg rgb:88/7b/66, Plain, NoShape
Colorset 4 fg black, bg rgb:cc/B8/9a, Plain, NoShape
Colorset 5 fg white, HGradient 40 rgb:51/6c/90 rgb:3f/54/70, bg Linen, NoShape
Colorset 6 fg white, bg rgb:63/84/b0, Plain, NoShape
Colorset 7 fg grey45, bg grey45, Plain, NoShape
Colorset 10 fg black, bg rgb:80/A0/A0, Plain, NoShape
Colorset 11 fg black, bg white, Plain, NoShape
Colorset 12 fg black, bg rgb:80/A0/A0, \
VGradient 20 rgb:80/A0/A0 rgb:C0/F0/F0, NoShape
Colorset 13 fg black, bg rgb:70/8C/8C, hi black, sh gray40, \
Plain, NoShape
Colorset 14 fg black, bg rgb:80/A0/A0, Plain, NoShape
Colorset 15 fg black, bg rgb:C0/F0/F0, Plain, NoShape
Colorset 16 fg black, bg rgb:F0/F0/C0, Plain, NoShape
Colorset 17 fg black, bg rgb:80/A0/A0, Plain, NoShape
Colorset 18 fg black, bg rgb:A0/C8/C8, Plain, NoShape
Colorset 19 fg white, bg rgb:60/78/78, Plain, NoShape
Colorset 20 fg black, bg rgb:88/AA/AA, Plain, NoShape
Colorset 21 fg black, bg bisque, Plain, NoShape
Colorset 22 fg white, bg rgb:00/30/60, Plain, NoShape
Colorset 30 fg white, bg rgb:00/00/50, Plain, NoShape
Colorset 31 fg white, bg rgb:00/50/50, Plain, NoShape
Colorset 32 fg white, bg rgb:50/00/00, Plain, NoShape
Colorset 33 fg white, bg rgb:00/50/00, Plain, NoShape
Colorset 34 fg rgb:FF/FF/E8, bg rgb:30/48/48, Plain, NoShape
Colorset 35 fg black, bg rgb:80/A0/80, Plain, NoShape
Colorset 36 fg black, bg rgb:A0/C8/A0, Plain, NoShape
--8<---------------cut here---------------end--------------->8---
--8<---------------cut here---------------start------------->8---
DestroyMenu MenuFvwmShells
AddToMenu MenuFvwmShells "$[gt.Terminals]" Title
+ "&Xterm $[gt.default]%menu/terminal.xpm%" Exec exec xterm -fg $[fg.cs30] -bg $[bg.cs30]
+ "Xterm/r&oot $[gt.default]%menu/terminal-special.xpm%" Exec exec xterm -fg $[fg.cs31] -bg $[bg.cs31] -e su -l
+ "&Rxvt $[gt.default]%menu/terminal.xpm%" Exec exec rxvt -fg $[fg.cs30] -bg $[bg.cs30]
+ "&Eterm $[gt.default]%menu/terminal.xpm%" Exec exec Eterm
+ "&Aterm $[gt.default]%menu/terminal.xpm%" Exec exec aterm -fg $[fg.cs30] -bg $[bg.cs30]
+ "&Konsole $[gt.default]%menu/terminal.xpm%" Exec exec konsole
+ "" Nop
+ "&Xterm 80x40 (7x14 $[gt.font])%menu/terminal.xpm%" Exec exec xterm -n $USER@$HOST -T $USER@$HOST -g 80x40 -sb +sk +si -sl 4096 -j -ls -fn 7x14 -fb 7x14bold -fg $[fg.cs30] -bg $[bg.cs30]
+ "Xterm/r&oot 80x40 (7x14 $[gt.font])%menu/terminal-special.xpm%" Exec exec xterm -n root@$HOST -T root@$HOST -g 80x40 -sb +sk +si -sl 4096 -j -ls -fn 7x14 -fb 7x14bold -fg $[fg.cs31] -bg $[bg.cs31] -e su -l
+ "&Rxvt 80x40 (7x14 $[gt.font])%menu/terminal.xpm%" Exec exec rxvt -n $USER@$HOST -T $USER@$HOST -g 80x40 --loginShell -fn 7x14 -fb 7x14bold -fg $[fg.cs30] -bg $[bg.cs30]
+ "&Eterm 80x40 (7x14 $[gt.font])%menu/terminal.xpm%" Exec exec Eterm -n $USER@$HOST -T $USER@$HOST -g 80x40 --login-shell --font 7x14 --bold-font 7x14bold
+ "&Aterm 80x40 (7x14 $[gt.font])%menu/terminal.xpm%" Exec exec aterm -n $USER@$HOST -T $USER@$HOST -g 80x40 -sb +sk +si -sl 4096 -ls -fn 7x14 -fb 7x14bold -fg $[fg.cs30] -bg $[bg.cs30]
+ "&Konsole 80x40%menu/terminal.xpm%" Exec exec konsole -nowelcome -ls -vt_sz 80x40
+ "" Nop
+ "$[gt.Remote login...]%menu/terminal-remote.xpm%" FvwmForm FvwmForm-Rlogin
--8<---------------cut here---------------end--------------->8---
What am I doing wrong?
understand.
I am using fvwm 2.5.30 with Ubuntu 12.04. My ~/.fvwm/.fvwm2rc
reads the stock Ubuntu system.fvwm2rc and then makes some
adjustments. For the most part this works, but when I try to
create a colorset 37 (which seems to be not otherwise defined
or used), and then define a new xterm menu item using it, the
window opened by the new item gets default colors instead of
those defined by my "Colorset 37" directive.
It does not seem to matter whether I define the new colorset
before, or after, reading system.fvwm2rc -- it does not work
either way. However, if I use one of the already-defined
colorsets in the new menu item -- leaving the item definition
otherwise identical -- I do get that colorset's colors; so it
seems that the colorset references in the new menu item at
least are correctly formatted.
This is what I have in ~/.fvwm/.fvwm2rc -- the commented
AddToMenu MenuFvwmShells being the one that results in default
colors if I uncomment it and instead comment the one following it.
--8<---------------cut here---------------start------------->8---
Read /etc/X11/fvwm/system.fvwm2rc
Colorset 37 fg white, bg 80/00/00, Plain, NoShape
*FvwmButtons: Geometry 200x90-0-54
*FvwmIconMan: ManagerGeometry 2x0-210-54
AddToMenu MenuFvwmUtilities "Calendar%menu/clock.xpm%" Exec exec ical
AddToMenu MenuFvwmUtilities "Monitor Setup" Exec exec gnome-display-properties
AddToMenu MenuFvwmWebBrowsers "Firefox" Exec exec firefox
#AddToMenu MenuFvwmShells "&Unlogged $[gt.default]%menu/terminal-remote.xpm%" Exec export SCRIPT_LOGFILE=/dev/null && exec xterm -fg $[fg.cs37] -bg $[bg.cs37]
AddToMenu MenuFvwmShells "&Unlogged $[gt.default]%menu/terminal-remote.xpm%" Exec export SCRIPT_LOGFILE=/dev/null && exec xterm -fg $[fg.cs32] -bg $[bg.cs32]
Style * IconBox -210 0 -0 -154, IconGrid 1 1, IconFill right bottom
# redefine without font changes
DestroyFunc FuncFvwmRunInXterm
AddToFunc FuncFvwmRunInXterm
+ I exec xterm -fg $[fg.cs34] -bg $[bg.cs34] -T "$0" -n "$0" -e $1
# initial apps
Exec exec xterm -fg $[fg.cs30] -bg $[bg.cs30]
Exec sh -c "sleep 1 && exec ical -iconic"
# wait a while for screen to get set up before enabling Xinerama support
# (else Buttons, IconMan, and the initial apps land on the wrong screen)
FuncFvwmRestartModule FvwmCommandS
PipeRead '( ( sleep 3 ; FvwmCommand "Xinerama True" ) & ) 1>&2'
--8<---------------cut here---------------end--------------->8---
At over 170KB the system.fvwm2rc is too large to post in its
entirety, but these excerpts show its Colorset definitions and
the definition of MenuFvwmShells
--8<---------------cut here---------------start------------->8---
Colorset 0 fg black, bg rgb:70/a0/a0
Colorset 1 VGradient 40 2 rgb:88/7b/66 1 rgb:66/5c/4c 1 rgb:88/7b/66, \
bg AliceBlue, fg gray80, fgAlpha 85, NoShape
Colorset 2 VGradient 40 2 rgb:cc/b8/9a 1 rgb:99/8a/7b 1 rgb:cc/b8/9a, \
bg AliceBlue, fg white, NoShape
Colorset 3 fg black, bg rgb:88/7b/66, Plain, NoShape
Colorset 4 fg black, bg rgb:cc/B8/9a, Plain, NoShape
Colorset 5 fg white, HGradient 40 rgb:51/6c/90 rgb:3f/54/70, bg Linen, NoShape
Colorset 6 fg white, bg rgb:63/84/b0, Plain, NoShape
Colorset 7 fg grey45, bg grey45, Plain, NoShape
Colorset 10 fg black, bg rgb:80/A0/A0, Plain, NoShape
Colorset 11 fg black, bg white, Plain, NoShape
Colorset 12 fg black, bg rgb:80/A0/A0, \
VGradient 20 rgb:80/A0/A0 rgb:C0/F0/F0, NoShape
Colorset 13 fg black, bg rgb:70/8C/8C, hi black, sh gray40, \
Plain, NoShape
Colorset 14 fg black, bg rgb:80/A0/A0, Plain, NoShape
Colorset 15 fg black, bg rgb:C0/F0/F0, Plain, NoShape
Colorset 16 fg black, bg rgb:F0/F0/C0, Plain, NoShape
Colorset 17 fg black, bg rgb:80/A0/A0, Plain, NoShape
Colorset 18 fg black, bg rgb:A0/C8/C8, Plain, NoShape
Colorset 19 fg white, bg rgb:60/78/78, Plain, NoShape
Colorset 20 fg black, bg rgb:88/AA/AA, Plain, NoShape
Colorset 21 fg black, bg bisque, Plain, NoShape
Colorset 22 fg white, bg rgb:00/30/60, Plain, NoShape
Colorset 30 fg white, bg rgb:00/00/50, Plain, NoShape
Colorset 31 fg white, bg rgb:00/50/50, Plain, NoShape
Colorset 32 fg white, bg rgb:50/00/00, Plain, NoShape
Colorset 33 fg white, bg rgb:00/50/00, Plain, NoShape
Colorset 34 fg rgb:FF/FF/E8, bg rgb:30/48/48, Plain, NoShape
Colorset 35 fg black, bg rgb:80/A0/80, Plain, NoShape
Colorset 36 fg black, bg rgb:A0/C8/A0, Plain, NoShape
--8<---------------cut here---------------end--------------->8---
--8<---------------cut here---------------start------------->8---
DestroyMenu MenuFvwmShells
AddToMenu MenuFvwmShells "$[gt.Terminals]" Title
+ "&Xterm $[gt.default]%menu/terminal.xpm%" Exec exec xterm -fg $[fg.cs30] -bg $[bg.cs30]
+ "Xterm/r&oot $[gt.default]%menu/terminal-special.xpm%" Exec exec xterm -fg $[fg.cs31] -bg $[bg.cs31] -e su -l
+ "&Rxvt $[gt.default]%menu/terminal.xpm%" Exec exec rxvt -fg $[fg.cs30] -bg $[bg.cs30]
+ "&Eterm $[gt.default]%menu/terminal.xpm%" Exec exec Eterm
+ "&Aterm $[gt.default]%menu/terminal.xpm%" Exec exec aterm -fg $[fg.cs30] -bg $[bg.cs30]
+ "&Konsole $[gt.default]%menu/terminal.xpm%" Exec exec konsole
+ "" Nop
+ "&Xterm 80x40 (7x14 $[gt.font])%menu/terminal.xpm%" Exec exec xterm -n $USER@$HOST -T $USER@$HOST -g 80x40 -sb +sk +si -sl 4096 -j -ls -fn 7x14 -fb 7x14bold -fg $[fg.cs30] -bg $[bg.cs30]
+ "Xterm/r&oot 80x40 (7x14 $[gt.font])%menu/terminal-special.xpm%" Exec exec xterm -n root@$HOST -T root@$HOST -g 80x40 -sb +sk +si -sl 4096 -j -ls -fn 7x14 -fb 7x14bold -fg $[fg.cs31] -bg $[bg.cs31] -e su -l
+ "&Rxvt 80x40 (7x14 $[gt.font])%menu/terminal.xpm%" Exec exec rxvt -n $USER@$HOST -T $USER@$HOST -g 80x40 --loginShell -fn 7x14 -fb 7x14bold -fg $[fg.cs30] -bg $[bg.cs30]
+ "&Eterm 80x40 (7x14 $[gt.font])%menu/terminal.xpm%" Exec exec Eterm -n $USER@$HOST -T $USER@$HOST -g 80x40 --login-shell --font 7x14 --bold-font 7x14bold
+ "&Aterm 80x40 (7x14 $[gt.font])%menu/terminal.xpm%" Exec exec aterm -n $USER@$HOST -T $USER@$HOST -g 80x40 -sb +sk +si -sl 4096 -ls -fn 7x14 -fb 7x14bold -fg $[fg.cs30] -bg $[bg.cs30]
+ "&Konsole 80x40%menu/terminal.xpm%" Exec exec konsole -nowelcome -ls -vt_sz 80x40
+ "" Nop
+ "$[gt.Remote login...]%menu/terminal-remote.xpm%" FvwmForm FvwmForm-Rlogin
--8<---------------cut here---------------end--------------->8---
What am I doing wrong?