xmenu/.git
3 years agoadd alignment
phillbush [Tue, 15 Dec 2020 16:14:57 +0000 (13:14 -0300)]
add alignment

3 years agoadd -r option
phillbush [Mon, 9 Nov 2020 19:46:25 +0000 (16:46 -0300)]
add -r option

3 years agofix #16
phillbush [Sun, 18 Oct 2020 15:17:46 +0000 (12:17 -0300)]
fix #16

3 years agomake makefile portable
phillbush [Tue, 6 Oct 2020 16:41:49 +0000 (13:41 -0300)]
make makefile portable

3 years agoremove typo
phillbush [Sun, 27 Sep 2020 22:06:12 +0000 (19:06 -0300)]
remove typo

3 years agoconform code to my new coding style
phillbush [Sun, 27 Sep 2020 22:01:13 +0000 (19:01 -0300)]
conform code to my new coding style

3 years agofix comment on parsefonts()
phillbush [Tue, 22 Sep 2020 22:30:31 +0000 (19:30 -0300)]
fix comment on parsefonts()

3 years agoadd lastitem and adapt code to general code style
phillbush [Tue, 22 Sep 2020 22:18:15 +0000 (19:18 -0300)]
add lastitem and adapt code to general code style

3 years agoMerge pull request #14 from Malod219/master
phillbush [Tue, 22 Sep 2020 22:12:51 +0000 (22:12 +0000)]
Merge pull request #14 from Malod219/master

Number key support

3 years agoFix loop around for number keys
RisingThumb [Tue, 22 Sep 2020 21:41:16 +0000 (22:41 +0100)]
Fix loop around for number keys

3 years agoSupport for 1-9 numbers to select specific item
RisingThumb [Tue, 22 Sep 2020 21:31:12 +0000 (22:31 +0100)]
Support for 1-9 numbers to select specific item

3 years agoadd reference to new features on the manual
phillbush [Thu, 17 Sep 2020 03:54:35 +0000 (00:54 -0300)]
add reference to new features on the manual

3 years agonow user can set custom key bindings in config.h
phillbush [Thu, 17 Sep 2020 01:06:12 +0000 (22:06 -0300)]
now user can set custom key bindings in config.h

3 years agoAdd support for Home and End keys for moving
phillbush [Thu, 17 Sep 2020 00:48:46 +0000 (21:48 -0300)]
Add support for Home and End keys for moving

3 years agofree stuff earlier, when they're no longer used
phillbush [Thu, 17 Sep 2020 00:04:43 +0000 (21:04 -0300)]
free stuff earlier, when they're no longer used

3 years agoNOW IN MIT/X LICENSE
phillbush [Sun, 13 Sep 2020 19:45:22 +0000 (16:45 -0300)]
NOW IN MIT/X LICENSE

3 years agoadd XFree(info), simplify README.md
phillbush [Mon, 24 Aug 2020 01:26:23 +0000 (22:26 -0300)]
add XFree(info), simplify README.md

3 years agoImage loading error now just warns.
phillbush [Wed, 12 Aug 2020 23:49:55 +0000 (20:49 -0300)]
Image loading error now just warns.

Rather than exiting with error.

3 years agoImproving error messages for icon loading
phillbush [Wed, 12 Aug 2020 23:29:33 +0000 (20:29 -0300)]
Improving error messages for icon loading

3 years agoImproving some error messages
phillbush [Wed, 12 Aug 2020 23:05:09 +0000 (20:05 -0300)]
Improving some error messages

3 years agocannot → could not
phillbush [Wed, 12 Aug 2020 23:01:05 +0000 (20:01 -0300)]
cannot → could not

3 years agoAdding reference to xdg-xmenu, by OliverLew.
phillbush [Wed, 5 Aug 2020 12:30:08 +0000 (09:30 -0300)]
Adding reference to xdg-xmenu, by OliverLew.

3 years agoAdding xmenu.h
phillbush [Sat, 1 Aug 2020 18:42:34 +0000 (15:42 -0300)]
Adding xmenu.h

3 years agoadding tests, removing -f (it was too clumsy)
phillbush [Sat, 1 Aug 2020 18:38:26 +0000 (15:38 -0300)]
adding tests, removing -f (it was too clumsy)

3 years agosearch the system for font containing character
phillbush [Sat, 1 Aug 2020 18:12:57 +0000 (15:12 -0300)]
search the system for font containing character

3 years agoAdding routine getfontucode()
phillbush [Fri, 31 Jul 2020 22:50:50 +0000 (19:50 -0300)]
Adding routine getfontucode()

3 years agoAdding the -f option
phillbush [Fri, 31 Jul 2020 14:01:53 +0000 (11:01 -0300)]
Adding the -f option

3 years agoFreeing fonts
phillbush [Fri, 31 Jul 2020 13:09:26 +0000 (10:09 -0300)]
Freeing fonts

3 years agousing BETWEEN macro, and fixing fallback position
phillbush [Fri, 31 Jul 2020 12:22:13 +0000 (09:22 -0300)]
using BETWEEN macro, and fixing fallback position

3 years agofixing comment
phillbush [Fri, 31 Jul 2020 01:07:13 +0000 (22:07 -0300)]
fixing comment

3 years agoSimplifying manual, removing unused elements
phillbush [Fri, 31 Jul 2020 01:03:54 +0000 (22:03 -0300)]
Simplifying manual, removing unused elements

3 years agoFixing y position of child menus.
phillbush [Thu, 30 Jul 2020 20:24:58 +0000 (17:24 -0300)]
Fixing y position of child menus.

3 years agoNo more needed to use -i to disable icon padding
phillbush [Thu, 30 Jul 2020 20:04:04 +0000 (17:04 -0300)]
No more needed to use -i to disable icon padding

Now xmenu detects if a menu has an icon, and if it doesn't have, the
menu will not have the gaps fgor icons, making the -i flag unecessary
to disable the padding.   The -i option is still necessary, however,
to speed up xmenu loading, since it disables imlib2 initialization
routines.

3 years agoFixing position in some wms when using -w
phillbush [Thu, 30 Jul 2020 19:51:29 +0000 (16:51 -0300)]
Fixing position in some wms when using -w

3 years agoremoving variables config.screen*
phillbush [Thu, 30 Jul 2020 03:25:55 +0000 (00:25 -0300)]
removing variables config.screen*

3 years agochanging the computation of the text y position
phillbush [Thu, 30 Jul 2020 01:59:25 +0000 (22:59 -0300)]
changing the computation of the text y position

3 years agoAdding reference to the wiki on README
phillbush [Wed, 29 Jul 2020 21:19:47 +0000 (18:19 -0300)]
Adding reference to the wiki on README

3 years agoMerge pull request #9 from GideonWolfe/master
phillbush [Wed, 29 Jul 2020 21:17:58 +0000 (21:17 +0000)]
Merge pull request #9 from GideonWolfe/master

Reformat README to be nicer looking

3 years agoAdding config.mk
phillbush [Wed, 29 Jul 2020 21:09:06 +0000 (18:09 -0300)]
Adding config.mk

3 years agoAdding Xinerama support
phillbush [Wed, 29 Jul 2020 20:55:20 +0000 (17:55 -0300)]
Adding Xinerama support

3 years agoUpdate README.md
Gideon Wolfe [Wed, 29 Jul 2020 20:16:59 +0000 (13:16 -0700)]
Update README.md

3 years agoUpdate README.md
Gideon Wolfe [Wed, 29 Jul 2020 20:09:10 +0000 (13:09 -0700)]
Update README.md

3 years agoUpdate README.md
Gideon Wolfe [Wed, 29 Jul 2020 20:04:37 +0000 (13:04 -0700)]
Update README.md

little update to get people interested

3 years agoUpdate and rename README to README.md
Gideon Wolfe [Wed, 29 Jul 2020 20:03:09 +0000 (13:03 -0700)]
Update and rename README to README.md

3 years agoDrawing menus on demand, reordering functions
phillbush [Wed, 29 Jul 2020 14:37:38 +0000 (11:37 -0300)]
Drawing menus on demand, reordering functions

3 years agocomputing textwidth with the function drawtext
phillbush [Wed, 29 Jul 2020 04:19:45 +0000 (01:19 -0300)]
computing textwidth with the function drawtext

3 years agoAdded support for fallback fonts.
phillbush [Wed, 29 Jul 2020 03:51:08 +0000 (00:51 -0300)]
Added support for fallback fonts.

Also changed license.

3 years agoFixing #7
phillbush [Tue, 28 Jul 2020 17:51:12 +0000 (14:51 -0300)]
Fixing #7

Redrawing an icon every time the cursor moves between items costs a lot
of time.  So now each icon is drawn once, and s copied when needed.

3 years agoRemoving debug printf
phillbush [Thu, 23 Jul 2020 20:39:33 +0000 (17:39 -0300)]
Removing debug printf

3 years agoAdding the -p option.
phillbush [Thu, 23 Jul 2020 20:37:28 +0000 (17:37 -0300)]
Adding the -p option.

Changing config.cursx and config.cursy to config.posx and config.posy.
Adding the parseposition() function.

3 years agoadded the -i option
phillbush [Thu, 16 Jul 2020 01:57:59 +0000 (22:57 -0300)]
added the -i option

Widths and x positions no more depend on item->h.

3 years agoReferencing the gap X resource in the manual
phillbush [Mon, 29 Jun 2020 15:34:34 +0000 (12:34 -0300)]
Referencing the gap X resource in the manual

3 years agoAdding X resource for gaps
phillbush [Mon, 29 Jun 2020 15:32:02 +0000 (12:32 -0300)]
Adding X resource for gaps

3 years agoMoving XSetWMProtocols to setupmenu()
phillbush [Mon, 29 Jun 2020 15:25:59 +0000 (12:25 -0300)]
Moving XSetWMProtocols to setupmenu()

3 years agoAdding gaps support and more.
phillbush [Mon, 29 Jun 2020 15:20:37 +0000 (12:20 -0300)]
Adding gaps support and more.

• Adding support for gaps (#3)
• Adding more comments and categorizing function declarations.
• Adding support for EWMH properties (xmenu look is now consistent
  in some window compositors).
• Changing how configuration is done (now all configuration belongs
  to the config structure).

3 years agoSquashed commit of the following:
phillbush [Mon, 29 Jun 2020 13:01:54 +0000 (10:01 -0300)]
Squashed commit of the following:

commit b0f37c9fdb2deb09fa7af59067d57420bfaa87ea
Author: phillbush <phillbush@cock.li>
Date:   Mon Jun 29 09:58:36 2020 -0300

    Compile time error fixes

commit e6bf27768ff2ceeafb4713e90df6a35fa2294d1b
Author: Karl Martin <karlmartin895@gmail.com>
Date:   Sun Jun 28 23:08:02 2020 -0400

    v1.01

    add: user can set gap width prefs

commit 0cca2163092b9aed2823ca65b02959440ef24f41
Author: Karl Martin <karlmartin895@gmail.com>
Date:   Sun Jun 28 23:04:10 2020 -0400

    INIT: func addition + error fix

    hack + prefs: extra x,y padding for initial menu
    add: x padding for child menus
    fix: 2x compile time errors

3 years agoAdding reference to xclickroot.
phillbush [Wed, 24 Jun 2020 17:24:22 +0000 (14:24 -0300)]
Adding reference to xclickroot.

3 years agoMerge pull request #2 from emanuele6/patch-1
phillbush [Sat, 20 Jun 2020 18:49:48 +0000 (18:49 +0000)]
Merge pull request #2 from emanuele6/patch-1

Build: remove slashes after DESTDIR from commands in uninstall target

3 years agoBuild: remove slashes after DESTDIR from commands in uninstall target
Emanuele Torre [Tue, 16 Jun 2020 14:17:08 +0000 (16:17 +0200)]
Build: remove slashes after DESTDIR from commands in uninstall target

3 years agoConfiguring height directly by setting the height.
phillbush [Fri, 12 Jun 2020 14:37:13 +0000 (11:37 -0300)]
Configuring height directly by setting the height.

Rather than setting the padding.

3 years agoTypo
phillbush [Fri, 5 Jun 2020 21:36:21 +0000 (18:36 -0300)]
Typo

3 years agoUpdating config.mk, manual and README
phillbush [Mon, 1 Jun 2020 14:24:24 +0000 (11:24 -0300)]
Updating config.mk, manual and README

3 years agoUpdating README
phillbush [Mon, 1 Jun 2020 01:32:26 +0000 (22:32 -0300)]
Updating README

3 years agoReadding the -w option
phillbush [Mon, 1 Jun 2020 01:26:33 +0000 (22:26 -0300)]
Readding the -w option

3 years agoAdding some icons samples
phillbush [Sun, 31 May 2020 23:32:05 +0000 (20:32 -0300)]
Adding some icons samples

3 years agoMerging icons branch on master branch.
phillbush [Sun, 31 May 2020 23:29:46 +0000 (20:29 -0300)]
Merging icons branch on master branch.

And adjusting the geometry of items.

3 years agoRenaming routine and spliting it into subroutines
phillbush [Sat, 30 May 2020 21:56:59 +0000 (18:56 -0300)]
Renaming routine and spliting it into subroutines

Renaming calcmenu() to setupmenu() and shrinking it by calling two
new functions: setupmenusize() and setupmenupos().

3 years agoRemoving patches, using branches approach
phillbush [Sat, 30 May 2020 14:52:47 +0000 (11:52 -0300)]
Removing patches, using branches approach

3 years agoUpdating README to mention patches
phillbush [Sat, 30 May 2020 14:07:25 +0000 (11:07 -0300)]
Updating README to mention patches

3 years agoAdding icons patch
phillbush [Sat, 30 May 2020 14:04:03 +0000 (11:04 -0300)]
Adding icons patch

3 years agotypo
phillbush [Sat, 30 May 2020 12:45:11 +0000 (09:45 -0300)]
typo

3 years agocomment
phillbush [Sat, 30 May 2020 10:31:46 +0000 (07:31 -0300)]
comment

3 years agoMaking geom local to main().
phillbush [Sat, 30 May 2020 08:45:28 +0000 (05:45 -0300)]
Making geom local to main().

I moved all the geometry related code to calcmenu().

The pro is that geom is now a local variable rather than global;
and that all geometry-related code is now in one place.

The con is that it weakens performance a little bit since some
variables, such as the border, have to be reset after the window
creation.

3 years agoMentioning dmenu.gif in the README §Files section
phillbush [Sat, 30 May 2020 03:05:47 +0000 (00:05 -0300)]
Mentioning dmenu.gif in the README §Files section

3 years agoFixing segfault in case of empty input
phillbush [Sat, 30 May 2020 02:55:37 +0000 (23:55 -0300)]
Fixing segfault in case of empty input

3 years agoSimplifying parsing and data structure building
phillbush [Sat, 30 May 2020 02:48:49 +0000 (23:48 -0300)]
Simplifying parsing and data structure building

• Parsing of stdin was simplified by using conventional stdlib functions
  rather than parsing the stdin byte-by-byte.
• Splited parsing of textual input and building of internal data
  structures into two different functions.

3 years agoSaving users memory.
phillbush [Sat, 30 May 2020 01:52:55 +0000 (22:52 -0300)]
Saving users memory.

When the item->label and item->output are the same, XMenu now only
strdup() the item->label and make item->output equal to item->label.
This saves memory when the user do not write a output specification
in the input.

3 years agoAdding the demo gif to the repository.
phillbush [Sat, 30 May 2020 01:41:52 +0000 (22:41 -0300)]
Adding the demo gif to the repository.

3 years agoUpdated manpage, removed unused variables, etc.
phillbush [Sat, 30 May 2020 01:37:55 +0000 (22:37 -0300)]
Updated manpage, removed unused variables, etc.

• Updated manual page (removing mention to the removed -w option).
• Removed unused variables (dc.d).
• Freeing item's label and output.

3 years agoFixing calculation of menu position.
phillbush [Thu, 28 May 2020 00:43:10 +0000 (21:43 -0300)]
Fixing calculation of menu position.

The position didn't take into account the menu borders.
Also, freeing allocated menus and items.

3 years agoUpdating install commands in Makefile
phillbush [Wed, 27 May 2020 23:57:38 +0000 (20:57 -0300)]
Updating install commands in Makefile

3 years agoremoved a goto
phillbush [Wed, 27 May 2020 18:10:53 +0000 (15:10 -0300)]
removed a goto

3 years agoReordering stuff, removing unused variables
phillbush [Wed, 27 May 2020 17:34:55 +0000 (14:34 -0300)]
Reordering stuff, removing unused variables

3 years agoGetting rid of some global variables
phillbush [Wed, 27 May 2020 16:40:11 +0000 (13:40 -0300)]
Getting rid of some global variables

They are local now.

3 years agoImproved README
phillbush [Wed, 27 May 2020 14:19:49 +0000 (11:19 -0300)]
Improved README

3 years agoSeparated getmenuitem into two functions
phillbush [Wed, 27 May 2020 03:15:10 +0000 (00:15 -0300)]
Separated getmenuitem into two functions

3 years agoRefactored code, changed resources and config.h
phillbush [Tue, 26 May 2020 21:43:45 +0000 (18:43 -0300)]
Refactored code, changed resources and config.h

3 years agoRemoved the -w option (it was too buggy)
phillbush [Sun, 24 May 2020 01:06:21 +0000 (22:06 -0300)]
Removed the -w option (it was too buggy)

3 years agoCreating windowed branch for -w
phillbush [Sat, 23 May 2020 23:41:09 +0000 (20:41 -0300)]
Creating windowed branch for -w

I will remove the -w (windowed) option from the master branch, for it
raises more problems than solutions, I will maintain it in the windowed
branch.

3 years agoMenu windows are recalculated with -w
phillbush [Tue, 19 May 2020 16:41:11 +0000 (13:41 -0300)]
Menu windows are recalculated with -w

Every time a window is opened, its position is recalculated with
recalcmenu().

3 years agotrapping sighup in xmenu.sh
phillbush [Tue, 19 May 2020 13:22:24 +0000 (10:22 -0300)]
trapping sighup in xmenu.sh

3 years agoMake xmenu wait for another process to ungrab
phillbush [Tue, 19 May 2020 12:17:06 +0000 (09:17 -0300)]
Make xmenu wait for another process to ungrab

Xmenu didn't wait for another process to ungrab the poiter or keyboard,
ending up in erroneous behavior.  Now it waits.

3 years agoSimplifying the example script.
phillbush [Tue, 19 May 2020 09:22:00 +0000 (06:22 -0300)]
Simplifying the example script.

3 years agoReferring to the new changes in the manpage.
phillbush [Tue, 19 May 2020 08:56:06 +0000 (05:56 -0300)]
Referring to the new changes in the manpage.

3 years agoCorrectly setting WM_CLASS.
phillbush [Tue, 19 May 2020 08:51:21 +0000 (05:51 -0300)]
Correctly setting WM_CLASS.

3 years agoThe script now supposes that xmenu is installed
phillbush [Tue, 19 May 2020 07:49:33 +0000 (04:49 -0300)]
The script now supposes that xmenu is installed

3 years agosimple tweak on xmenu.sh
phillbush [Tue, 19 May 2020 07:47:35 +0000 (04:47 -0300)]
simple tweak on xmenu.sh

The script now runs in the background.

3 years agoFixed order of function calls
phillbush [Tue, 19 May 2020 02:05:14 +0000 (23:05 -0300)]
Fixed order of function calls

You must grab the keyboard after reading the input.

3 years agoFixed makefile
phillbush [Tue, 19 May 2020 02:00:29 +0000 (23:00 -0300)]
Fixed makefile

3 years agoFixed man page installation.
phillbush [Tue, 19 May 2020 01:56:53 +0000 (22:56 -0300)]
Fixed man page installation.