Commit Graph

238 Commits

Author SHA1 Message Date
Jari Vetoniemi
8c93e0081b bemenu: Disable early grab on -f for now
We can't handle input yet during read because renderers are very dumb.
Thus -f can potentially lock your system with grab.
2017-02-14 21:29:27 +02:00
Jari Vetoniemi
7b8b38bc21 bemenu: Do not eat newlines 2017-02-14 19:20:44 +02:00
Jari Vetoniemi
208af51c0e clients: Make -f option show menu immediately 2017-02-14 19:20:44 +02:00
Jari Vetoniemi
91d929ecf4 curses: Refresh before endwin 2017-02-14 19:20:44 +02:00
Jari Vetoniemi
ebea91902d Fix gcc warnings 2017-02-14 19:20:44 +02:00
Jari Vetoniemi
f1019bb500 Set default font to Fixed 2017-02-14 19:20:44 +02:00
Jari Vetoniemi
81f58f4c25 Merge pull request #30 from upwhere/docs-patch
reference bm_scrollbar_mode in documentation
2016-12-06 20:34:53 +02:00
Jari Vetoniemi
01be868def Merge pull request #29 from upwhere/CtrlM
Add C-m -> Return bind
2016-12-06 20:34:19 +02:00
uphere
cb6030f64b Add C-m -> Return bind
C-m is often bound to return and it's jarring to have all the
other keybinds but not this one
2016-12-05 16:35:29 +00:00
Jari Vetoniemi
10fcb9cbf8 Merge pull request #28 from upwhere/patch-1
Remove double slash from os anonymous file
2016-12-03 15:32:09 +02:00
up here
9530c21be1 reference correct enum in documentation
The `bm_scrollbar_mode` constants linked to the `bm_run_result` enum in their doc comments.
2016-12-03 12:17:47 +00:00
up here
0f912c93b0 Remove double slash from os anonymous file
the anonymous file path is created from
- the XDG_RUNTIME path (with optional slash at the end)
- a slash if the XDG_RUNTIME path didn't have one
- and the tmpfile template (which starts with a slash).
This guarantees there are always two slashes before the filename.
It does not affect the behaviour of the program, but I've removed it anyway.
2016-12-01 11:21:09 +00:00
Jari Vetoniemi
6b951600aa wayland: Bind interfaces correctly
seat was binded with XDG_SHELL_VERSION_CURRENT constant that makes no
sense.

Use this constant in use_unstable_version call instead, and bind to the
implemented versions.
2016-04-12 18:01:05 +03:00
Jari Vetoniemi
4d521519ca Merge pull request #24 from mikkeloscar/follow-dtd
Make protocol specifications follow the DTD
2016-03-18 13:41:23 +02:00
Mikkel Oscar Lyderik
c1a0974849 Update xdg-shell.xml from wayland-protocols
Updates xdg-shell.xml to version 5.
2016-03-18 12:39:25 +01:00
Jari Vetoniemi
c3abc43860 curses: Use set_escdelay when available 2015-09-23 18:56:34 +03:00
Jari Vetoniemi
c4a553796f CMake: Use absolute libdir instead 2015-09-23 18:52:59 +03:00
Jari Vetoniemi
f25a4146e1 Merge pull request #20 from sleep-walker/master
path configuration - 2nd part, prevent clashing of ncurses symbol, xinerama check
2015-09-22 10:41:17 +03:00
Tomáš Čech
25218f98fa Check explicitly for Xinerama
Xinerama doesn't need to be present even when base X11 is. Check it
explicitly.
2015-09-22 00:29:33 +02:00
Tomáš Čech
556961648b Look for renderers on right location 2015-09-21 22:18:14 +02:00
Jari Vetoniemi
092b6ed52d Merge pull request #19 from sleep-walker/master
Respect install destinations set by variables
2015-09-21 22:50:54 +03:00
Tomáš Čech
ecd7d4056f Respect install destinations set by variables
Use CMAKE_INSTALL_LIBDIR and CMAKE_INSTALL_INCLUDEDIR as destination
base.
2015-09-21 21:48:45 +02:00
Jari Vetoniemi
064e937452 Update buildhck status. 2015-05-10 01:12:06 +03:00
Mark Oteiza
0874fc5d49 Add some Emacs keybindings
* C-v to curses backend
* C-v, M-v, M-<, M-> to x11 and wayland backends

Signed-off-by: Jari Vetoniemi <mailroxas@gmail.com>
2015-04-06 23:22:12 +03:00
Jari Vetoniemi
30ed5b1916 Copy better tokenizer from chck for now. 2015-04-06 00:47:18 +03:00
Jari Vetoniemi
d8097c44dd Make renderers try detect whether they are in correct env. 2015-03-09 09:53:57 +02:00
Jari Vetoniemi
bf5fd83491 Fix mac os x build 2015-02-02 12:25:56 +02:00
Jari Vetoniemi
233c23a214 Update mainpage 2015-02-02 01:55:03 +02:00
Jari Vetoniemi
98f44cbb78 Handle build-time dependency checking better, so you can compile bemenu
without wayland or x11 easier.
2015-01-30 03:16:04 +02:00
Jari Vetoniemi
f76cb71688 Remove the useless test, need actual tests. 2015-01-20 18:49:35 +02:00
Jari Vetoniemi
e53e77bf05 Allows -l 1 2015-01-20 18:43:44 +02:00
Jari Vetoniemi
eb46ba7bdc Remove bg color option as you never see the real bg anyways. 2015-01-20 18:42:29 +02:00
Jari Vetoniemi
7d019e767b Bind alt+h and alt+l as well 2015-01-18 04:51:02 +02:00
Jari Vetoniemi
41e9000dd6 Add math library linkage 2015-01-18 04:42:09 +02:00
Jari Vetoniemi
bd6051073d Swap j-k 2015-01-18 04:35:26 +02:00
Jari Vetoniemi
c04a2c4192 Change scrollbar to represent content instead of index. 2015-01-18 04:23:18 +02:00
Jari Vetoniemi
92152cb5fb Add alt keybindings from demenu to gui backends 2015-01-18 03:34:18 +02:00
Jari Vetoniemi
c2eabf2be1 Make scrollbar autohideable 2015-01-18 02:07:30 +02:00
Jari Vetoniemi
f2eaf599f6 Change default scrollbar style and make colors configurable 2015-01-18 01:38:25 +02:00
Jari Vetoniemi
9c541d0b42 Add --scrollbar option 2015-01-18 01:08:10 +02:00
Jari Vetoniemi
6b5b93239e Use bools instead of ints 2015-01-18 00:59:11 +02:00
Jari Vetoniemi
4dc5c77d82 Fix argument constants and references to --backend option 2015-01-17 19:05:39 +02:00
Jari Vetoniemi
074b2d1b58 Remove --backend and --prioritory options, change prioritory -> priorty
and provide BEMENU_BACKEND env variable. Change API to reflect this
change.

There is no reliable way to detect when running on terminal (especially
when stdin is a pipe), so we need to make curses backend explicit with
BEMENU_BACKEND=curses or bm_menu_new("curses"), otherwise GUI backend
will be choosed automatically.
2015-01-17 18:53:29 +02:00
Jari Vetoniemi
b32b8db523 Newline 2015-01-17 18:53:22 +02:00
Jari Vetoniemi
f76cfbca4f Get rid of _DEFAULT_SOURCE #defines, set this in cmake and also use
secure_getenv where it makes sense.
2015-01-17 18:52:21 +02:00
Jari Vetoniemi
6ac8d8c4d8 Change font functions to function on pango style font descriptions instead of size
and name.
2015-01-17 15:25:50 +02:00
Jari Vetoniemi
96cc64a597 Update --help with x11 backend 2015-01-16 17:45:27 +02:00
Jari Vetoniemi
a54bcf694a Merge branch 'pango-wip' 2015-01-16 02:08:18 +02:00
Jari Vetoniemi
ada6edc175 Add X11 renderer. 2015-01-16 01:59:09 +02:00
Jari Vetoniemi
0cd1c991d2 Take monitor height into account again. 2015-01-16 01:48:47 +02:00