xmenu/.git
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.

3 years agoAdded xft support (smooth fonts)
phillbush [Tue, 19 May 2020 01:27:56 +0000 (22:27 -0300)]
Added xft support (smooth fonts)

3 years agoxmenu now can be operated by keyboard
phillbush [Sun, 17 May 2020 20:01:46 +0000 (17:01 -0300)]
xmenu now can be operated by keyboard

3 years ago`make install` now install the manpage
phillbush [Sun, 17 May 2020 04:28:04 +0000 (01:28 -0300)]
`make install` now install the manpage

3 years agoxmenu now supports x resources
phillbush [Sun, 17 May 2020 04:22:21 +0000 (01:22 -0300)]
xmenu now supports x resources

3 years agoconfig.h
phillbush [Sun, 17 May 2020 03:12:59 +0000 (00:12 -0300)]
config.h

3 years agoXmenu now has a man page.
phillbush [Sun, 17 May 2020 03:08:23 +0000 (00:08 -0300)]
Xmenu now has a man page.

3 years agoThe README file referred to dwm
phillbush [Sat, 16 May 2020 21:01:14 +0000 (18:01 -0300)]
The README file referred to dwm

3 years agobetter-looking color scheme
phillbush [Sat, 16 May 2020 18:08:25 +0000 (15:08 -0300)]
better-looking color scheme

I just stole the colors from firefox's context menu.

3 years agoimproved algorithm for mapping/unmapping
phillbush [Sat, 16 May 2020 17:43:07 +0000 (14:43 -0300)]
improved algorithm for mapping/unmapping

In previous versions, all the previous current visible menus are
unmapped and the new currently visible menus are mapped when the
current visible menu changed. Now, using an algorithm that finds
the lowest common ancestor between current and current_new menus,
only the necessary menus are remapped on the display.

3 years agoimproved algorithm that draw menus
phillbush [Sat, 16 May 2020 05:14:29 +0000 (02:14 -0300)]
improved algorithm that draw menus

3 years agoNOW IN PUBLIC DOMAIN!
phillbush [Sat, 16 May 2020 04:28:57 +0000 (01:28 -0300)]
NOW IN PUBLIC DOMAIN!

3 years agowidth is now calculated from the font
phillbush [Sat, 16 May 2020 04:24:43 +0000 (01:24 -0300)]
width is now calculated from the font

3 years agoA better triangle
phillbush [Sat, 16 May 2020 03:58:32 +0000 (00:58 -0300)]
A better triangle

Now the triangle indicating submenus is smaller and better looking.

3 years agousing pixmaps
phillbush [Sat, 16 May 2020 03:43:59 +0000 (00:43 -0300)]
using pixmaps

Using pixmaps rather than drawing directly on windows.

3 years agoxmenu now works on tile window managers
phillbush [Sat, 16 May 2020 02:10:16 +0000 (23:10 -0300)]
xmenu now works on tile window managers

The windows now set size hints for maximum and minimum size.

3 years agoTest
phillbush [Sat, 16 May 2020 02:08:05 +0000 (23:08 -0300)]
Test

3 years agoAdded separators
phillbush [Sat, 16 May 2020 01:51:26 +0000 (22:51 -0300)]
Added separators

Now lines without labels in the input generate a menu separator.

3 years agoitem->y is now relative to menu, not to root
phillbush [Sat, 16 May 2020 01:25:05 +0000 (22:25 -0300)]
item->y is now relative to menu, not to root

3 years agoInitial commit
phillbush [Fri, 15 May 2020 22:02:23 +0000 (19:02 -0300)]
Initial commit