General TC > Programming & Scripting - Unofficial
"Topside" titlebar version of flwm
roberts:
Having options in .xsession DESKTOP statement will break the automatic use of alternate window managers, as they do not expect such command line options to be present.
To prevent such a wrapper script could be used. It would then be desireable to have in both path and backup.
FWIW, I don't see a -bg2 in the updated ,xsession.
MikeLockmoore:
Ok, maybe this -bg2 idea isn't so good. I'm going to try to implement an evironment variable method of overriding the titlebar color. Back soon (I hope).
EDIT: It wasn't real quick, but it is working now and a copy has been passed to the TC core team. With this change, you won't pass any -fg or -bg2 arguments to flwm, so the normal .xsession script can be used. But you can pass a hex-encoded color specification to flwm via an environment variable. You would be able to define the color in your .profile script in your home directory by inserting a line like this:
export FLWM_TITLEBAR_COLOR='10:2F:6A'
where 0x10 is the level of red (16 out of 255), green is 0x2F (47), and blue is 0x6A (106)... so this is a muted dark blue with a bit of green.
The title text color is selected automatically for good contrast. I think you can still force a text color with the -fg command-line option as long as it has good contrast, but the standard .xsession provided in TC base will not have any such options so that different WMs (openbox, jwm, etc.) can be used with no changes. So if you change your .xession like I showed above, you would need to change it back if you ever switched to a different WM. Perhaps the text color can be also specified by an environment variable in a future version.
I hope this titlebar color-enabled version of flwm is included in the next release candidate for TC 2.4 so people can experiment with it.
NOTE: The new titlebar coloring feature currently does not work if you define the "plastic" scheme (AKA theme/style) in your .Xdefaults file. With FLTK, the plastic scheme paints the GUI controls and windows backgrounds in a manner similar to the early iMac Mac OS style. The gtk+ scheme works fine in the updated flwm for colored titles. Perhaps the plastic scheme can be supported in a future release.
--
ML
Plume:
I agree with fladd: a leftside titlebar suits better to the screen form factor, especially for 16:9 screens. Although for my own I would prefer a rightside titlebar... Any hope to have a user parameter to control that?
Of course a topside titlebar looks more familiar but has Tinycore to look familiar?
MikeLockmoore:
I think you can simply install the traditional left-side title version of flwm using AppBrowser, which will supercede the built-in version, if you prefer that.
No, I don't have any plans to make a right-side version. ::) Sheesh. Next people will want a diagonal version. :D Seriously, I plan to work on some other projects before spending a lot more time on window managers. If you saw my post in another subforum [http://forum.tinycorelinux.net/index.php?topic=3408.0], you know I have some interest in quite radical user-interfaces. But I don't plan to work on new WM features in the next few months.
--
Mike L.
Navigation
[0] Message Index
[*] Previous page
Go to full version