phillbush
693735f7eb
make tab cycle through matched items
2020-12-31 04:58:05 -03:00
phillbush
7bdb3b0bf8
rub out text when no item matches it
2020-12-29 22:45:49 -03:00
phillbush
b33886d7a2
add type-to-select support
2020-12-29 22:26:48 -03:00
phillbush
6bbc0e45ea
move actions to end of main loop
2020-12-29 19:40:17 -03:00
phillbush
f472bfacd9
prepare stuff for type-to-select
2020-12-29 19:22:50 -03:00
phillbush
6abae763c6
parse resources before command-line options
2020-12-29 18:56:50 -03:00
phillbush
27c03246ca
add alignment
2020-12-15 13:14:57 -03:00
phillbush
1146fd8114
add -r option
2020-11-09 16:46:25 -03:00
phillbush
ef667106e9
fix #16
2020-10-18 12:17:46 -03:00
phillbush
1ca0d0d6dc
make makefile portable
2020-10-06 13:41:49 -03:00
phillbush
1b566a9054
remove typo
2020-09-27 19:06:12 -03:00
phillbush
73a2a23dbd
conform code to my new coding style
2020-09-27 19:01:13 -03:00
phillbush
112e23c3e8
fix comment on parsefonts()
2020-09-22 19:30:31 -03:00
phillbush
c2959cf439
add lastitem and adapt code to general code style
2020-09-22 19:18:15 -03:00
phillbush
45115feb15
add reference to new features on the manual
2020-09-17 00:54:35 -03:00
phillbush
7b166488b1
now user can set custom key bindings in config.h
2020-09-16 22:06:12 -03:00
phillbush
006c94ce9c
Add support for Home and End keys for moving
2020-09-16 21:48:46 -03:00
phillbush
d3c2131250
free stuff earlier, when they're no longer used
2020-09-16 21:04:43 -03:00
phillbush
59a8a95056
NOW IN MIT/X LICENSE
2020-09-13 16:45:22 -03:00
phillbush
883ec17fe2
add XFree(info), simplify README.md
2020-08-23 22:26:23 -03:00
phillbush
f66f4c1823
Image loading error now just warns.
...
Rather than exiting with error.
2020-08-12 20:49:55 -03:00
phillbush
ed1650a70f
Improving error messages for icon loading
2020-08-12 20:29:33 -03:00
phillbush
70f5db0f88
Improving some error messages
2020-08-12 20:05:09 -03:00
phillbush
8a7bfdf89e
cannot → could not
2020-08-12 20:01:05 -03:00
phillbush
70063f16f5
Adding reference to xdg-xmenu, by OliverLew.
2020-08-05 09:30:08 -03:00
phillbush
0b0faa5fc4
Adding xmenu.h
2020-08-01 15:42:34 -03:00
phillbush
a48473fd8d
adding tests, removing -f (it was too clumsy)
2020-08-01 15:38:26 -03:00
phillbush
6d56f2796c
search the system for font containing character
2020-08-01 15:12:57 -03:00
phillbush
f8d55995df
Adding routine getfontucode()
2020-07-31 19:50:50 -03:00
phillbush
644a15bb2d
Adding the -f option
2020-07-31 11:01:53 -03:00
phillbush
7539247be3
Freeing fonts
2020-07-31 10:09:26 -03:00
phillbush
d2304ecf93
using BETWEEN macro, and fixing fallback position
2020-07-31 09:22:13 -03:00
phillbush
b1cf3ebd74
fixing comment
2020-07-30 22:07:13 -03:00
phillbush
7832d2cfa9
Simplifying manual, removing unused elements
2020-07-30 22:03:54 -03:00
phillbush
8e799bb47d
Fixing y position of child menus.
2020-07-30 17:24:58 -03:00
phillbush
a2ff706d6f
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.
2020-07-30 17:04:04 -03:00
phillbush
c15958bd96
Fixing position in some wms when using -w
2020-07-30 16:51:29 -03:00
phillbush
b6cf4847ce
removing variables config.screen*
2020-07-30 00:25:55 -03:00
phillbush
64240f40ee
changing the computation of the text y position
2020-07-29 22:59:25 -03:00
phillbush
0bb241472b
Adding reference to the wiki on README
2020-07-29 18:19:47 -03:00
phillbush
26cb0bfcf2
Adding config.mk
2020-07-29 18:09:06 -03:00
phillbush
237da9824c
Adding Xinerama support
2020-07-29 17:55:20 -03:00
phillbush
3d8536642e
Drawing menus on demand, reordering functions
2020-07-29 11:37:38 -03:00
phillbush
15362de42b
computing textwidth with the function drawtext
2020-07-29 01:19:45 -03:00
phillbush
cdeaefaaa2
Added support for fallback fonts.
...
Also changed license.
2020-07-29 00:51:08 -03:00
phillbush
675a2008a6
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.
2020-07-28 14:51:12 -03:00
phillbush
ced6b0f73e
Removing debug printf
2020-07-23 17:39:33 -03:00
phillbush
05cfe1a0da
Adding the -p option.
...
Changing config.cursx and config.cursy to config.posx and config.posy.
Adding the parseposition() function.
2020-07-23 17:37:28 -03:00
phillbush
71b4db9241
added the -i option
...
Widths and x positions no more depend on item->h.
2020-07-15 22:57:59 -03:00
phillbush
92e7609bcd
Referencing the gap X resource in the manual
2020-06-29 12:34:34 -03:00
phillbush
eecf9b25ff
Adding X resource for gaps
2020-06-29 12:32:02 -03:00
phillbush
a3a7383740
Moving XSetWMProtocols to setupmenu()
2020-06-29 12:25:59 -03:00
phillbush
8902c43b92
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).
2020-06-29 12:20:37 -03:00
phillbush
585e3de1a3
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
2020-06-29 10:01:54 -03:00
phillbush
d94ef32515
Adding reference to xclickroot.
2020-06-24 14:24:22 -03:00
phillbush
685ca30d8d
Configuring height directly by setting the height.
...
Rather than setting the padding.
2020-06-12 11:37:13 -03:00
phillbush
5a83c7dce2
Typo
2020-06-05 18:36:21 -03:00
phillbush
d584fba626
Updating config.mk, manual and README
2020-06-01 11:24:24 -03:00
phillbush
721517254c
Updating README
2020-05-31 22:32:26 -03:00
phillbush
3bec05ea77
Readding the -w option
2020-05-31 22:26:33 -03:00
phillbush
7b867888e0
Adding some icons samples
2020-05-31 20:32:05 -03:00
phillbush
33376f5420
Merging icons branch on master branch.
...
And adjusting the geometry of items.
2020-05-31 20:29:46 -03:00
phillbush
f8ffe0b2e4
Renaming routine and spliting it into subroutines
...
Renaming calcmenu() to setupmenu() and shrinking it by calling two
new functions: setupmenusize() and setupmenupos().
2020-05-30 18:56:59 -03:00
phillbush
0dfd6fa00e
Removing patches, using branches approach
2020-05-30 11:52:47 -03:00
phillbush
a966c86682
Updating README to mention patches
2020-05-30 11:07:25 -03:00
phillbush
0704f950ad
Adding icons patch
2020-05-30 11:04:03 -03:00
phillbush
207c3312d5
typo
2020-05-30 09:45:11 -03:00
phillbush
738ed9d5f5
comment
2020-05-30 07:31:46 -03:00
phillbush
beae67a6a7
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.
2020-05-30 05:45:28 -03:00
phillbush
ddeb6e1ef2
Mentioning dmenu.gif in the README §Files section
2020-05-30 00:05:47 -03:00
phillbush
ddb15acfde
Fixing segfault in case of empty input
2020-05-29 23:55:37 -03:00
phillbush
a5ddd2cd22
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.
2020-05-29 23:48:49 -03:00
phillbush
15dfafdfb1
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.
2020-05-29 22:52:55 -03:00
phillbush
4f898cc3af
Adding the demo gif to the repository.
2020-05-29 22:41:52 -03:00
phillbush
6b5123e793
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.
2020-05-29 22:37:55 -03:00
phillbush
ec4ed1ac1e
Fixing calculation of menu position.
...
The position didn't take into account the menu borders.
Also, freeing allocated menus and items.
2020-05-27 21:43:10 -03:00
phillbush
95e47cc023
Updating install commands in Makefile
2020-05-27 20:57:38 -03:00
phillbush
cdc4d51fee
removed a goto
2020-05-27 15:10:53 -03:00
phillbush
c6d9174ec2
Reordering stuff, removing unused variables
2020-05-27 14:34:55 -03:00
phillbush
257e42cc23
Getting rid of some global variables
...
They are local now.
2020-05-27 13:40:11 -03:00
phillbush
571d99e165
Improved README
2020-05-27 11:19:49 -03:00
phillbush
0c1a78642c
Separated getmenuitem into two functions
2020-05-27 00:15:10 -03:00
phillbush
fd530f3f68
Refactored code, changed resources and config.h
2020-05-26 18:43:45 -03:00
phillbush
2744390027
Removed the -w option (it was too buggy)
2020-05-23 22:06:21 -03:00
phillbush
21a9aaecb1
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.
2020-05-23 20:41:09 -03:00
phillbush
8455c36913
Menu windows are recalculated with -w
...
Every time a window is opened, its position is recalculated with
recalcmenu().
2020-05-19 13:41:11 -03:00
phillbush
88afe438b1
trapping sighup in xmenu.sh
2020-05-19 10:22:24 -03:00
phillbush
85003546a2
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.
2020-05-19 09:17:06 -03:00
phillbush
c49dad285c
Simplifying the example script.
2020-05-19 06:22:00 -03:00
phillbush
c0cff00dc8
Referring to the new changes in the manpage.
2020-05-19 05:56:06 -03:00
phillbush
d2435fcd5f
Correctly setting WM_CLASS.
2020-05-19 05:51:21 -03:00
phillbush
813ade537f
The script now supposes that xmenu is installed
2020-05-19 04:49:33 -03:00
phillbush
4e219dd8f3
simple tweak on xmenu.sh
...
The script now runs in the background.
2020-05-19 04:47:35 -03:00
phillbush
465d07dbe9
Fixed order of function calls
...
You must grab the keyboard after reading the input.
2020-05-18 23:05:14 -03:00
phillbush
697f63c474
Fixed makefile
2020-05-18 23:00:29 -03:00
phillbush
9c891da8b3
Fixed man page installation.
2020-05-18 22:56:53 -03:00
phillbush
dbeb994054
Added xft support (smooth fonts)
2020-05-18 22:27:56 -03:00
phillbush
858338d978
xmenu now can be operated by keyboard
2020-05-17 17:01:46 -03:00
phillbush
54931d1465
make install now install the manpage
2020-05-17 01:28:04 -03:00
phillbush
f644b8bc22
xmenu now supports x resources
2020-05-17 01:22:21 -03:00