← Back to team overview

torios-dev team mailing list archive

Re: yad in Debian Jessie and the homebrew indicator

 

Hi Israel,

It is nice to read your updates, and get the feeling that things are
happening in ToriOS again :-)

Best regards
Nio

Den 2016-02-23 kl. 17:42, skrev Israel:
> Hey everyone,
> it seems that webupd8 has a PPA for yad.
> I have successfully built the ISO and installed yad in the live version.
> I have tested some of our small tray icons, and they seem to do decently
> well.  There are a few things I will need to tweak and work out, but it
> looks good.  I think I can modify the .jwmrc and our programs to work
> well with this setup.  I can exit 1 from them if yad is not installed,
> and no arguments are passed (in case we want to use the dialogs in the
> program for information purposes in other settings).
> This will allow me to do something like:
> torios-battery | xfce4-power-manager
> torios-volume | volumeicon
> etc...
> I also have a minimally working installer icon.  This would allow the
> user to simply search for a package to install from a tray icon.
> 
> I also have a minimalistic tray icon written in c now that performs many
> simple tasks based on command line parameters.
> This includes:
> setting the tray icon
> setting the tray icon's tooltip
> creating a menu based on :delimited list (NAME:ACTION:NAME:ACTION...etc)
> and the ability to create a small info dialog from it, as well (the icon
> would be the same as the tray icon)
> I have not yet implemented changing the icon during runtime, or changing
> anything else while it is running.
> It is small >200 lines
> and compiles quite small (15K)
> so it suits our purposes quite well.  There is a bit of work to make it
> able to change the icon (in the case of a battery, volume,network
> indicator), but it will work for many other small purposes.
> I have tested it using something like bash -c 'command to run' which
> means in a script you could potentially
> export -f functionname
> and then use bash -c 'functionname' as a commandline parameter.
> 
> I am still getting used to GTK (instead of FLTK) and C rather than C++
> So even if we do not use this for ToriOS, it is (like everything else) a
> nice experiment for me to learn from.
> 



Follow ups

References