Author Topic: Is dmenu still alive?  (Read 10832 times)

Stephanie

  • Guest
Re: Is dmenu still alive?
« Reply #20 on: May 09, 2010, 02:43:04 pm »
Wow now the pressure is on!  :)

Well here's my plan...

Hold select & press start, to open a little dialog window with a few options:
  • About dmenu
  • dmenu settings
  • Add shortcut here
  • Edit current shortcut
  • Remove current shortcut
  • Quit dmenu

The about option will list stuff like the current version, along with maybe some system data like free memory, space on the sd card, et cetera.

The dmenu settings option will open a little menu with options for changing theme, wallpaper, font colour, along with toggling the various on-screen-displays (battery, sound, time, clockspeed) -- essentially, everything in the dmenu.ini file should be configurable from within dmenu.

The add shortcut here option will open a screen where you need to put in the settings for the new shortcut. There will be some limitations, at least at first... but I picture using the file selector to navigate to where the executable is, then the file or image selector to pick an icon, a checkbox to say if it needs a file selector or not. Getting the name value, I'm not sure about. Maybe just use the name of the executable, till I can figure out the keyboard stuff.  When finished, it would have to insert the shortcut into the appropriate cfg file.

The edit shortcut would use the same screen as above but let you modify it and re-save it. The current shortcut is the one that is 'active' on the screen when you hit the select+start buttons.

The delete shortcut would ask for confirmation, then would remove the current shortcut from the appropriate cfg file. As above, 'current' means the one that is 'active' when the function is triggered.

The quit option just terminates the current dmenu session.

So that's my plan... it'll be a big challenge but I'm sure it is all possible. So far, the only thing actually in place is I've got the select button set as a 'modifyer' now, and select+start activates the quit function.

I'm going to start with getting the dialog window with the options to come up, then the about, settings & quit options, and then tackle the shortcut functions.

Cheers!

p.s. I just realized, there will need to be a 'move shortcut' function as well, so you can move them around. :)

darfgarf

  • Guest
Re: Is dmenu still alive?
« Reply #21 on: May 09, 2010, 02:49:11 pm »
sounds like a plan, better get learning how to use sdl  ;D

move shortcut would be the icing on the cake
by quit do you mean shutdown? as if you quit, the main script will just relaunch dmenu

Stephanie

  • Guest
Re: Is dmenu still alive?
« Reply #22 on: May 09, 2010, 02:54:06 pm »
Adding reboot and shutdown options would be a good idea too.

By quit I just meant quit dmenu. In version 0.6 just pressing select will quit dmenu. It gets relaunched immediately of course, because inittab respawns the /boot/local/sbin/main script which in turn launches dmenu. 

I just figured, the option exists now so I'd leave it there, but relocate it.

rookie1

  • Guest
Re: Is dmenu still alive?
« Reply #23 on: May 21, 2010, 03:13:09 pm »
Hi Stephanie, finally got some time to test your changes on my dingoo. A quick question, in conf.c, function conf_unload (line 321 - 325), you have commented out the block which saves the config file. This causes the volume and brightness settings not being saved. I'm wondering why you have commented this out. Any particular reason?

Stephanie

  • Guest
Re: Is dmenu still alive?
« Reply #24 on: May 21, 2010, 03:22:41 pm »
Hi Stephanie, finally got some time to test your changes on my dingoo. A quick question, in conf.c, function conf_unload (line 321 - 325), you have commented out the block which saves the config file. This causes the volume and brightness settings not being saved. I'm wondering why you have commented this out. Any particular reason?

I commented that block out for now because it was writing out the ini file every time dmenu shut down; like every time a game or app was launched, dmenu was writing to the ini file even if there were no changes. Ideally it should only write that file if there are changes to it, which isn't going to be difficult to implement. In the short term though I was mostly trying to cut down writes to the SD card.

Cheers!
 

Stephanie

  • Guest
Re: Is dmenu still alive?
« Reply #25 on: May 22, 2010, 06:09:47 pm »
Just a quick update, I've fixed this in my working code now. I defined a value conf_changed in conf.c and reference it in main.c, if either the brightness or sound volume are changed then conf_changed is set to 1.

I've uncommented the code block in conf.c and added the conditional, if (conf_changed == 1) before the file write, so the dmenu.ini file is only written out during shutdown if the volume or brightness have been changed. (as you know the ini file is written immediately when the background, theme, or font colour are changed.)

Cheers!

rookie1

  • Guest
Re: Is dmenu still alive?
« Reply #26 on: May 27, 2010, 02:05:40 pm »
Hi Stephanie, finally got around to add you in the project. Now you should be able to commit to svn. Please let me if you encounter any problem.

Stephanie

  • Guest
Re: Is dmenu still alive?
« Reply #27 on: May 27, 2010, 03:35:57 pm »
Thanks very much! I've been busy with the 64MB version of Dingux but with that now just about finished, I'm looking forward to getting back at dmenu.

Cheers!

rookie1

  • Guest
Re: Is dmenu still alive?
« Reply #28 on: May 27, 2010, 04:27:08 pm »
Just a quick update, I'm working on menu animations. Have committed a change to have animated (smooth) scrolling for the main menu. Still pondering how to do it for the menu items (vertical scroll). It might be a good idea to sync up your local copy before making modifications.

xdpirate

  • * Former Staff
  • Posts: 489
    • My software
Re: Is dmenu still alive?
« Reply #29 on: May 27, 2010, 05:56:53 pm »
Steph and rookie1 - Dream Team!

Looking forward to seeing an improved dmenu! (Gmenu2x just looks too.. gp2x..) :)
Nintendo DSi, Black, v1.4.1 with R4i Gold 3DS
Nintendo DSi, Pokemon White Limited Edition
PSP-1000, Pink, 6.60-PRO C2
iPhone 4, White, iOS 7.0.2
Raspberry Pi, Model B, 512M

ruffnutts

  • ****
  • Posts: 2671
Re: Is dmenu still alive?
« Reply #30 on: June 04, 2010, 10:37:13 pm »
Stephanie you are unreal lol - any chance of TV -out on dingux?  ;)

quadomatic

  • * Former Staff
  • DingooWiki Admin
  • Posts: 72
    • Dingoonity
Re: Is dmenu still alive?
« Reply #31 on: June 06, 2010, 09:24:48 am »
(Gmenu2x just looks too.. gp2x..) :)

Heh, that's one of the big draws for me, aside from it being incredibly convenient.

Stephanie

  • Guest
Re: Is dmenu still alive?
« Reply #32 on: June 06, 2010, 04:33:20 pm »
Just a quick update, I'm working on menu animations. Have committed a change to have animated (smooth) scrolling for the main menu. Still pondering how to do it for the menu items (vertical scroll). It might be a good idea to sync up your local copy before making modifications.

The animations look good. Hope I don't sound picky but is it possible to speed them up just a tad? It feels a bit 'slower' though it is prettier.

I've just synced up and committed the stuff I've been working on, which admittedly isn't much lately. I've got the OSD text now matching the user's chosen font colour (rather than just white), and I'm hoping to get the OSD icons to do the same, so that the user can have the whole display match their desired colour. I also incorporated the fix so that volume / brightness changes are saved, and found and removed a stray write to dmenu/.tmp (changed it to /tmp/.tmp) so that should be the last of the extra writes to the sd card.

Oh and I added a shutdowndelay option, like the one in the native firmware. If it's set to more than 0 seconds, then if you are idling in dmenu for shutdowndelay seconds, the Dingoo will power off (unless it is currently charging). It defaults to 0 seconds so it's disabled by default.

For what it's worth, I haven't had a single corruption issue since the loading screen was added and the .next was moved to /tmp - that's over a month or so I think. I think/hope that is entirely fixed now.

Cheers!

kmilloz

  • *
  • Posts: 23
Re: Is dmenu still alive?
« Reply #33 on: June 06, 2010, 08:19:36 pm »

rollo

  • *
  • Posts: 9
Re: Is dmenu still alive?
« Reply #34 on: June 12, 2010, 12:52:05 am »
Stephanie
I'm dmenu-liker too
Can you upload some files in your dmenu to display cpu clock?
I can't compile
Sorry for my poor English

sirpicklesiv

  • Posts: 4
Re: Is dmenu still alive?
« Reply #35 on: August 22, 2015, 02:59:13 am »
Hi Stephanie, sorry for responding late. Do you mind sending me a diff with your changes? If you don't mind, I'd like to take a look at your changes before committing them to svn. If you are working on a svn copy, simply run 'svn diff > your_change.diff' at the dmenu directory will create a diff file called 'your_change.diff'. You can post it in this thread.
I hate to bring up something that seems dead, but the last changes on the Google code site two days after you posted this. Does that fix all the problems listed in this forum post?

 

Post a new topic