projects
/
xmenu
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0b0faa5
)
Adding reference to xdg-xmenu, by OliverLew.
author
phillbush
<phillbush@cock.li>
Wed, 5 Aug 2020 12:30:08 +0000
(09:30 -0300)
committer
phillbush
<phillbush@cock.li>
Wed, 5 Aug 2020 12:30:08 +0000
(09:30 -0300)
README.md
patch
|
blob
|
blame
|
history
xmenu.c
patch
|
blob
|
blame
|
history
diff --git
a/README.md
b/README.md
index
12ffb11
..
cb61792
100644
(file)
--- a/
README.md
+++ b/
README.md
@@
-1,6
+1,6
@@
<p align="center">
<img src="/demo.gif", title="demo"/>
<p align="center">
<img src="/demo.gif", title="demo"/>
-</p>
+</p>
# XMenu
# XMenu
@@
-10,6
+10,10
@@
to select one of the options, and outputs the option selected to stdout.
XMenu can be controlled both via mouse and via keyboard. The menu is a
pop-up menu (that is, after selecting an option, the menu disappears).
XMenu can be controlled both via mouse and via keyboard. The menu is a
pop-up menu (that is, after selecting an option, the menu disappears).
+In order to generate a menu of applications based on .desktop entries,
+as specified by XDG, checkout [xdg-xmenu](https://github.com/OliverLew/xdg-xmenu)
+by [OliverLew](https://github.com/OliverLew).
+
Check out my other project, [xclickroot](https://github.com/phillbush/xclickroot) for an application that can
spawn xmenu by right clicking on the root window (i.e. on the desktop).
Check out my other project, [xclickroot](https://github.com/phillbush/xclickroot) for an application that can
spawn xmenu by right clicking on the root window (i.e. on the desktop).
@@
-29,7
+33,7
@@
XMenu comes with the following features:
The files are:
The files are:
-*
`./README`: This file.
+* `./README`: This file.
* `./Makefile`: The makefile.
* `./config.h`: The hardcoded default configuration for XMenu.
* `./config.mk`: The setup for the makefile.
* `./Makefile`: The makefile.
* `./config.h`: The hardcoded default configuration for XMenu.
* `./config.mk`: The setup for the makefile.
diff --git
a/xmenu.c
b/xmenu.c
index
9aa3fb6
..
3c83cd3
100644
(file)
--- a/
xmenu.c
+++ b/
xmenu.c
@@
-256,9
+256,8
@@
parsefonts(const char *s)
i = 0;
while (isspace(*p))
p++;
i = 0;
while (isspace(*p))
p++;
- while (i < sizeof buf && *p != '\0' && *p != ',')
{
+ while (i < sizeof buf && *p != '\0' && *p != ',')
buf[i++] = *p++;
buf[i++] = *p++;
- }
if (i >= sizeof buf)
errx(1, "font name too long");
if (*p == ',')
if (i >= sizeof buf)
errx(1, "font name too long");
if (*p == ',')
@@
-301,7
+300,7
@@
initmonitor(void)
if ((info = XineramaQueryScreens(dpy, &nmons)) != NULL) {
int selmon = 0;
if ((info = XineramaQueryScreens(dpy, &nmons)) != NULL) {
int selmon = 0;
- if (!mflag ||
(mflag && (config.monitor < 0 || config.monitor >= nmons))
) {
+ if (!mflag ||
config.monitor < 0 || config.monitor >= nmons
) {
for (i = 0; i < nmons; i++) {
if (BETWEEN(cursx, info[i].x_org, info[i].x_org + info[i].width) &&
BETWEEN(cursy, info[i].y_org, info[i].y_org + info[i].height)) {
for (i = 0; i < nmons; i++) {
if (BETWEEN(cursx, info[i].x_org, info[i].x_org + info[i].width) &&
BETWEEN(cursy, info[i].y_org, info[i].y_org + info[i].height)) {