WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: how to make so that all extentions icons to fit on wbar?  (Read 9678 times)

Offline AbNoRMiS

  • Hero Member
  • *****
  • Posts: 550
  • nothing can be impeccable in this imperfect world
    • @ß№®M!$
how to make so that all extentions icons to fit on wbar?
« on: March 26, 2012, 12:50:12 PM »
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?
« Last Edit: March 26, 2012, 12:57:09 PM by AbNoRMiS »
Basic Design Concept © @ß№®M!$
please forgive my terrible english :)

Offline Lee

  • Hero Member
  • *****
  • Posts: 645
    • My Core wiki user page
Re: how to make so that all extentions icons to fit on wbar?
« Reply #1 on: March 26, 2012, 03: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.
32 bit core4.7.7, Xprogs, Xorg-7.6, wbar, jwm  |  - Testing -
PPR, data persistence through filetool.sh          |  32 bit core 8.0 alpha 1
USB Flash drive, one partition, ext2, grub4dos  | Otherwise similar

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: how to make so that all extentions icons to fit on wbar?
« Reply #2 on: March 27, 2012, 09: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.
« Last Edit: March 27, 2012, 09:17:04 PM by roberts »
10+ Years Contributing to Linux Open Source Projects.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: how to make so that all extentions icons to fit on wbar?
« Reply #3 on: March 27, 2012, 10:29:37 PM »
Perhaps extend the boot option noicons to also accept the format noicons=ondemand.

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: how to make so that all extentions icons to fit on wbar?
« Reply #4 on: March 28, 2012, 01:25:11 AM »
Sounds good to me. Will look into its implementation.
10+ Years Contributing to Linux Open Source Projects.

Offline AbNoRMiS

  • Hero Member
  • *****
  • Posts: 550
  • nothing can be impeccable in this imperfect world
    • @ß№®M!$
Re: how to make so that all extentions icons to fit on wbar?
« Reply #5 on: March 28, 2012, 09: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

« Last Edit: March 28, 2012, 09:28:23 PM by AbNoRMiS »
Basic Design Concept © @ß№®M!$
please forgive my terrible english :)

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: how to make so that all extentions icons to fit on wbar?
« Reply #6 on: March 28, 2012, 09: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!
10+ Years Contributing to Linux Open Source Projects.

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: how to make so that all extentions icons to fit on wbar?
« Reply #7 on: March 28, 2012, 09: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
« Last Edit: April 08, 2012, 11:06:20 AM by roberts »
10+ Years Contributing to Linux Open Source Projects.

Offline AbNoRMiS

  • Hero Member
  • *****
  • Posts: 550
  • nothing can be impeccable in this imperfect world
    • @ß№®M!$
Re: how to make so that all extentions icons to fit on wbar?
« Reply #8 on: March 29, 2012, 12:16:37 AM »
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 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
« Last Edit: March 29, 2012, 12:58:27 AM by AbNoRMiS »
Basic Design Concept © @ß№®M!$
please forgive my terrible english :)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11027
Re: how to make so that all extentions icons to fit on wbar?
« Reply #9 on: March 29, 2012, 06: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.
The only barriers that can stop you are the ones you create yourself.

Offline AbNoRMiS

  • Hero Member
  • *****
  • Posts: 550
  • nothing can be impeccable in this imperfect world
    • @ß№®M!$
Re: how to make so that all extentions icons to fit on wbar?
« Reply #10 on: March 30, 2012, 05: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
« Last Edit: March 30, 2012, 06:06:45 PM by AbNoRMiS »
Basic Design Concept © @ß№®M!$
please forgive my terrible english :)

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: how to make so that all extentions icons to fit on wbar?
« Reply #11 on: April 10, 2012, 01:57:18 AM »
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.
10+ Years Contributing to Linux Open Source Projects.

Offline AbNoRMiS

  • Hero Member
  • *****
  • Posts: 550
  • nothing can be impeccable in this imperfect world
    • @ß№®M!$
Re: how to make so that all extentions icons to fit on wbar?
« Reply #12 on: April 12, 2012, 09: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
« Last Edit: April 12, 2012, 09:56:54 PM by AbNoRMiS »
Basic Design Concept © @ß№®M!$
please forgive my terrible english :)

Offline AbNoRMiS

  • Hero Member
  • *****
  • Posts: 550
  • nothing can be impeccable in this imperfect world
    • @ß№®M!$
Re: how to make so that all extentions icons to fit on wbar?
« Reply #13 on: April 12, 2012, 09: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

it would be nice if when wbarconf starting
then option position would have the same value
as in the config file .wbarconf
Basic Design Concept © @ß№®M!$
please forgive my terrible english :)

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: how to make so that all extentions icons to fit on wbar?
« Reply #14 on: April 13, 2012, 07: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.
10+ Years Contributing to Linux Open Source Projects.