Beso <[EMAIL PROTECTED]> posted [EMAIL PROTECTED], excerpted below, on Sun, 23 Nov 2008 11:38:54 +0000:
> if you put your fb as a line input for the script it would be more > adaptable than is now. but it's a good script. Well, there's a balance between simple and adaptable. One of my goals was to keep the number of parameters to a minimum. However, if I had really intended it for public use (as I've basically setup my kernel scripts to be, now), I'd have setup a config file and read the framebuffer size from it. Of course, I'd have the various resolution choices setup in the config file as well, if I were doing it that way, as well as the various xrandr output interface names (VGA1, DVI1, etc). I'd have abstracted out the stacked relationship to the config file as well, making side-by-side and option, and may have allowed setting the default position to the four corners and centered on the four edges (much like kde3's kicker panel positions), as well as centered and possibly arbitrary, as well. But when the positioning thing didn't work I kind of lost my motivation, as I could neither fully debug it nor use it as intended, so I didn't do much to it after that, except update the hard-coded resolutions for my pair of LCDs, when I got them. But... it's a reasonable start (proof of concept, working demo) for someone with reasonable bash skills, who has a system where the xrandr position functionality works as documented, so he can test and debug if necessary that bit of it. Feel free! =:^) BTW, I didn't document it when I posted, but consider that script to be in the public domain. That gives anyone who wishes to improve it the freedom to choose whatever license they want (preferably freedomware, of course, maybe MIT, since that's the license xorg uses and it'd be rather pointless without that), for their improved version. > i think i'll attach it over a hotkey. if i manage to > have it attached to a hal event it would be even better... thanks for > it. I hadn't thought about a hal event... Interesting idea, tho my configuration here is a reasonably stationary desktop, so there's little reason to think of the hal trigger. But maybe when I get my netbook (Acer Aspire One) setup with Gentoo... we'll see. -- Duncan - List replies preferred. No HTML msgs. "Every nonfree program has a lord, a master -- and if you use the program, he is your master." Richard Stallman
