WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Flit: an FLTK-native "tray" with clock, sound control, and battery monitor  (Read 26877 times)

Offline MikeLockmoore

  • Hero Member
  • *****
  • Posts: 503
  • Good software needn't be big!
Robert: Glad to hear it!  :D  Did you have to do something to OSS outside of Flit?  Did you need to supply a custom oss_control_name?  

About keyboard shortcuts: I have wanted to at least trap the esc key, since it seems to hide the Flit window without killing it... not very friendly behavior.  While I'm at it, I could try to make some kind of keyboard shortcut for changing the sound level.  Or maybe if I pop up a slider widget, it would already have some keystroke shortcuts built in?  I'll experiment with it and let people try it out.
--
Mike L.

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
I didn't do anything. Just compiled and started the new version and noticed vol was at 100 instead of 250, Mouse wheel adjusted the volume as expected.
10+ Years Contributing to Linux Open Source Projects.

Offline MikeLockmoore

  • Hero Member
  • *****
  • Posts: 503
  • Good software needn't be big!
Flit now has keyboard shortcuts:

Louder: Menu + Alt+U, or Up arrow cursor key, or + key
Quieter: Menu + Alt+L, or Down arrow cursor key, or - key
Mute/Unmute: Menu + Alt+M, or Pause key

You can also now pop open the menu with the Esc. key.

The non-diag version of Flit still compiles to less (barely!) than 20 kb.

Updated source code and help file posted here.
--
Mike L.
« Last Edit: August 31, 2009, 09:27:47 PM by MikeLockmoore »

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 11901
Re: Flit: an FLTK-native "tray" with clock, sound control, and battery monitor
« Reply #33 on: September 01, 2009, 06:09:07 AM »
I gave v0.92 a spin - looks good.

The volume control works up to a limit of 100 - I didn't have much time to look at this, so I'm not sure if this is imposed by flit, the limit of the device, OSS, or what...

The always-on-top bit works with a terminal window and beaver with no file opened, but is hidden by beaver with a file open, emelfm and gtkfind.

Offline MikeLockmoore

  • Hero Member
  • *****
  • Posts: 503
  • Good software needn't be big!
Re: Flit: an FLTK-native "tray" with clock, sound control, and battery monitor
« Reply #34 on: September 01, 2009, 11:21:20 AM »
Juanito:

Flit normalizes the sound levels to a range of 0 to 100, even if your device uses some other range natively.

I don't have a good solution yet for the window always-on-top behavior.  The X11 Windows system does not easily support such an option...  it's more like: if any windows have covered you up, pop yourself over them.  Some people see this as kind of obnoxious, but I'd still kinda of like having this as an option.  I just don't know if I can fully pull it off without messing up the input focus for other apps.
--
ML
« Last Edit: September 01, 2009, 07:51:58 PM by MikeLockmoore »

Offline alu

  • Sr. Member
  • ****
  • Posts: 429
Re: Flit: an FLTK-native "tray" with clock, sound control, and battery monitor
« Reply #35 on: September 06, 2009, 05:58:06 AM »
flit looks really nice; i would add the date as an option (useful for me since i am using evilwm); with evilwm, wenn i want to hide the volume icon, it hides the time (only the volume icon remains); is this flit or evilwm? very nice app Mike, thanks

Offline clach04

  • WikiUser
  • *
  • Posts: 31
Re: Flit: an FLTK-native "tray" with clock, sound control, and battery monitor
« Reply #36 on: September 06, 2009, 07:54:17 AM »
Great little app! With the release included in TC 2.3 (0.9.2?) when new desktops are added (e.g. CTRL+F2) flit is only visible on Desktop 1. Any way to change this? I've not worked out how too make it sticky (is they any way to make it auto sticky?) using the sticky menu in flwm.

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Flit: an FLTK-native "tray" with clock, sound control, and battery monitor
« Reply #37 on: September 06, 2009, 08:03:15 AM »
To make it sticky is the same procedure to move an app to a different desktop.
Select the desktop to move there, then popup menu and select the app.
Sticky desktop only shows when more than one desktop has been selected.
flwm always starts with minimal resources, i.e., initially only one desktop.

Note too, that without moving to Sticky desktop, you can always popup menu and select flit thusraising it, thereby it is visible, overlaying the currently displayed app/window.
10+ Years Contributing to Linux Open Source Projects.

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Flit: an FLTK-native "tray" with clock, sound control, and battery monitor
« Reply #38 on: September 07, 2009, 12:26:29 AM »
Note too, that without moving to Sticky desktop, you can always popup menu and select flit thusraising it, thereby it is visible, overlaying the currently displayed app/window.

or create a flit-start script that kills the previous instance and loads another, so it's on top (only) when you need it.  This works nicely with a jwm hotkey.  
« Last Edit: September 07, 2009, 12:30:35 AM by jpeters »

Offline MikeLockmoore

  • Hero Member
  • *****
  • Posts: 503
  • Good software needn't be big!
Re: Flit: an FLTK-native "tray" with clock, sound control, and battery monitor
« Reply #39 on: September 07, 2009, 08:28:35 PM »
Interesting idea, jpeters.  I'll have to try it out sometime. -- Mike

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Flit: an FLTK-native "tray" with clock, sound control, and battery monitor
« Reply #40 on: September 08, 2009, 12:41:22 AM »
Interesting idea, jpeters.  I'll have to try it out sometime. -- Mike

flit works great on my Dell laptops; very useful, Mike.  
« Last Edit: September 08, 2009, 08:28:31 AM by jpeters »

Offline MikeLockmoore

  • Hero Member
  • *****
  • Posts: 503
  • Good software needn't be big!
Re: Flit: an FLTK-native "tray" with clock, sound control, and battery monitor
« Reply #41 on: September 08, 2009, 09:08:43 PM »
Glad to hear it!  It was one of those "itches" I wanted to scratch, as I think E. Raymond has put it.  But it is nice to hear others find it useful.
--
Mike L.

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Flit: an FLTK-native "tray" with clock, sound control, and battery monitor
« Reply #42 on: September 08, 2009, 10:40:40 PM »
on Dell Mini 9, battery reports strange hours.
87% about -2147483648hrs -2147483648min remianing.
10+ Years Contributing to Linux Open Source Projects.

Offline MikeLockmoore

  • Hero Member
  • *****
  • Posts: 503
  • Good software needn't be big!
Re: Flit: an FLTK-native "tray" with clock, sound control, and battery monitor
« Reply #43 on: September 09, 2009, 06:48:12 AM »
roberts:

Maybe you got the lithium-tachyon battery cell option on your Dell?  :D

More seriously, I'll try to fix this.  Is it during the charging cycle or discharging?

Everybody: If you see strange battery charge levels or time estimates (either charging or discharging), please post the contents of your /proc/acpi/battery/BATT*/state pseudo-file and also the /proc/acpi/battery/BATT*/info pseudo-file.  Also, if you have a copy of Flit built with the with the DIAG output enabled and launch it from the command-line, you should see battery info and status updates every 6 seconds.  Maybe post a sample of that too, starting from the app startup and going 30 seconds or so.

If there is a difference in your battery info or status files that lead to crazy math results, I'll try to enhance the parsing in Flit to handle it properly.

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Flit: an FLTK-native "tray" with clock, sound control, and battery monitor
« Reply #44 on: September 09, 2009, 11:32:41 PM »
Dell Mini 9
info
Code: [Select]
present:                 yes
design capacity:         3200 mAh
last full capacity:      3200 mAh
battery technology:      rechargeable
design voltage:          11100 mV
design capacity warning: 420 mAh
design capacity low:     156 mAh
capacity granularity 1:  264 mAh
capacity granularity 2:  3780 mAh
model number:           
serial number:           11
battery type:            Lion
OEM info:                DELL

state:
Code: [Select]
present:                 yes
capacity state:          ok
charging state:          discharging
present rate:            0 mA
remaining capacity:      3168 mAh
present voltage:         11100 mV
10+ Years Contributing to Linux Open Source Projects.