Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (12) </ 1 2 3 [4] 5 6 7 8 9 ... >/

[ Track this topic :: Email this topic :: Print this topic ]

new topic new poll
Topic: DSL v4.4RC1< Next Oldest | Next Newest >
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: May 21 2008,11:36 QUOTE

Quote (lucky13 @ May 20 2008,12:11)
I'm concerned that it works across the board and works well for everyone. I don't think scripts should be have to be rewritten to accomodate certain fonts.

I agree totally.
Unfortunately this is close to impossible, as we have already seen.   The only way for a font to work well for everyone is if it scales, and the only way to accomodate scaling fonts is to write all gui scripts to adjust widget sizes accordingly. Either that or make sure all widgets are large enough to accomodate huge fonts, which would waste space and look wrong with a small font.

There may be a way to add a command to your .luafltkrc file to make all widgets scalable in case the enduser chooses a larger font than what can be fit into the widgets, but I haven't done any tests.  I have a feeling this wouldn't work, though, particularly for guis that already have specifically scaled windows, such as mydslBrowser...that script scales only the browser windows, with a fixed size and aspect for the buttons (big enough for the previous 14px default, but not for large fonts).


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
meo Offline





Group: Members
Posts: 552
Joined: April 2004
Posted: May 21 2008,14:37 QUOTE

Hi mikshaw!

Actually I just used the nop-option a few hours ago and it worked well but then I started to make some other hacks to the fluxbox menu from memory (which I'm lacking at times) and completely trashed it. Now I'm back by my old box using jwm to try to restore the menu to the nop-state again. Thanks for your post! I'll look in to the menu hight to verify if that might help me to see the menu better in this version of DSL.

Have fun out there using DSL,
meo


--------------
"Live and let live"   Treat others the way you want to be treated because that's what you should expect from them.

"All that is very well," answered Candide, "but let us cultivate our garden." - Francois-Marie Arouet Voltaire
Back to top
Profile PM 
florian Offline





Group: Members
Posts: 66
Joined: Dec. 2006
Posted: May 21 2008,17:33 QUOTE

Great release candidate!

I liked the default fixed font (at least in aterm). But it's just a personal aesthetic thing, so I can modify my own .Xdefaults

However one (small) problem with smoothansi is that the "extended characters" do not get displayed as they used to. Try for instance running xsetup.sh script and you'll see what I mean.
Back to top
Profile PM WEB 
chaostic Offline





Group: Members
Posts: 328
Joined: Mar. 2005
Posted: May 22 2008,04:49 QUOTE

Quote (meo @ May 21 2008,10:37)
Hi mikshaw!

Actually I just used the nop-option a few hours ago and it worked well but then I started to make some other hacks to the fluxbox menu from memory (which I'm lacking at times) and completely trashed it. Now I'm back by my old box using jwm to try to restore the menu to the nop-state again. Thanks for your post! I'll look in to the menu hight to verify if that might help me to see the menu better in this version of DSL.

Have fun out there using DSL,
meo

Got it. It can be run directly from the command line:
Edit: You don't even have to restart Fluxbox to see the changes
Code Sample

cp ~/.fluxbox/menu ~/menu.bk && cat ~/menu.bk | sed \
-e /"\[exec\]"/a"\ \ \ \ \ \ \ \[nop\]  (  )" \
-e /"\[end\]"/a"\ \ \ \ \ \ \ \[nop\]  (  )" \
-e /"\[config\]"/a"\ \ \ \ \ \ \ \[nop\]  (  )" \
-e /"\[exit\]"/a"\ \ \ \ \ \ \ \[nop\]  (  )" \
-e /"\[reconfig\]"/a"\ \ \ \ \ \ \ \[nop\]  (  )" \
-e /"\[restart\]"/a"\ \ \ \ \ \ \ \[nop\]  (  )" \
-e /"\[stylesdir\]"/a"\ \ \ \ \ \ \ \[nop\]  (  )" \
-e /"\[workspaces\]"/a"\ \ \ \ \ \ \ \[nop\]  (  )" \
-e /"\[submenu\]"/a"\ \ \ \ \ \ \ \[nop\]  (  )" \
-e /"\[begin\]"/a"\ \ \ \ \ \ \ \[nop\]  (  )" \
> ~/menu.nop && cp ~/menu.nop ~/.fluxbox/menu


It will save the original menu to menu.bk, the edited to menu.nop and then overwrite the original menu with menu.nop

Only things it doesn't work on is "Desktop -> Fluxbox Configuration" "Desktop -> Styles" and "Desktop -> Workspaces" which are either files fluxbox cats into the menu, or fluxbox includes from it's own program.

Given that, and that the spaces act like extra lines (clickable, instead of working like "margins" for the commands above or below it) mik's suggestion would work better (if it works in dsl's fluxbox), natch
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: May 22 2008,12:42 QUOTE

Rather than running two instances of cp, use sed -i to edit the original file.
Also, your sed seems to be a little overly specific
Code Sample
cp ~/.fluxbox/menu ~/.fluxbox/menu.bak && sed -i 's/$/\n[nop]/' ~/.fluxbox/menu

Mind this hasn't been tested in Fluxbox itself....just looked at the output of sed.  nop might need a following ()

EDIT: sorry I forgot this is the rc thread. This is off-topic.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
55 replies since May 19 2008,17:45 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (12) </ 1 2 3 [4] 5 6 7 8 9 ... >/
new topic new poll
Quick Reply: DSL v4.4RC1

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code