Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: AbNoRMiS on March 26, 2012, 09:50:12 AM

Title: how to make so that all extentions icons to fit on wbar?
Post by: AbNoRMiS on March 26, 2012, 09:50:12 AM
question is how make that extensions icons
to fit on wbar and in the vertical ondemand menu
(most of these extensions are loaded as ondemand)
because it already started vertical scrolling in lxde
which is not very convenient

and most important that all extension icons do not fit in the wbar
though even some rarely used extensions icons were excluded
i understand that possible to reduce icons size to fit on the wbar
but can not decrease them to infinity

someone already has done something regarding this issue?
Title: Re: how to make so that all extentions icons to fit on wbar?
Post by: Lee on March 26, 2012, 12:57:24 PM
I'm not a user of either lxde nor "ondemand", but I found my wbar getting a bit crowded (though I never actually ran out of room - Is there a limit, besides the screen width?).  In my case I already had a custom menu associated with a "tray" button (in JWM) so i put a submenu there and moved all of the default icons except aterm off of the wbar.  Since I don't find myself using appsbrowser, scmbrowser, appsaudit, mnttool, editor, cpanel and exittc all that often, this was an easy win for me.

Another thing that can help is to play around with the icon labels.  I like to limit them to five characters or less, where possible,("edit" instead of "editor", "apps" instead of "appsbrowser" and so on (Yes, I know those are some of the ones I removed anyway)) and reduce the font size a bit.
Title: Re: how to make so that all extentions icons to fit on wbar?
Post by: roberts on March 27, 2012, 06:03:14 PM
wbar does not support scrolling of icons or unlimited icons. As such wbar is really intended for "favorites". Use WbarConf in the control panel to exclude icons. This should help in reducing the icons to "your favorites".

If there is consensus I could remove wbar ondemand icons thus ondemand items would be limited only to supported window manager menus.
Title: Re: how to make so that all extentions icons to fit on wbar?
Post by: gerald_clark on March 27, 2012, 07:29:37 PM
Perhaps extend the boot option noicons to also accept the format noicons=ondemand.
Title: Re: how to make so that all extentions icons to fit on wbar?
Post by: roberts on March 27, 2012, 10:25:11 PM
Sounds good to me. Will look into its implementation.
Title: Re: how to make so that all extentions icons to fit on wbar?
Post by: AbNoRMiS on March 28, 2012, 06:26:12 PM
dear roberts
vice versa i think and even sure
that adding icons of extensions
that installed ondemand to wbar
is the most successful decision
for using wbar in tinycore

possible might consider change
to /usr/local/bin/wbar.sh
such as the following
Quote
#!/bin/sh
cd "$HOME"
[ -n "$ICONS" ] || ICONS=`cat /etc/sysconfig/icons`
if [ "$ICONS" == "wbar" ]; then
   WBARPID=$(pidof wbar)
   [ -n "$WBARPID" ] && killall wbar
   [ -e .wbar ] && read OPTIONS < .wbar
   case `cat /etc/sysconfig/desktop` in
      flwm*|jwm) ;; #list of desktop managers in which -above-desk option not needed or|and causes problems
      *) OPTIONS="-above-desk $OPTIONS" ;;
   esac
   nohup wbar  $OPTIONS  -config /usr/local/tce.icons  >/dev/null &
fi
to ensure that wbar not was gone from screen
after applying settings by using wbarconf
in such desktop managers
like lxde, xfce4, enlightenment etc

Title: Re: how to make so that all extentions icons to fit on wbar?
Post by: roberts on March 28, 2012, 06:40:39 PM
dear roberts
vice versa i think and even sure
that adding icons of extensions
that installed ondemand to wbar
is the most successful decision
for using wbar in tinycore

possible might consider change
to /usr/local/bin/wbar.sh
such as the following
Quote
#!/bin/sh
cd "$HOME"
[ -n "$ICONS" ] || ICONS=`cat /etc/sysconfig/icons`
if [ "$ICONS" == "wbar" ]; then
   WBARPID=$(pidof wbar)
   [ -n "$WBARPID" ] && killall wbar
   [ -e .wbar ] && read OPTIONS < .wbar
   case `cat /etc/sysconfig/desktop` in
      flwm*|jwm) ;; #list of desktop managers in which -above-desk option not needed or|and causes problems
      *) OPTIONS="-above-desk $OPTIONS" ;;
   esac
   nohup wbar  $OPTIONS  -config /usr/local/tce.icons  >/dev/null &
fi
to ensure that wbar not was gone from screen
after applying settings by using wbarconf
in such desktop managers
like lxde, xfce4, enlightenment etc
I don't use any of those DEs and don't cross test against other extensions, however I will take your mod as well tested and plan to implement it in the next release cycle. Thanks!
Title: Re: how to make so that all extentions icons to fit on wbar?
Post by: roberts on March 28, 2012, 06:44:14 PM
Sounds good to me. Will look into its implementation.
On further consideration instead of yet another boot code, I will to add an option to wbarconf GUI to exclude ondemand icons.
I have decided to use the boot code as originally suggested, noicons=ondemand
Title: Re: how to make so that all extentions icons to fit on wbar?
Post by: AbNoRMiS on March 28, 2012, 09:16:37 PM
Another thing that can help is to play around with the icon labels.  I like to limit them to five characters or less, where possible,("edit" instead of "editor", "apps" instead of "appsbrowser" and so on (Yes, I know those are some of the ones I removed anyway)) and reduce the font size a bit.
dear Lee
icons labels seem does not affect to length of wbar
(if i correctly understood about what the talk)
I'm not a user of either lxde nor "ondemand", but I found my wbar getting a bit crowded (though I never actually ran out of room - Is there a limit, besides the screen width?).  In my case I already had a custom menu associated with a "tray" button (in JWM) so i put a submenu there and moved all of the default icons except aterm off of the wbar.  Since I don't find myself using appsbrowser, scmbrowser, appsaudit, mnttool, editor, cpanel and exittc all that often, this was an easy win for me.
from then i started using tinycore with wbar
i almost never use the menu
therefore i never abandon wbar
first, all icons are in a prominent place
second, enables to run extensions by one mouse click
third, use of menu is becoming difficult for me ::)
and finally it looks good :D despite the fact that i was forced to reduce size to 20

but thank you very much
you gave me a good idea to try jwm
previously i tried almost all lightweight desktop managers
but neither quite liked for me and i stopped at lxde
understanding that it's not very lightweight desktop manager
now it freed about 50 mb of ram compared to lxde
only need little figure how to setup jwm for yourself
not yet found documentation translated from english
on jwm website (http://joewing.net/programs/jwm/config.shtml) i not grasp how to move taskbar to bottom
yet i was not able to set unicode fonts in jwm theme
to display non-english window titles and taskbar items
will have to find a good indicator of keyboard layout :)
but even with these not resolved issues i'll work in jwm
i liked 8) many thanks

p.s.
fewer for one issue, i got it that taskbar location is specified in the tray options
Title: Re: how to make so that all extentions icons to fit on wbar?
Post by: curaga on March 29, 2012, 03:23:46 AM
Re JWM

Taskbar at the bottom: "<Tray  x="0" y="-1" height="22">" y=-1 is the main part.

Unicode fonts: Only jwm-snapshot has truetype fonts enabled.
Title: Re: how to make so that all extentions icons to fit on wbar?
Post by: AbNoRMiS on March 30, 2012, 02:40:09 PM
dear curaga, thanks
i used halign="right" valign="bottom" options
but x="0" y="-1" options actually works better and without any issues

but some reason jwm did not starts soon after tinycore boot
it requires exit to command prompt and again run startx
i suspect that this occurs because unicode lang boot option  is set
Quote
tc@box:~$ cat /proc/cmdline
quiet waitusb=5 cde showapps vga=792 lang=uk_UA.UTF-8 kmap=qwerty/ua-utf desktop=jwm-snapshot lst=onbootlite.lst
but somehow i can't set unicode font such as liberation into jwm theme .jwmrc-theme
Title: Re: how to make so that all extentions icons to fit on wbar?
Post by: roberts on April 09, 2012, 10:57:18 PM
dear roberts
vice versa i think and even sure
that adding icons of extensions
that installed ondemand to wbar
is the most successful decision
for using wbar in tinycore

possible might consider change
to /usr/local/bin/wbar.sh
such as the following
Quote
#!/bin/sh
cd "$HOME"
[ -n "$ICONS" ] || ICONS=`cat /etc/sysconfig/icons`
if [ "$ICONS" == "wbar" ]; then
   WBARPID=$(pidof wbar)
   [ -n "$WBARPID" ] && killall wbar
   [ -e .wbar ] && read OPTIONS < .wbar
   case `cat /etc/sysconfig/desktop` in
      flwm*|jwm) ;; #list of desktop managers in which -above-desk option not needed or|and causes problems
      *) OPTIONS="-above-desk $OPTIONS" ;;
   esac
   nohup wbar  $OPTIONS  -config /usr/local/tce.icons  >/dev/null &
fi
to ensure that wbar not was gone from screen
after applying settings by using wbarconf
in such desktop managers
like lxde, xfce4, enlightenment etc
I don't use any of those DEs and don't cross test against other extensions, however I will take your mod as well tested and plan to implement it in the next release cycle. Thanks!

I have decided not to hard code extension names into code. Instead -above-desk will be an option in wbarconf GUI.
Title: Re: how to make so that all extentions icons to fit on wbar?
Post by: AbNoRMiS on April 12, 2012, 06:10:45 PM
super :)
especially given that most users use one desktop
or not often change it to another
wbar 2.3.0 is much faster loading and reloading
this is very noticeable when many icons on a slow pc
Title: Re: how to make so that all extentions icons to fit on wbar?
Post by: AbNoRMiS on April 12, 2012, 06:54:49 PM
i would like to propose another few improvements for wbarconf
add displaying parameters size and zoom when moving sliders
and add option --grow to invert the direction of icons growth
(http://forum.tinycorelinux.net/index.php?action=dlattach;topic=12896.0;attach=3384)
it would be nice if when wbarconf starting
then option position would have the same value
as in the config file .wbarconf
Title: Re: how to make so that all extentions icons to fit on wbar?
Post by: roberts on April 13, 2012, 04:25:00 PM
What window manager or desktop environment are you using?
I am having some second thoughts as the requested new features do not work the default WM of TinyCore.
Perhaps the fully featured GTK2 wbarconf would be a better option for special features.
Title: Re: how to make so that all extentions icons to fit on wbar?
Post by: AbNoRMiS on April 13, 2012, 04:52:07 PM
i use lxde2 or more often jwm, less flwm
lxde requires option -above-desk
in jwm this option causes problems
(http://forum.tinycorelinux.net/index.php?action=dlattach;topic=12896.0;attach=3387)

option -grow is independent from wm
(http://forum.tinycorelinux.net/index.php?action=dlattach;topic=12896.0;attach=3388)

only i don't know whether possible make
interactive displaying of size and zoom in wbarconf
Title: Re: how to make so that all extentions icons to fit on wbar?
Post by: roberts on April 13, 2012, 08:51:28 PM
I think you made my point. These other options don't work in flwm or even jwm.

This will likely cause grief and confusion to users of these supported WMs.
And likely to become future "bug" reports when users try available options that then don't work!

I think that for advanced features that it would be better to use the full gtk2 wbarconf.
Therefore  I am going to revert fltk wbarconf to support flwm & jwm.
Title: Re: how to make so that all extentions icons to fit on wbar?
Post by: AbNoRMiS on April 13, 2012, 11:31:18 PM
i.e. back to the point when users of lxde, xfce, e17 etc. can not use wbarconf without manual config editing?
may should wait for comments to be able to draw conclusions about the usefulness of these changes?
Title: Re: how to make so that all extentions icons to fit on wbar?
Post by: AbNoRMiS on April 14, 2012, 02:43:39 AM
i ran each of desktop managers
flwm, flwm_topside, jwm, icewm, hackedbox and openbox
which are included in the release candidate coreplus-4.5rc1
and found no issues with enabled option -above-desk
in jwm this option causes problems
(http://forum.tinycorelinux.net/index.php?action=dlattach;topic=12896.0;attach=3387)
this problem which is shown at screenshot
occurs in jwm-snapshot which i use
Title: Re: how to make so that all extentions icons to fit on wbar?
Post by: roberts on April 14, 2012, 05:30:35 PM
I am working on a compromise solution. Look for it beginning with 4.5rc2.
Title: Re: how to make so that all extentions icons to fit on wbar?
Post by: AbNoRMiS on April 15, 2012, 12:59:44 AM
thank you Robert :)