Re: [DNG] popupmenu: a new dynamic menu in Gtk2 for WMs
On Sat, May 19, 2018 at 02:20:13PM +, aitor_czr wrote: > > A small comment: Can you adjust your clock (again). Perhaps change the CMOS > > battery? You are more than 1.5 hours ahead:( > > Date: Thu, 17 May 2018 23:54:39 + (18/05/18 01:54:39) > > Yes, only 1.5 hours ahead! > > > What about installing ntpdate and run it with cron? > > Dear Svante, I significantly improved the behaviour of my random clock > since, a year ago today, i decided to install ntpdate in all my computers, > by the consensus of all the Veteran Unix Admins. > > I'm happy with the results, but sadly another factors come into play: the > time interval during the click event..., the specified time interval for > crontab... Currently i'm running ntpdate at every 40 miliseconds. If cronned ntpdate is not enough, you really need one of ntp daemons instead. Most of these are designed to handle such machines adequately. The common wisdom is to avoid running ntpdate from cron completely. Meow! -- ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢰⠒⠀⣿⡁ ⢿⡄⠘⠷⠚⠋⠀ Certified airhead; got the CT scan to prove that! ⠈⠳⣄ ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] popupmenu: a new dynamic menu in Gtk2 for WMs
Hi Svante, On 17/05/18 22:18, Svante Signell wrote: On Thu, 2018-05-17 at 23:54 +, aitor_czr wrote: Hi again, On 17/05/18 21:36, aitor_czr wrote: I' ve just pushed the latest code of the popupmenu: https://git.devuan.org/aitor_czr/popupmenu/tree/master Here you are the .deb packages: http://gnuinos.org/popupmenu/ Hi aitor_csr. Nice work:) A small comment: Can you adjust your clock (again). Perhaps change the CMOS battery? You are more than 1.5 hours ahead:( Date: Thu, 17 May 2018 23:54:39 + (18/05/18 01:54:39) Yes, only 1.5 hours ahead! What about installing ntpdate and run it with cron? Thanks! Dear Svante, I significantly improved the behaviour of my random clock since, a year ago today, i decided to install ntpdate in all my computers, by the consensus of all the Veteran Unix Admins. I'm happy with the results, but sadly another factors come into play: the time interval during the click event..., the specified time interval for crontab... Currently i'm running ntpdate at every 40 miliseconds. On the other hand, Steve Litt and other donors and enthusiasts sent me a dozen of tinfoil hats, in order to avoid possible negative energies in my mind, and therefore also in my computer. Iwear one of them all the while :-) Thank you again for your wise advice, Svante! Aitor. ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] popupmenu: a new dynamic menu in Gtk2 for WMs
On Thu, 2018-05-17 at 23:54 +, aitor_czr wrote: > Hi again, > On 17/05/18 21:36, aitor_czr wrote: > > I' ve just pushed the latest code of the popupmenu: > > > > https://git.devuan.org/aitor_czr/popupmenu/tree/master > > > Here you are the .deb packages: > > http://gnuinos.org/popupmenu/ Hi aitor_csr. Nice work :) A small comment: Can you adjust your clock (again). Perhaps change the CMOS battery? You are more than 1.5 hours ahead :( Date: Thu, 17 May 2018 23:54:39 + (18/05/18 01:54:39) What about installing ntpdate and run it with cron? Thanks! ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] popupmenu: a new dynamic menu in Gtk2 for WMs
Hi again, On 17/05/18 21:36, aitor_czr wrote: I' ve just pushed the latest code of the popupmenu: https://git.devuan.org/aitor_czr/popupmenu/tree/master Here you are the .deb packages: http://gnuinos.org/popupmenu/ I also announced it in the forum of bunsenlabs: https://forums.bunsenlabs.org/viewtopic.php?pid=71963#p71963 Cheers, Aitor. ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] popupmenu: a new dynamic menu in Gtk2 for WMs
Hi Steve: On 30/01/18 14:15, Steve Litt wrote: Menus are fun, aren't they? I' ve just pushed the latest code of the popupmenu: https://git.devuan.org/aitor_czr/popupmenu/tree/master For testing puposes, i removed the header and the footer (static parts of the menu) for now, in order to remove dependencies on concrete packages like gmrun or oblogout (bunsenlabs uses cb-exit, depending on dbus). So, the current version only contains the dynamic part of the popupmenu. You can build the packages as always: Clone the repository: $ git clone https://git.devuan.org/aitor_czr/popupmenu.git Go to it: $ cd popupmenu Install the packaging utilities: # apt-get install git-buildpackage pristine-tar Checkout the pristine-tar branch: $ git checkout pristine-tar Look at the content of the branch: $ ls -l total 16 -rw-r--r-- 1 aitor aitor 947 may 17 21:28 popupmenu_0.1.2.orig.tar.xz.delta -rw-r--r-- 1 aitor aitor 41 may 17 21:28 popupmenu_0.1.2.orig.tar.xz.id -rw-r--r-- 1 aitor aitor 876 may 17 21:28 popupmenu_0.1.3.orig.tar.bz2.delta -rw-r--r-- 1 aitor aitor 41 may 17 21:28 popupmenu_0.1.3.orig.tar.bz2.id Now checkout the most recent delta binary, that is 0.1.3 (note that the compress format has changed from tar.xz to tar.bz2): $ pristine-tar checkout ../popupmenu_0.1.3.orig.tar.bz2 Return to the master branch (if you want), and build the packages: $ git-buildpackage -j4 -tc --git-export-dir=".../build-area" Hope you like it! Cheers, Aitor. ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] popupmenu: a new dynamic menu in Gtk2 for WMs
On Thu, 29 Mar 2018 14:14:21 +0200 aitor_czr wrote: > Hi Steve, > > On 29/01/18 08:05, Steve Litt wrote: > > Hi Aitor, > > > > I skimmed your source, and also the source of menu-cache.h, which I > > found on the net someplace. I couldn't figure out the structure by > > which your menu hierarchy is stored on the hard disk. Do you have > > any documentation about configuring popupmenu's menu hierarchy? > > > > Does popupmenu's menu hierarchy get updated every time someone > > installs a new application? That would be a cool thing to add to > > UMENU2, but I have no idea how to do it. > > > > Does popupmenu have, or will it have, a mode by which someone can > > modify the menu hierarchy or add/delete/change menu items via an > > intuitive form that asks for and acquires user input? That's > > something UMENU2 doesn't have yet. > > > > You mentioned that part of popupmenu isn't as fast as you'd like > > (presumably slower than the user can type/mouse). Does popupmenu run > > anew everytime someone clicks on the start button? I'm pretty sure > > any time consumption at all comparable to human typing speed > > involves reading from the hard disk. In UMENU Classic I solved this > > by busting the hierarchy file into individual single menu files. It > > was a mess. UMENU2 puts the entire hierarchy in a directory tree, > > so the entirety of the requested menu's information is contained in > > the direct subdirectories of that menu entry's directory. Which > > makes it lightning fast. Maybe you can do something like UMENU > > Classic or UMENU2, or perhaps create an index file to point at > > specific menus within the hierarchy. Or maybe the code in > > menu-cache.h/menu-cache.c is meant to address this problem. > > > > Menus are fun, aren't they? > > > > SteveT > > I'm a bit confused about umenu. You talk about two (different?) > projects in troubleshooters.com: dmenu and umenu. Are they the same? No. Very different. Each has its use, with dmenu more commonly useful. I authored UMENU(2). The Suckless Tools people authored dmenu. > I thought that umenu was developed in python, but seems to be written > in perl, isn't it? The original was written in Perl in 1998. Since then, I've rewritten it in Ruby (mid 00's), then Lua (late 00's or early 10's), and then UMENU2 in Python. IMHO UMENU2 is much, much, much better than UMENU classic. > > BTW, there are two threads dedicated to dynamic menus in the forum of > bunsenlabs (if you want to follow them): > > https://forums.bunsenlabs.org/viewtopic.php?id=3387 > https://forums.bunsenlabs.org/viewtopic.php?pid=69755#p69755 Except for the tray menu, those are philosophically different from UMENU(2). UMENU is designed to be completely independent of the WM/DE, can be used without X because it's completely command line, and in its default config can even be used on a teletype terminal because its clearscreen function is 25 newlines. There can, and usually are, several UMENU instances running at once. UMENU is very effective at providing a menu front end to one or several complex command line programs so they appear to be a complete application. UMENU has Prompted Argument Substitution, so any menu command choice can be configured to prompt for its arguments. UMENU, your menu, and all the rest are miles apart from dmenu, from Suckless Tools, whose purpose is to provide a keystroke-narrowed list of executables from the executable path, so you can type a few characters, press Enter, and run the command. Dmenu doesn't substitute for these menus, nor do these menus substitute for dmenu. A well laid out menu hierarchy is easy, intuitive, discoverable, and fast. I wish they were used more often. SteveT Steve Litt April 2018 featured book: Troubleshooting Techniques of the Successful Technologist http://www.troubleshooters.com/techniques ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] popupmenu: a new dynamic menu in Gtk2 for WMs
Hi Steve, On 29/01/18 08:05, Steve Litt wrote: Hi Aitor, I skimmed your source, and also the source of menu-cache.h, which I found on the net someplace. I couldn't figure out the structure by which your menu hierarchy is stored on the hard disk. Do you have any documentation about configuring popupmenu's menu hierarchy? Does popupmenu's menu hierarchy get updated every time someone installs a new application? That would be a cool thing to add to UMENU2, but I have no idea how to do it. Does popupmenu have, or will it have, a mode by which someone can modify the menu hierarchy or add/delete/change menu items via an intuitive form that asks for and acquires user input? That's something UMENU2 doesn't have yet. You mentioned that part of popupmenu isn't as fast as you'd like (presumably slower than the user can type/mouse). Does popupmenu run anew everytime someone clicks on the start button? I'm pretty sure any time consumption at all comparable to human typing speed involves reading from the hard disk. In UMENU Classic I solved this by busting the hierarchy file into individual single menu files. It was a mess. UMENU2 puts the entire hierarchy in a directory tree, so the entirety of the requested menu's information is contained in the direct subdirectories of that menu entry's directory. Which makes it lightning fast. Maybe you can do something like UMENU Classic or UMENU2, or perhaps create an index file to point at specific menus within the hierarchy. Or maybe the code in menu-cache.h/menu-cache.c is meant to address this problem. Menus are fun, aren't they? SteveT I'm a bit confused about umenu. You talk about two (different?) projects in troubleshooters.com: dmenu and umenu. Are they the same? I thought that umenu was developed in python, but seems to be written in perl, isn't it? BTW, there are two threads dedicated to dynamic menus in the forum of bunsenlabs (if you want to follow them): https://forums.bunsenlabs.org/viewtopic.php?id=3387 https://forums.bunsenlabs.org/viewtopic.php?pid=69755#p69755 Cheers, Aitor. ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] popupmenu: a new dynamic menu in Gtk2 for WMs
Hi Steve, On 29/01/18 08:05, Steve Litt wrote: On Fri, 26 Jan 2018 14:51:32 +0100 aitor_czr wrote: Hi Steve: I read in the past your page in troubleshooters dedicated to umenu. I still didn't give it a try, but i'll do. On the other hand, i'm improving the response time of the header in the popupmenu. As some user in the IRC channel would say, this part needs more love:) Now, you need to add the whole "exec" field in the *.desktop entries as arguments in the command line, for example: popupmenu "exo-open --launch FileManager %u" "medit %F" otherwise, the application will be missing in the header. Hi Aitor, I skimmed your source, and also the source of menu-cache.h, which I found on the net someplace. I couldn't figure out the structure by which your menu hierarchy is stored on the hard disk. Do you have any documentation about configuring popupmenu's menu hierarchy? Does popupmenu's menu hierarchy get updated every time someone installs a new application? That would be a cool thing to add to UMENU2, but I have no idea how to do it. Does popupmenu have, or will it have, a mode by which someone can modify the menu hierarchy or add/delete/change menu items via an intuitive form that asks for and acquires user input? That's something UMENU2 doesn't have yet. You mentioned that part of popupmenu isn't as fast as you'd like (presumably slower than the user can type/mouse). Does popupmenu run anew everytime someone clicks on the start button? I'm pretty sure any time consumption at all comparable to human typing speed involves reading from the hard disk. In UMENU Classic I solved this by busting the hierarchy file into individual single menu files. It was a mess. UMENU2 puts the entire hierarchy in a directory tree, so the entirety of the requested menu's information is contained in the direct subdirectories of that menu entry's directory. Which makes it lightning fast. Maybe you can do something like UMENU Classic or UMENU2, or perhaps create an index file to point at specific menus within the hierarchy. Or maybe the code in menu-cache.h/menu-cache.c is meant to address this problem. Thanks for your interest on the popupmenu. I'll replay in more detail to your requests shortly. For now, i'll only clarify that the popupmenu's hierarchy is in the: void gen_menu (MenuCacheDir*, GtkWidget*); calling itself recursivelly. Clone the newest sources of the popupmenu. I pushed all the tags to the remote repository; so, you don't need to create the upstream/0.1.2 as you can see in the following screenshot, more sublevels are allowed under the root level in the directories hierarchy (in this case, the next level is libreoffice): http://gnuinos.org/2018-01-30--1517320487_1600x900_scrot.png I'll try to help you developing the GUI for your UMENU. This will not be very difficult, be sure. Menus are fun, aren't they? Yes, they are. This thread will be funny :) Have a nice day, Aitor. ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] popupmenu: a new dynamic menu in Gtk2 for WMs
On Fri, 26 Jan 2018 14:51:32 +0100 aitor_czr wrote: > Hi Steve: > I read in the past your page in troubleshooters dedicated to umenu. I > still didn't give it a try, but i'll do. > > On the other hand, i'm improving the response time of the header in > the popupmenu. As some user in the IRC channel would say, this part > needs more love :) Now, you need to add the whole "exec" field in the > *.desktop entries as arguments in the command line, for example: > > popupmenu "exo-open --launch FileManager %u" "medit %F" > > otherwise, the application will be missing in the header. Hi Aitor, I skimmed your source, and also the source of menu-cache.h, which I found on the net someplace. I couldn't figure out the structure by which your menu hierarchy is stored on the hard disk. Do you have any documentation about configuring popupmenu's menu hierarchy? Does popupmenu's menu hierarchy get updated every time someone installs a new application? That would be a cool thing to add to UMENU2, but I have no idea how to do it. Does popupmenu have, or will it have, a mode by which someone can modify the menu hierarchy or add/delete/change menu items via an intuitive form that asks for and acquires user input? That's something UMENU2 doesn't have yet. You mentioned that part of popupmenu isn't as fast as you'd like (presumably slower than the user can type/mouse). Does popupmenu run anew everytime someone clicks on the start button? I'm pretty sure any time consumption at all comparable to human typing speed involves reading from the hard disk. In UMENU Classic I solved this by busting the hierarchy file into individual single menu files. It was a mess. UMENU2 puts the entire hierarchy in a directory tree, so the entirety of the requested menu's information is contained in the direct subdirectories of that menu entry's directory. Which makes it lightning fast. Maybe you can do something like UMENU Classic or UMENU2, or perhaps create an index file to point at specific menus within the hierarchy. Or maybe the code in menu-cache.h/menu-cache.c is meant to address this problem. Menus are fun, aren't they? SteveT Steve Litt January 2018 featured book: Troubleshooting: Why Bother? http://www.troubleshooters.com/twb ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] popupmenu: a new dynamic menu in Gtk2 for WMs
Hi Steve: On 23/01/18 08:52, Steve Litt wrote: On Mon, 22 Jan 2018 15:57:25 +0100 "J. Fahrner" wrote: Am 2018-01-22 15:00, schrieb aitor_czr: Here you are a screenshot: https://git.devuan.org/aitor_czr/popupmenu/blob/master/screenshot.png Isn't it the same as the openbox pipemenu in package "openbox-menu"? Anyone interested in menus should also check out UMENU. Works in any text environment, keyboard only, no need to press Enter, very fast, infinitely configurable. It has almost no dependencies (no nCurses in the mix, no Yaml nor json nor XML to parse), written in pretty simple Python. Use it as a menu, or to give a menu front end to a complicated command line command or command line Domain Specific Language. http://troubleshooters.com/projects/umenu2/ for screenshots, instructions, explanations and download. SteveT I read in the past your page in troubleshooters dedicated to umenu. I still didn't give it a try, but i'll do. On the other hand, i'm improving the response time of the header in the popupmenu. As some user in the IRC channel would say, this part needs more love :) Now, you need to add the whole "exec" field in the *.desktop entries as arguments in the command line, for example: popupmenu "exo-open --launch FileManager %u" "medit %F" otherwise, the application will be missing in the header. You can build the package following the above steps in this thread, but replacing the tag upstream/0.1.1 by upstream/0.1.2. In the same way, the tag debian/0.1.1-1 has beenreplaced by debian/0.1.2-1 I'll also develop my own oblogout -named (maybe) ob-session-logout-, since the original one, developed by Corenominal, is given up. I'll add it to the popupmenu package as a recommended package. Cheers, Aitor. ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] popupmenu: a new dynamic menu in Gtk2 for WMs
On Mon, 22 Jan 2018 15:57:25 +0100 "J. Fahrner" wrote: > Am 2018-01-22 15:00, schrieb aitor_czr: > > > Here you are a screenshot: > > > > https://git.devuan.org/aitor_czr/popupmenu/blob/master/screenshot.png > > Isn't it the same as the openbox pipemenu in package "openbox-menu"? Anyone interested in menus should also check out UMENU. Works in any text environment, keyboard only, no need to press Enter, very fast, infinitely configurable. It has almost no dependencies (no nCurses in the mix, no Yaml nor json nor XML to parse), written in pretty simple Python. Use it as a menu, or to give a menu front end to a complicated command line command or command line Domain Specific Language. http://troubleshooters.com/projects/umenu2/ for screenshots, instructions, explanations and download. SteveT Steve Litt January 2018 featured book: Troubleshooting: Why Bother? http://www.troubleshooters.com/twb ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] popupmenu: a new dynamic menu in Gtk2 for WMs
Hi again, On 22/01/18 23:44, aitor_czr wrote: Hi Jochen, On 22/01/18 19:03, J. Fahrner wrote: As i explained to parazyd in the IRC channel, i'll add a LICENSE file because it uses some pieces of code from openbox-menu and mygtkmenu, giving credits to the authors. Ok, but I wonder whether there are advantages over openbox-menu? Openbox-menu is developed by Mateusz Łukasik (a developer of Linuxmint, i think). Only a few advantages over it: the popupmenu is mutilingual, and it has a better aesthetic appearance. Openbox-menu is also multilingual, i was comparing this feature with the root-menu of openbox. Cheers, Aitor. ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] popupmenu: a new dynamic menu in Gtk2 for WMs
Hi Jochen, On 22/01/18 19:03, J. Fahrner wrote: As i explained to parazyd in the IRC channel, i'll add a LICENSE file because it uses some pieces of code from openbox-menu and mygtkmenu, giving credits to the authors. Ok, but I wonder whether there are advantages over openbox-menu? Openbox-menu is developed by Mateusz Łukasik (a developer of Linuxmint, i think). Only a few advantages over it: the popupmenu is mutilingual, and it has a better aesthetic appearance. Aitor. ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] popupmenu: a new dynamic menu in Gtk2 for WMs
Am 2018-01-22 17:50, schrieb aitor_czr: > As i explained to parazyd in the IRC channel, i'll add a LICENSE file because > it uses some pieces of code from openbox-menu and mygtkmenu, giving credits > to the authors. Ok, but I wonder whether there are advantages over openbox-menu? Jochen___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] popupmenu: a new dynamic menu in Gtk2 for WMs
Hi J.Fahrner, El 22/01/2018 a las 15:57, J. Fahrner escribió: Am 2018-01-22 15:00, schrieb aitor_czr: Here you are a screenshot: https://git.devuan.org/aitor_czr/popupmenu/blob/master/screenshot.png Isn't it the same as the openbox pipemenu in package "openbox-menu"? As i explained to parazyd in the IRC channel, i'll add a LICENSE file because it uses some pieces of code from openbox-menu and mygtkmenu, giving credits to the authors. Cheers, Aitor. ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] popupmenu: a new dynamic menu in Gtk2 for WMs
Am 2018-01-22 15:00, schrieb aitor_czr: > Here you are a screenshot: > > https://git.devuan.org/aitor_czr/popupmenu/blob/master/screenshot.png Isn't it the same as the openbox pipemenu in package "openbox-menu"?___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] popupmenu: a new dynamic menu in Gtk2 for WMs
Hi again, On 22/01/18 15:00, aitor_czr wrote: Finally, replace the root-menu in your ./config/openbox/rc.xml file by the following lines: popupmenu terminator thunar medit And restart openbox: $ openbox --restart ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng