Fangrui Song
d1edf0dc08
Revise fuzzy finding algorithm for -matching fuzzy
2017-01-11 08:59:34 +01:00
Dave Davenport
17155867a1
Add a quick theme tutorial.
2017-01-10 11:20:38 +01:00
Dave Davenport
268b0fa3b0
Super-1..10 keybinding activates row 1..10.
...
Allowing fore quick switching to entry.
https://forum.qtools.org/t/select-entry-by-offset/84/5
2017-01-10 07:41:37 +01:00
Dave Davenport
a5d2db256e
Clear theme memory on close, free temporary widget
2017-01-09 23:08:11 +01:00
Dave Davenport
cf1940f8cb
Reset theme if parsing fails, so we don't display using 1/2 parsed theme
2017-01-09 23:01:09 +01:00
Dave Davenport
25dff63006
Improve error handling string.
2017-01-09 22:40:11 +01:00
Dave Davenport
ca01af6338
Try to improve error handling and messages
2017-01-09 22:29:31 +01:00
Dave Davenport
854aa55453
Better error reporting (1)
2017-01-09 18:32:26 +01:00
Dave Davenport
a199fa3275
Improve error message theme a little bit
2017-01-09 08:55:51 +01:00
Dave Davenport
5188e36147
Remove unused functions and other small fixes
2017-01-09 08:39:02 +01:00
Dave Davenport
f42e4ffbd7
Remove old cairo color set functions
2017-01-09 08:32:16 +01:00
Dave Davenport
78916c6a94
Give up and quit rofi after failed to grab keyboard in <5 sec.
2017-01-09 08:17:16 +01:00
Dave Davenport
713d41f619
Allow matching highlighting to be set. Fixes #522
2017-01-09 00:09:02 +01:00
Dave Davenport
baab2047ad
Indent magic, rework makefile so lexer and yacc file are not passed.
2017-01-08 21:36:06 +01:00
Dave Davenport
8c0c43952d
Make 'text' override foreground color for rendering text
2017-01-08 20:39:37 +01:00
Dave Davenport
35a9b04f87
Print position as textual in dump-theme.
2017-01-08 18:03:31 +01:00
Dave Davenport
5d1fa66c30
Fix dumping of theme
2017-01-08 17:50:42 +01:00
Dave Davenport
97d96fdabd
Add fullscreen option to theme
2017-01-08 17:38:21 +01:00
Dave Davenport
26efbecbc3
Fix multiple -theme-str lines parsing, fix num lines
2017-01-08 17:18:49 +01:00
Dave Davenport
ce2cf6b2d9
Make error dialog widget layout match normal one
2017-01-08 16:49:46 +01:00
Dave Davenport
8543ac8438
Fix doxygen.
2017-01-08 16:23:17 +01:00
Dave Davenport
c57e7348d2
Add some better error message. Allow -theme-str option to override part of theme
2017-01-08 16:09:24 +01:00
Dave Davenport
8124cfb023
Merge remote-tracking branch 'origin/master' into themer
2017-01-07 10:38:47 +01:00
Dave Davenport
c98b67ed0d
Make lazy-key-grab an option, add --release for i3 to manpage.
2017-01-07 10:35:36 +01:00
Dave Davenport
361d5c62d7
Draw scrollbar when list is empty.
2017-01-06 22:12:24 +01:00
Dave Davenport
02dafeeccc
Fix percentual margin.
2017-01-06 20:36:06 +01:00
Dave Davenport
06c5f51e7d
Allow to set anchor position on normitor and anchor position on window.
2017-01-06 19:04:25 +01:00
Dave Davenport
8bc1831d17
Allow window width to be set in theme
2017-01-06 17:21:21 +01:00
Dave Davenport
9aaf21cd85
Fix theme converter and check.
2017-01-06 16:53:21 +01:00
Dave Davenport
af8a6541a2
Order entries in box based on index, allow theme to override.
2017-01-06 16:41:23 +01:00
Dave Davenport
5078034672
Add scrollbar 'handle-width' and 'handle-color' remove old syntax
2017-01-06 15:36:06 +01:00
Dave Davenport
52f4f32d89
Listview: hide widget when no row is visible and dynamic is enabled.
2017-01-06 13:42:00 +01:00
Dave Davenport
0e037237f8
Only queue redraw when state actually changes
2017-01-06 13:26:26 +01:00
Dave Davenport
f45e910a1b
Q'nD: Update border and force redraw on state change
2017-01-06 13:24:35 +01:00
Dave Davenport
7e13bd8658
Quick 'n Dirty work around for handle color in scrollbar.
2017-01-06 13:13:03 +01:00
Dave Davenport
add0e2f801
Merge remote-tracking branch 'origin/master' into themer
2017-01-06 11:07:14 +01:00
Dave Davenport
051be0cfe6
Change keyboard grabbing behaviour, if you fail, continue running and try in background to get them.
2017-01-06 11:00:27 +01:00
Dave Davenport
a02de2c410
Textbox take height set, when bigger then desired in autowidth mode
2017-01-05 22:56:32 +01:00
Dave Davenport
f2a4049991
Remove separator
2017-01-05 22:07:50 +01:00
Dave Davenport
3eb450c37e
Add generic container (renamed window widget) put container around message.
2017-01-05 18:33:57 +01:00
Dave Davenport
e6a6d5f894
Fix printing of link element.
2017-01-05 18:23:27 +01:00
Dave Davenport
4cc21b93a5
Allow linking to top level properties.
2017-01-05 18:22:34 +01:00
Dave Davenport
a4bab4654a
Scrollbarwidth is a Distance.
2017-01-04 23:14:43 +01:00
Dave Davenport
b8ff85adb6
Improve exporting of theme.
2017-01-04 23:11:25 +01:00
Dave Davenport
5d70985bb9
Reset line style, reset state after drawing border.
2017-01-04 22:46:46 +01:00
Dave Davenport
9dd3cb312e
Support linestyle on border
2017-01-04 22:27:27 +01:00
Dave Davenport
b618cd63d8
Fix transparency in theme converter.
...
Implicitely convert P_INTEGER to P_PADDING if asked for a padding.
2017-01-04 15:18:12 +01:00
Dave Davenport
85a0e1a57e
Remove class system from new theme format. Fix theme converter.
2017-01-04 15:05:39 +01:00
Dave Davenport
645fe24890
Add debug output to themer that indicates unset properties.
2017-01-04 14:01:28 +01:00
Dave Davenport
44581fd90b
Allow packing order to be set using theme.
2017-01-04 13:34:02 +01:00
Dave Davenport
8bbf1b36d5
Don't draw widget when size is 0 or less.
2017-01-04 10:47:37 +01:00
Dave Davenport
8f6a323ed6
Merge remote-tracking branch 'origin/master' into themer
2017-01-04 10:39:50 +01:00
Dave Davenport
129d96928a
Quick when failed to grab keyboard. #524
2017-01-04 10:37:05 +01:00
Dave Davenport
6305bbbf39
Fix border with margin. take 2.
2017-01-04 00:36:33 +01:00
Dave Davenport
c96e95c766
Hopefully fix border with margin setting
2017-01-04 00:06:13 +01:00
Dave Davenport
495dfb4c20
Add support for margin.
2017-01-03 23:51:15 +01:00
Dave Davenport
953e260511
When order is reversed. reverse listview order fix #523
2017-01-03 20:33:30 +01:00
Dave Davenport
3f8c5378c4
Reverse scrollbar when listview is reversed.
2017-01-03 20:28:19 +01:00
Dave Davenport
a836346968
Allow listview to be reversed in order.
...
Issue: #523
2017-01-03 20:22:29 +01:00
Dave Davenport
f9fc01b176
Add percentage option to border,padding
2017-01-03 19:23:09 +01:00
Dave Davenport
7600668bff
Update window copyright
2017-01-03 18:06:21 +01:00
Dave Davenport
9f294437f0
Merge remote-tracking branch 'origin/master' into themer
2017-01-03 18:02:51 +01:00
Dave Davenport
4f4770ee4f
Fix wrong sed replace.
2017-01-03 18:02:21 +01:00
Dave Davenport
8163204320
Merge remote-tracking branch 'origin/master' into themer
2017-01-03 18:00:12 +01:00
Dave Davenport
22e2d7587d
Update copyright to 2017.
2017-01-03 17:59:28 +01:00
Dave Davenport
3435599939
Allow for different color handle
2017-01-03 16:05:00 +01:00
Dave Davenport
b60ca07f1f
Remove border-width property from window.
2017-01-03 15:57:40 +01:00
Dave Davenport
861b52a523
Add support for borders around widgets.
2017-01-03 15:39:19 +01:00
Dave Davenport
e982a439fb
Fix spacing in listview and box.
2017-01-03 14:25:24 +01:00
Dave Davenport
30726b6c6e
Fix pasting of multi-line clipboard.
...
Previous newline removal only removed trailing newline.
2017-01-03 12:20:21 +01:00
Dave Davenport
0307a14984
Fix compile warning different architectures where long long unsigned != uint64_t
2017-01-03 12:19:52 +01:00
Dave Davenport
23e1bf9566
Resize widgets in width before determining initial height.
...
- Solves Rasi weird sizing issue.
2017-01-03 12:19:07 +01:00
Dave Davenport
f82129aab8
Box: static widget should get their desired height.
2017-01-03 12:18:11 +01:00
Dave Davenport
a41d6c4ab4
textbox, draw better cursor, fix desired height query.
...
- update layout before query.
- Correct autoheight logic.
2017-01-03 12:17:17 +01:00
Dave Davenport
9c7b5fe7a9
Restructure for readability. no change
2017-01-03 00:59:37 +01:00
Dave Davenport
37d99378dd
cleanup some of sizing logic.
2017-01-02 21:19:27 +01:00
Dave Davenport
df74540624
Fix crasher in error message. update reference output.
2017-01-01 19:33:16 +01:00
Dave Davenport
47aa7c4900
Fix errors in doxygen comments
2017-01-01 18:40:49 +01:00
Dave Davenport
ccf3f23d9b
Update comments, rename Widget to ThemeWidget.
2017-01-01 18:08:49 +01:00
Dave Davenport
d20587da54
Fix? tests
2017-01-01 16:32:01 +01:00
Dave Davenport
7d16d1a552
Slowly move more settings to the configuration convert.
2017-01-01 15:39:02 +01:00
Dave Davenport
44534653bf
Remove border from ViewState
2017-01-01 12:16:04 +01:00
Dave Davenport
5c547393b8
Repaint (if) needed before flipping xcb_copy_area
2017-01-01 02:57:04 +01:00
Dave Davenport
0a8bdb6a98
Always queue a redraw on a resize event.
2017-01-01 02:27:51 +01:00
Dave Davenport
f43bf3dc6a
On textbox update tell it to update parent.
2017-01-01 02:00:54 +01:00
Dave Davenport
d35e70d817
Support converting old theme internally, add first option to dump theme
2017-01-01 01:06:38 +01:00
Dave Davenport
05871703d5
Fall back to old style padding (with int) if no metric specified.
2016-12-31 23:34:48 +01:00
Dave Davenport
fb2d8b37a6
Fall back to integer setting for distance
2016-12-31 23:30:57 +01:00
Dave Davenport
7b0e0643c8
Make spacing be of type distance.
2016-12-31 23:27:17 +01:00
Dave Davenport
52e850dc33
Fix EM support, use char height
2016-12-31 23:00:06 +01:00
Dave Davenport
068592414e
Support em format in padding
2016-12-31 22:47:22 +01:00
Dave Davenport
5f424fa598
Padding should be specified in px now and 4 borders can be specified on
...
one pixel line.
2016-12-31 21:37:19 +01:00
Dave Davenport
2bfbb464e6
Fix more sizing issues
2016-12-30 19:59:45 +01:00
Dave Davenport
eafd4697a2
Fix some of the sizing issues.
2016-12-30 18:31:30 +01:00
Dave Davenport
04ad719c01
Merge remote-tracking branch 'origin/master' into themer
2016-12-30 17:34:58 +01:00
Dave Davenport
6e55cb86b9
Work-around for detecting end of file, hopefully fixing #518 .
2016-12-30 17:33:24 +01:00
Dave Davenport
eda70f337a
Remove debug output.
2016-12-29 22:11:02 +01:00
Dave Davenport
c0e6e7c555
Redraw the window, if it moves
2016-12-29 22:06:31 +01:00
Dave Davenport
b0a8edc95a
Fix resizing normal-window mode.
2016-12-29 21:58:32 +01:00
Dave Davenport
5183c14b51
textbox use padding accessors
2016-12-29 17:31:37 +01:00
Dave Davenport
aa5b7a7ff8
box use padding accessors
2016-12-29 17:25:28 +01:00
Dave Davenport
530eee0bf6
scrollbar use padding accessors
2016-12-29 17:25:09 +01:00
Dave Davenport
a966cd158d
separator use padding accessors
2016-12-29 17:09:22 +01:00
Dave Davenport
eec772d01d
listview use padding accessors
2016-12-29 17:04:16 +01:00
Dave Davenport
a2001d1b9c
Add window widget, play with logic for sizing (broken)
2016-12-28 19:42:14 +01:00
Dave Davenport
2db879e979
Fix clicking
2016-12-28 14:23:43 +01:00
Dave Davenport
91baac3968
Fix desired size of listview, tweak textbox rendering
2016-12-28 14:10:27 +01:00
Dave Davenport
d63b9cb15e
Padding to textbox. remove config.line_padding
2016-12-28 13:46:53 +01:00
Dave Davenport
5dfddf8840
Support padding in listview
2016-12-28 13:17:02 +01:00
Dave Davenport
77fdb08169
Allow padding on scrollbar
2016-12-28 12:57:58 +01:00
Dave Davenport
843ccc1e41
Update drawing, background per widget.
2016-12-28 12:21:42 +01:00
Dave Davenport
dfc8a31126
Redo some of the redrawing methods, better padding support
2016-12-28 00:37:32 +01:00
Dave Davenport
1c611b0eec
First start at adding 4 sided padding
2016-12-27 22:19:15 +01:00
Dave Davenport
c5439118a7
Merge remote-tracking branch 'origin/master' into themer
2016-12-27 10:49:27 +01:00
Dave Davenport
0865e0f9d4
Directly queue a redraw on overlay change.
2016-12-26 20:57:33 +01:00
Dave Davenport
aa08c8ea78
Make workspace name also searchable
2016-12-26 16:23:55 +01:00
Dave Davenport
9cc048e48e
Merge remote-tracking branch 'origin/master' into themer
2016-12-26 16:04:19 +01:00
Dave Davenport
ee310c8470
Strip pango markup from workspace names when detecting I3.
...
Thanks I3 for this crap.
Issue: #507
2016-12-26 15:58:51 +01:00
Dave Davenport
5a638b1fa0
Search categories when searching Desktop Files.
...
Issue: #499
2016-12-26 15:18:52 +01:00
Dave Davenport
a0bab0e99a
Merge remote-tracking branch 'origin/master' into themer
2016-12-26 13:10:19 +01:00
Dave Davenport
3be5791fb2
Use clipboard atom instead of XCB_ATOM_SECONDARY for pasting.
...
Should fix issue: #516
2016-12-24 14:13:31 +01:00
Dave Davenport
68b0502220
Merge remote-tracking branch 'origin/master' into themer
2016-12-20 19:34:24 +01:00
Dave Davenport
74a1d0313a
Force all three properties of scrollbar to be in sync
2016-12-20 19:29:46 +01:00
Dave Davenport
cd529acd9a
Fix typo in resolving theme element.
2016-12-20 10:27:23 +01:00
Dave Davenport
8793475501
Fix and document resolving.
2016-12-20 09:17:19 +01:00
Dave Davenport
9c6019d3d0
Allow theme to set background.
2016-12-19 17:49:52 +01:00
Dave Davenport
7fa4c164ab
Merge remote-tracking branch 'origin/master' into themer
2016-12-19 17:35:24 +01:00
Dave Davenport
5b1b8d4d05
Destroy the lexer after parsing
2016-12-19 15:50:35 +01:00
Dave Davenport
d8b877147c
Fix cleanup lexer, add properties to theme documentation.
2016-12-19 08:10:33 +01:00
Dave Davenport
7d9ca64dd6
Merge branch 'master' of github:DaveDavenport/rofi
2016-12-17 17:58:29 +01:00
Dave Davenport
84508bdc1b
Lower priority of loading data from dmenu, so drawing is not delayed
2016-12-17 17:56:54 +01:00
Dave Davenport
b8e58b0342
Make parser more flexible, allow global properties to be anywhere in file and allow multiple similar entries.
2016-12-16 09:28:13 +01:00
Dave Davenport
efd1e07755
Fix typo in theme name.
2016-12-15 09:46:42 +01:00
Dave Davenport
4858dad631
Merge remote-tracking branch 'origin/master' into themer
2016-12-15 09:17:55 +01:00
Dave Davenport
d7b5b9fbfa
Fix some compile warnings
2016-12-15 09:17:39 +01:00
Dave Davenport
9b16f21ddc
Remove extra newlines after log messages.
2016-12-15 09:09:14 +01:00
Dave Davenport
eef6fa6f95
Fix typo in widget class name.
2016-12-13 18:06:16 +01:00
Dave Davenport
38035568f3
Fix separator class and tweak parser inheritance.
2016-12-13 00:09:51 +01:00
Dave Davenport
fd64bb7a41
Improve lexer by adding support for modes.
2016-12-12 23:40:43 +01:00
Dave Davenport
be0677cf49
Update theme to new format.
...
- @class state {
}
- #name state {
}
2016-12-12 21:14:57 +01:00
Dave Davenport
c6030063c6
Keep track of location in parser
2016-12-12 16:55:31 +01:00
Dave Davenport
d6ec7b1de8
Cleanup, fix missing initializer.
2016-12-12 09:11:57 +01:00
Dave Davenport
6d9ce47974
Merge remote-tracking branch 'origin/master' into themer
2016-12-12 08:53:35 +01:00
Dave Davenport
47125daecf
Reset user input on script selection.
...
Fixes : #513
2016-12-12 08:52:27 +01:00
Dave Davenport
6cca2b1ecd
Remove debug output
2016-12-11 21:58:55 +01:00
Dave Davenport
95667e60d9
Add theme option to config system.
2016-12-11 18:06:35 +01:00
Dave Davenport
3b850f4472
Fix theme_name generator for textbox
2016-12-11 18:00:45 +01:00
Dave Davenport
a0096f52c4
Border width via new config system.
2016-12-11 17:13:26 +01:00
Dave Davenport
78abbeb710
Textbox uses new theme engine..
2016-12-11 17:06:31 +01:00
Dave Davenport
5e371eedeb
Change language parser to glr type, remove type prefix.
2016-12-11 14:08:28 +01:00
Dave Davenport
7ad0432d82
Set separator name
2016-12-11 12:55:09 +01:00
Dave Davenport
1dfac3c4da
Update to new theme
2016-12-11 12:19:46 +01:00
Dave Davenport
5fd76b75b1
Add some color stuff
2016-12-10 19:48:44 +01:00
Dave Davenport
db248ea765
Merge remote-tracking branch 'origin/master' into themer
2016-12-10 18:34:30 +01:00
Dave Davenport
1879361250
Fix positioning of sidebar in the grand scheme of things. (this needs rewrite next release)
2016-12-10 18:27:36 +01:00
Dave Davenport
2d01d1566a
Add some properties to themes
2016-12-09 22:16:31 +01:00
Dave Davenport
d18f037d1c
Add lex/bison parser for theme.
2016-12-09 19:49:49 +01:00
Dave Davenport
ea28bcdc74
Use g_strsplit_set instead of strtok so we can run g_strsplit in place
2016-12-08 16:53:48 +01:00
Dave Davenport
3e3fb24ea5
Strip spaces from key-name (Issue: #511 )
2016-12-06 19:30:53 +01:00
Dave Davenport
c759f248b4
Add configuration file location in -help output.
2016-12-06 19:24:17 +01:00
Dave Davenport
3f88ef0032
Issue: #38 remove delay (until next blink) when triggering on release (version 2.0)
2016-11-30 17:30:10 +01:00
Dave Davenport
c9b5667a3f
Issue: #39 remove delay (until next blink) when triggering on release
2016-11-30 16:35:34 +01:00
Dave Davenport
2220b75467
Fix two issues detected by coverty. 1.) copy /paste error. 2.) dead code
2016-11-30 08:41:47 +01:00
Dave Davenport
4889b5f7bc
Don't destroy the window, but send close request to window.
2016-11-29 16:09:26 +01:00
Dave Davenport
4f7e9b3811
Make resize look better. less flickering.
2016-11-29 11:20:52 +01:00
Dave Davenport
862c04ef61
Fix drawing order when widget is added at end. This simplifies bottom mode.
...
Fixes : #505
2016-11-27 16:02:37 +01:00
Dave Davenport
84baa94bfc
Remove trailing whitespace from string options.
2016-11-26 17:29:42 +01:00
Dave Davenport
84f7ec2f0e
Fuzzy matcher, take simple escaping into account when creating regex.
2016-11-26 17:18:38 +01:00
Dave Davenport
4f3c7f122e
Fix check being the wrong way around.
2016-11-26 16:57:13 +01:00
Dave Davenport
80c7b3774e
Fix compare add forum to links.
2016-11-25 21:47:28 +01:00
Dave Davenport
31115dd312
Print compile options (window, drun,timing, asan, gcov) in -help
...
Issue: #506
2016-11-25 20:00:27 +01:00
Dave Davenport
b1a44cc65e
Update code documentation
2016-11-15 21:54:31 +01:00
Dave Davenport
7e74d39a01
Fix indentation
2016-11-15 08:24:27 +01:00
Dave Davenport
c86a28ca70
Small code restructure
2016-11-15 08:24:06 +01:00
Dave Davenport
a9dbd787cf
Include in error mesg, what key failed to bind.
2016-11-14 18:42:41 +01:00
Dave Davenport
29cacd0e83
Try to improve parsing of Keybinding. Give more specific error of what failed.
...
+ Implementation is slower. but is one time, so should be fine.
2016-11-14 18:32:22 +01:00
Dave Davenport
d22920fd5e
Backspace->BackSpace
2016-11-14 16:58:43 +01:00
Dave Davenport
62879ee739
Continue parsing when keybinding fail, only show errors after all are done.
2016-11-14 16:53:01 +01:00
Dave Davenport
d450d02ad6
For redraw when rofi_view_set_active is called.
2016-11-14 16:31:26 +01:00
Dave Davenport
fcf3c33415
Fix keybinding with Shift in name. Alt-Shift-S -> Alt-S. Alt-Shift-1 -> Alt-exclam
...
+ indent.
2016-11-14 16:25:04 +01:00
Dave Davenport
01751db4c0
Fix #498 : Right count for unicode charaters in column code.
2016-11-14 12:39:37 +01:00
Dave Davenport
f0bc7e3185
Fix #485 : Correctly remove consumed masks.
2016-11-14 08:28:54 +01:00
Dave Davenport
7cc90abceb
[DMenu] Dump when there is an empty filter.
2016-11-13 23:15:13 +01:00
Dave Davenport
31a29e452b
Fix #497 : Create user runtime dir if not exists.
2016-11-12 11:36:39 +01:00
Dave Davenport
27cef3c9ae
Fix #497 : Create cache dir if not exists.
2016-11-12 11:28:40 +01:00
Dave Davenport
cd0fedd0db
If no fake background failed to load, still paint a background. Add debug info.
2016-11-11 22:11:32 +01:00
Dave Davenport
1d40782515
Re-work the expose, redraw system. Use XServer side pixmaps to do drawing and flipping.
...
- By server side drawing and flipping buffer time to draw buffer to window speed up by factor 1000+.
Flipping is now one xcb_copy_area call.
- Don't abuse Xserver expose events to singal internal drawings.
- Queue redraws in idle time.
- Avoid unneeded redraws.
2016-11-11 16:29:59 +01:00
Dave Davenport
e3af1efaef
Fix crash when clicked out of window.
2016-11-11 09:30:44 +01:00
Dave Davenport
0da5737cee
If widget is disabled, don't check redraw flag as it wont be cleared.
...
This reduces a lot of false redraws caused by overlay widget.
Issue: #496
2016-11-10 12:17:27 +01:00
Dave Davenport
545be58e40
Issue #454 pass our window id along in the change active window request
2016-11-07 09:15:04 +01:00
Dave Davenport
90c314f397
Re-add column, but not for dmenu when prompt is set
2016-11-07 08:51:23 +01:00
Dave Davenport
da2e6a2cc4
Remove debug sleep
2016-11-06 16:55:41 +01:00
Dave Davenport
89e3e0e645
Grab keyboard as early as possible ( #494 )
2016-11-06 16:50:12 +01:00
Dave Davenport
0554db65ea
Fix dmenu with -selected-row
2016-11-05 20:00:22 +01:00
Dave Davenport
ed6cb59b5d
Fix crash on wrongly queued ViewState (thx to teto)
2016-11-02 18:24:20 +01:00
Dave Davenport
e72508b782
Remove opacity option.
2016-11-01 08:10:27 +01:00
Dave Davenport
4c5df96fcd
Pull config option access from out of separator widget.
2016-11-01 08:04:39 +01:00
Dave Davenport
69c19afcfc
[DRun] Fix free
2016-10-31 17:02:10 +01:00
Dave Davenport
3f577f917a
Small re-indent
2016-10-31 15:51:47 +01:00
Dave Davenport
01e32c9c61
Cleanup some drun code, use hash table for seen check instead of two arrays
2016-10-31 08:44:04 +01:00
Dave Davenport
e3ab39ea6f
add more details to timing log
2016-10-31 08:07:02 +01:00
Dave Davenport
f5f4f52957
Use strtok_r instead of strtok.
2016-10-30 10:14:32 +01:00
Dave Davenport
86b6beb1e9
Update some code.
2016-10-28 23:28:49 +02:00
Dave Davenport
3c8b757930
Remove auto :
2016-10-28 21:52:22 +02:00
Dave Davenport
c598791aa4
Indent
2016-10-28 18:57:12 +02:00
Dave Davenport
8e0ced2378
Remove commented code
2016-10-28 18:32:29 +02:00
Dave Davenport
217290479e
Merge two functions that no longer have a reason to be split.
...
Fixes : #491
2016-10-28 08:51:53 +02:00
Dave Davenport
fb459e1660
Make scrollbar behave better
2016-10-26 08:24:34 +02:00
Dave Davenport
163934fa8c
Simplify some code, more comments. (90% docu)
2016-10-25 22:45:11 +02:00
Dave Davenport
a38ac9caf3
Update scrollbar behaviour, so dragging is more natural. (limit range from hw/2 to h-hw/2)
2016-10-25 21:19:39 +02:00
Dave Davenport
440756af94
Option to disable/enable the highlighting of match.
2016-10-24 21:47:36 +02:00
Dave Davenport
b19ab62e17
add scrollbar test.
2016-10-24 17:48:04 +02:00
Dave Davenport
0ae0d50bbc
Revert "Fix: #485 Remove used modifiers before figuring out keybinding."
...
This reverts commit 25c210b851
.
2016-10-23 13:23:04 +02:00
Dave Davenport
25c210b851
Fix : #485 Remove used modifiers before figuring out keybinding.
2016-10-23 13:08:52 +02:00
Dave Davenport
d25ad4dac6
clang-check fix.
2016-10-22 21:34:19 +02:00
Dave Davenport
881056ea9b
Add some more tests, make some textbox api's private
2016-10-20 09:41:32 +02:00
Dave Davenport
7b3b68462e
Fix memory leak in box and listview widget, add coverage make target. (ggcov and lcov)
2016-10-18 13:49:24 +02:00
Dave Davenport
b622a98d9c
Fix some coverty found issues.
2016-10-17 20:54:41 +02:00
Dave Davenport
df26193096
Fix redrawing (call queue redraw, not need redraw) fix end of string check.
2016-10-17 20:54:02 +02:00
Dave Davenport
0e176199fc
Fix some possible null pointer dereference. (clang-check)
2016-10-17 18:21:03 +02:00
Dave Davenport
313dffa28d
Some comments
2016-10-16 19:38:33 +02:00
Dave Davenport
703426716a
[DRun] Fix parsing subdirectories because of wrong suffix check
2016-10-16 14:49:32 +02:00
Dave Davenport
cdb1b96414
Fix issue #482 : Set work directory
2016-10-15 20:00:26 +02:00
Dave Davenport
f0981d6697
Indenting, comments
2016-10-15 15:39:08 +02:00
Dave Davenport
9293c8b8ce
More docu updates
2016-10-14 18:56:09 +02:00
Dave Davenport
ce341f6885
Document more headers.
2016-10-14 16:46:54 +02:00
Dave Davenport
b4c599f022
Add more documentation.
...
Current state: 61% coverage.
2016-10-14 08:47:21 +02:00
Dave Davenport
eb5f169af0
Remove error check for large windows as it is incorrect often. Fix issue 468
2016-10-13 18:11:15 +02:00
Dave Davenport
f6755d8a18
Always fallback to mouse position when one of the -X options are choosen.
2016-10-13 18:09:03 +02:00
Dave Davenport
306eeac3fe
Add some NULL tests to widget test
2016-10-13 17:54:52 +02:00
Dave Davenport
1cd94c27c7
Update documentation, tests for widget
2016-10-13 09:22:08 +02:00
Dave Davenport
3aa1922aa6
Remove padding from input bar: Fix #479
2016-10-13 08:53:22 +02:00
Dave Davenport
cc3bb30a7b
Remove unneeded calls to tokenize.
2016-10-11 08:18:34 +02:00
Dave Davenport
07425fd10a
Always refilter when switching modi.
2016-10-11 08:11:14 +02:00
Dave Davenport
f3298801f3
Split internal widget into separate file
2016-10-09 10:13:15 +02:00
Dave Davenport
f10bc5004f
Make separator work in both directions ( hori/vert ).
2016-10-09 10:07:32 +02:00
Dave Davenport
3c64507f02
Qtk widgets ( #478 )
...
* Initial support for using boxes for packing widgets.
* Make CapiTalIzation more consistent
* Move widgets to subdirectory
* Removed nolonger needed resize function.
* Small cleanup
* When switching mode, reuse view, don't rebuild it. Reduces artifacts.
* Needs cleaning up.
* Remove separate prompt argument, use display_name
* Simplify run-switcher code.
* Add notion of parents, and trigger parent update on resize.
* Use widget_get_height wrapper, avoid crash
* Size separator width based on height. (indent)
* TODO add margin to box.
* First draft version of listview.
* Add scrollbar to listview widget
* Add padding option to box
* Move access to global config out of widget. (1/2 done)
* Remove printf
* Make listview not access global config
* Add click support, implement on mode buttons.
* Re-introduce mouse handling on list-view.
* TODO draggin on scrollbar.
* Fix multi-select
* Fix warnings
* Fix include
2016-10-08 18:57:59 +02:00
Dave Davenport
0da0587087
Make widget_free work on textbox and scrollbar, use widget specific free.
2016-09-27 22:38:26 +02:00
Dave Davenport
89acc7b6ed
Make one widget_draw function, abstract rest (textbox, scrollbar) behind it.
2016-09-27 22:15:39 +02:00
Dave Davenport
769dab5f66
When view centered, don't change x,y.
2016-09-26 18:19:29 +02:00
Dave Davenport
ca766b4ed7
Still parse commandline options when -no-config is passed.
2016-09-18 22:29:05 +02:00
Dave Davenport
6131329210
Fix for #467 , don't count border twice, take right line-margin into account.
2016-09-18 22:23:39 +02:00
Dave Davenport
acdb6bdf53
Fix fprintf.
2016-09-18 14:44:03 +02:00
Dave Davenport
5b843bd08b
Remove entry from history if fails to execute.
...
Issue: #466
2016-09-17 21:28:22 +02:00
Dave Davenport
050fd66c02
Force dmenu in sync mode to stop breaking old features that rely on this.
2016-09-17 19:41:24 +02:00
Dave Davenport
5ee5bb1e23
First rough version of async loading for dmenu.
2016-09-17 18:57:44 +02:00
Dave Davenport
6191662ccf
Fix indenting view.c.
2016-09-17 18:35:03 +02:00
Dave Davenport
3e272b2b00
Don't throw error when textbox gets input but is not editable.
2016-09-17 18:34:04 +02:00
Dave Davenport
d4d757a7c0
Allow for reloading of window content (10fps), needed for async transfer.
...
* Resize window to fit rows if not num-fixed-lines is set.
* If there is no entry to show, remove separator.
* Store size/pos per State.
2016-09-17 18:06:25 +02:00
Dave Davenport
cf70fbf709
Issue: #462 Do not blink on cursor move, text insert,remove.
2016-09-16 20:35:46 +02:00
Dave Davenport
05600368ff
Small cleanups.
...
Remove duplicate code to update window size, make error dialog use normal mainloop.
2016-09-16 20:28:59 +02:00
Ian Remmler
71f5f1ac54
Initialize mouse_seen. ( #461 )
...
* Add Ian Remmler to AUTHORS.
* Explicitly initialize mouse_seen.
2016-09-09 20:36:12 +02:00
Dave Davenport
c200709838
Fix wrong entry + CI.
2016-09-08 22:56:22 +02:00
Ian Remmler
91e2ecf212
Added click-to-exit option. ( #460 )
...
Exit if a mouse button is pressed and released outside of the rofi
window.
2016-09-08 22:42:41 +02:00
Dave Davenport
e3fb17a843
Ask window manager to hide decoration in normal-window mode.
...
Issue #485
2016-09-08 08:57:35 +02:00
Dave Davenport
43be4bd18f
Fix keyboard grab normal-window mode
2016-09-06 09:06:02 +02:00
Dave Davenport
926fbdb190
Release pointer too
2016-09-02 20:19:37 +02:00
Dave Davenport
4379f3be7c
Ctrl-click does alternate accept entry.
...
Fixes #429
2016-09-02 18:19:16 +02:00
Dave Davenport
b420db8d30
Another trow at #454
...
- Hide window, ungrab mouse.
- Flush, before switching window.
2016-09-02 09:38:51 +02:00
Dave Davenport
642cad350d
Remove pointless NULL check.
2016-09-02 09:32:32 +02:00
Dave Davenport
4a4769f0b4
Add debug and indent
2016-08-31 10:06:42 +02:00
Dave Davenport
4a95285212
Merge branch 'seletskiy-xinerama'
...
* Tweak some minor things.
2016-08-31 09:59:51 +02:00
Dave Davenport
3da2867506
Merge branch 'xinerama' of https://github.com/seletskiy/rofi into seletskiy-xinerama
2016-08-31 09:44:11 +02:00
Dave Davenport
56cc94195c
DRUN: Make name key required even when hidden. ( #453 )
2016-08-31 09:39:00 +02:00
Stanislav Seletskiy
a6207e473a
remove functions from .h, free memory, int to bool
2016-08-31 14:29:25 +07:00
Stanislav Seletskiy
05165a02f2
add xinerama support
2016-08-31 14:10:30 +07:00
Dave Davenport
21b35b3e3e
More debug, fix one off.
2016-08-30 21:56:51 +02:00
Dave Davenport
08319d6439
Keep a list of disabled Desktop files.
2016-08-30 21:49:46 +02:00
Dave Davenport
c099aaeabf
Add debug output.
2016-08-30 21:24:04 +02:00
Dave Davenport
5646adc34d
Add option to set padding within a line.
...
Fixes : #449
2016-08-30 18:07:34 +02:00
Dave Davenport
0d9d4d6c55
DRun Check if filename ends in .desktop.
2016-08-30 17:41:30 +02:00
Dave Davenport
ef509865fb
Add extra debug to DRun Desktop File parsing.
2016-08-30 08:52:02 +02:00
Dave Davenport
51eac318fd
Test #454 unmap window before switching.
2016-08-30 08:14:53 +02:00
Dave Davenport
e79361e890
Fix configure script a bit.
2016-08-29 21:38:29 +02:00
Dave Davenport
5cfe9a89b3
Improve DRun handling a bit.
...
- Remove entries that are deprecated or unsupported.
- Handle field codes %c and %k
TODO:
- Detect multiple identical field code entries and throw error.
2016-08-29 21:14:03 +02:00
Dave Davenport
1f641135e2
Extra checks when parsing file.
2016-08-29 08:55:28 +02:00
Dave Davenport
a90ff48032
But broken drun under a configure option.
2016-08-29 08:46:21 +02:00
Dave Davenport
58eaa81520
Name field in desktop file is required.
2016-08-29 08:23:55 +02:00
Dave Davenport
56c2d0dfb2
Disable drun mode as it is broken.
...
* Does not handle %[uf] whatever in Exec command.
* It is not it own binary.
* It has no build in file browser.
* etc.
2016-08-29 07:49:11 +02:00
Dave Davenport
e4cab560f4
First hack at fixing Desktop file parser.
2016-08-28 22:43:42 +02:00
Dave Davenport
20e55e1e4e
Add fuzzy matching, make a -matching option.
...
* -matching *method* option instead of -regex, -glob, -fuzzy.
* Re-add fuzzy matching pattern.
* When there are substrings in regex, only highlight those matches.
Fixes : #447
2016-08-25 21:17:58 +02:00
fice-t
a657f81145
Bind Control+g to kb-cancel ( #452 )
...
Control+g is the Emacs/readline standard for abort, so it would be nice
to have this by default.
2016-08-25 07:52:54 +02:00
Dave Davenport
99cb1e6f11
Don't force an second error when monitor is not found.
2016-08-24 10:36:39 +02:00
Dave Davenport
ef3c773097
Constness.
2016-08-24 00:39:56 +02:00
Dave Davenport
ad53de507c
Extra cleanup at exit.
2016-08-22 08:39:22 +02:00
Dave Davenport
284b3cb78b
Update manpage to show -display- option, sidebar mode uses display name.
2016-08-22 08:04:20 +02:00
Dave Davenport
6225b29d94
Issue 448, Take another default that should not fail, better error mesg
2016-08-19 18:01:26 +02:00
Dave Davenport
df7468b491
Use XRandr to get monitor layout instead of xinerama.
...
* You can now specify monitor by name, or primary status.
2016-08-19 10:46:38 +02:00
Dave Davenport
26d1e64b22
Make textbox use character position instead of byte index for cursor.
2016-08-15 09:01:56 +02:00
Dave Davenport
b5595d7a7e
Fix #443
2016-08-13 16:22:15 +02:00
Dave Davenport
026a8cbb34
Fix #438 look for a 8 bpc 32bit visual, fixes 10bpc 30bit screen
2016-08-07 13:26:28 +02:00
Dave Davenport
6495d8e8df
Add -input to -h output
2016-08-05 07:45:39 +02:00
Dave Davenport
eb0bfc60c4
Indicate what set an option, comment default options in dump-xresources.
2016-08-04 20:24:01 +02:00
Dave Davenport
ce822a3bbf
Fix memory leak run dialog when skipping.
2016-08-02 18:37:14 +02:00
Dave Davenport
90c6c1125f
Fix memory leak overlay widget
2016-08-02 18:33:55 +02:00
Dave Davenport
604b4cb619
Fix memory leak, re-indent
2016-07-31 23:28:31 +02:00
Dave Davenport
4ad2c37eea
textbox: Handle tall glyphs better ( #433 )
...
We now place text based on the baseline, instead of the top of the
tallest glyph.
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-07-30 20:39:45 +02:00
Dave Davenport
4be25abad7
Fix some doxygen warnings.
2016-07-29 08:32:34 +02:00
Dave Davenport
8478b427f1
Fix Control+u behaviour
2016-07-27 08:10:55 +02:00
Dave Davenport
fe230eb95c
Fix #432 , Control+k removes till eol.
2016-07-25 11:32:30 +02:00
Dave Davenport
22c8760e32
First try at fixing #430 . Needs testin.
2016-07-22 09:44:12 +02:00
Dave Davenport
5d5c9713d7
Fix crasher on no scrollbar and mouse seek.
2016-07-21 07:57:35 +02:00
Dave Davenport
602eb63557
Add `-multi-select
flag to dmenu.
...
* Changes default behaviour.
2016-07-18 23:58:08 +02:00
Dave Davenport
59635919ea
Add selection indicator to dmenu mode.
2016-07-18 23:49:26 +02:00
Dave Davenport
85d95c4f8f
Fix memory leak
2016-07-16 22:36:20 +02:00
Dave Davenport
e9c3b930bc
[Window] Chomp result
...
Fixes #426
2016-07-16 22:25:00 +02:00
Dave Davenport
b31cf1d32f
On rofi -show without argument, run de first one from the modi list.
2016-07-13 08:55:40 +02:00
Dave Davenport
b47e9c3846
Allow for more advanced window 'line' formatting
2016-07-12 10:44:43 +02:00
Dave Davenport
342192b4ed
Remove work-around for older i3 version (< 4.9)
...
- I3 got ewhm support in Feb. 2015.
2016-07-06 08:34:47 +02:00
Dave Davenport
dfc952f570
Add missing static
2016-07-05 18:13:53 +02:00
Dave Davenport
b7fba9752f
Don't double switch something trivial.
2016-07-05 09:21:50 +02:00
Dave Davenport
7c9f5e01fd
Fix tests and crash.
2016-06-28 23:34:07 +02:00
Dave Davenport
9f25a975ae
Fix windowcd command and allow custom Window string format
2016-06-28 23:07:48 +02:00
Dave Davenport
3ac07c3535
Fix indenting
2016-06-27 20:43:09 +02:00
Dave Davenport
baee50e346
XRM: rofi is not a class name
2016-06-27 08:26:09 +02:00
Dave Davenport
4af6976411
Fix piece of weird code to fetch background image.
2016-06-26 17:10:29 +02:00
Dave Davenport
6e2d0b6319
Add selection counter in dmenu mode
2016-06-26 15:48:12 +02:00
Dave Davenport
c87e91b6d9
Make select behave more Rasi-ish
2016-06-26 11:00:23 +02:00
Dave Davenport
40f95ae81f
Make bit functions static
2016-06-25 17:40:24 +02:00
Dave Davenport
ce645d78b3
Multi-select with unselect
2016-06-25 17:36:35 +02:00
Dave Davenport
a7922cc07c
Remove xlib dependency, add xcb-util-xrm.
2016-06-25 14:01:41 +02:00
Dave Davenport
77a0800ccf
Copy memory instead of mixing malloc and g_malloc'ed memories (and freeing them all with g_free)
2016-06-21 22:40:42 +02:00
Dave Davenport
5fb6ee1383
Fix rootwindow set at wrong pointer level.
2016-06-21 22:09:29 +02:00
Dave Davenport
1f4af41e96
Split Custom and Alternate command.
2016-06-19 18:02:49 +02:00
Dave Davenport
dab872879e
Remove Tab from row-down list
2016-06-18 21:18:06 +02:00
Dave Davenport
03239cb989
Remove fuzzy matching option.
2016-06-18 20:54:29 +02:00
Dave Davenport
7a2435a23b
Indent don't use partial match.
2016-06-16 22:23:55 +02:00
Dave Davenport
57336b96f0
Merge remote-tracking branch 'origin/master' into highlight_match
2016-06-16 08:41:40 +02:00
Dave Davenport
60cb992cac
Fix double free
2016-06-12 00:58:43 +02:00
Dave Davenport
e966fbe583
Terminate rofi if switcher is not found
2016-06-07 09:58:48 +02:00
Dave Davenport
0b84d63959
Merge remote-tracking branch 'origin/master' into highlight_match
2016-06-07 09:02:03 +02:00
Dave Davenport
0170aef0e6
Add Control-Backspace as keybinding.
2016-06-06 09:31:48 +02:00
Dave Davenport
9ff7a26c7e
Some indenting fixes
2016-06-05 20:41:10 +02:00
Dave Davenport
3f31620a3e
Wip/drun subdirs ( #416 )
...
* drun: Walk subdirectories too
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
* Remove goto, make it work for Filesystems that do not support reporting file type.
* Fix using filename before creating it.
* Run indenter over drun file.
* Fix stupid typo
2016-06-05 19:01:38 +02:00
Dave Davenport
72d6c20876
Merge remote-tracking branch 'origin/master' into highlight_match
2016-06-01 19:04:52 +02:00
Dave Davenport
01ce909c97
Update some headers.
2016-06-01 07:34:41 +02:00
Dave Davenport
ed7aeb7722
Fix 'Tab' binding description
2016-05-31 08:05:09 +02:00
Dave Davenport
10e3526237
Fix description, -switchers does not exist.
2016-05-31 07:59:40 +02:00
marduk
be5a66c9b5
Added the descriptions of the keybindings
2016-05-31 07:47:17 +02:00
Dave Davenport
8616b32310
Remove initialization
2016-05-30 21:10:10 +02:00
Dave Davenport
d62cc8a4ba
First throw at issue #403 , show wm name.
2016-05-30 18:35:22 +02:00
Quentin Glidic
56ed9e6a04
gitmodules: Update libgwater
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-05-30 18:25:40 +02:00
Dave Davenport
0fb7258470
Fix missing equals
2016-05-30 10:27:58 +02:00
Dave Davenport
1b5bcaa9f4
Issue #411 : Show list of Keyboard bindings with rofi, from rofi.
2016-05-30 10:25:58 +02:00
Dave Davenport
e84e387e94
Fix 1 character entries in git.
2016-05-27 09:31:57 +02:00
Dave Davenport
0e86050db8
Fix combi mode 'bang' behaviour, improve levenshtein with combi
2016-05-26 08:39:33 +02:00
Yaroslav
f901494c6a
Switch to stop cycling feature ( #407 )
...
* Added 'cycle' option to switch list navigation wrapping
* Replaced tabs with spaces
* Updating the expected rofi properties with 'cycle' option
* Updating documentation with the 'cycle' option
2016-05-25 20:40:23 +02:00
Dave Davenport
7aff2ae243
Merge remote-tracking branch 'origin/master' into highlight_match
2016-05-23 17:11:41 +02:00
Dave Davenport
5b3239a748
Fix : #409 Use display-name for prompt.
2016-05-23 08:19:36 +02:00
Dave Davenport
99a79f7eb4
Don't use g_ascii on utf8 string.
2016-05-22 19:41:52 +02:00
Dave Davenport
498fadc735
Remove the is_ascii mess.
2016-05-22 17:47:34 +02:00
Dave Davenport
8091558ed8
Go Regex Go
2016-05-21 10:37:23 +02:00
Dave Davenport
2a20821ddd
Merge remote-tracking branch 'origin/master' into hm
2016-05-20 09:57:25 +02:00
Quentin Glidic
db4f087487
window: Make custom action run a command on the window
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-05-12 11:31:12 +02:00
Quentin Glidic
3bd41b9a41
window: Kill the window on delete-entry
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-05-12 11:30:34 +02:00
Dave Davenport
c8a6b26607
First try at highlighting match (regex only)
2016-05-10 18:02:23 +02:00
Dave Davenport
09437e3f0e
We don't have a negative page number.
2016-05-10 17:51:23 +02:00
Dave Davenport
6070826c4d
Avoid needles updates when using continious scrolling
2016-05-10 11:47:32 +02:00
Dave Davenport
bd412b9975
Grab mouse pointer with keyboard.
2016-05-09 08:47:28 +02:00
Dave Davenport
b8ecbdcef5
Add option to set background for rofi window
2016-05-08 11:14:34 +02:00
Dave Davenport
8f6c9ee070
Fix indenting
2016-05-08 11:13:11 +02:00
Georgios Bitzes
8af7f014cd
Permit binding a modifier key on its own
2016-05-07 15:20:48 +02:00
Quentin Glidic
67b0ce036f
keybindings: Implement on-release bindings
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-05-07 11:31:04 +02:00
Quentin Glidic
20791d4a71
view: Split action triggering to an helper function
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-05-07 11:31:00 +02:00
Quentin Glidic
54f85fabaa
keybindings: Rework the matching
...
Now we check all bindings in one place, allowing for future naughty
matching.
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-05-07 11:25:04 +02:00
Quentin Glidic
65447b496a
view/navigation: Cleanup
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-05-07 11:24:32 +02:00
Quentin Glidic
aa350a1583
textbox/key: Cleanup
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-05-07 11:24:22 +02:00
Quentin Glidic
67c9fe158a
textbox/keybinding: Reindent
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-05-07 11:24:16 +02:00
Quentin Glidic
5b0964ae32
textbox: Split keybinding and text handling
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-05-07 11:24:10 +02:00
Quentin Glidic
143acf622b
view/keypress: Reindent
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-05-07 11:24:09 +02:00
Quentin Glidic
117c2360a4
view/keypress: Cleanup some useless stuff
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-05-07 11:23:44 +02:00
Quentin Glidic
0d899f1bbd
view: Split keypress handling to an helper function
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-05-07 11:23:13 +02:00
Dave Davenport
8e05106c87
Add option to view background image instead of screenshot in fake transparency. Issue #390
2016-05-06 12:40:55 +02:00
Dave Davenport
09d1955338
Issue: #395 adding more options.
2016-04-29 21:42:31 +02:00
Dimitar Yordanov
74d1b234d9
When switching windows also switch the desktop
...
If the window we switch to is not on the same desktop, first switch to
the desktop.
2016-04-28 22:45:01 +02:00
Dave Davenport
4dbf2813d0
Issue #388 , Try to make history parser more robust against corruption.
2016-04-27 12:57:43 +02:00
Dave Davenport
1661244407
Issue: 386: Fix getting desktop number property
2016-04-26 07:52:29 +02:00
Dave Davenport
85aeffbd24
small cleanup
2016-04-20 17:03:34 +02:00
Dave Davenport
44481cdb40
Small cleanups, fix worker error dialog.
2016-04-20 08:08:18 +02:00
Dave Davenport
3918625804
Move teardown to the logic place again (possible with deamon mode removed)
2016-04-20 08:04:23 +02:00
Dave Davenport
26e1083812
Issue: #380 Make combi complete prepend bang
2016-04-10 20:57:12 +02:00
Dave Davenport
cbf625ec9f
Work around crash. echo error to stderr.
2016-04-10 15:04:34 +02:00
Dave Davenport
96cb3a8695
Remove fgets and replace by getline.
2016-04-10 14:30:13 +02:00
Dave Davenport
b63f8e2275
Move history to getline and remove magic limit.
2016-04-10 13:55:18 +02:00
Dave Davenport
a69754abff
Remove left-over printf.
2016-04-10 12:08:36 +02:00
Dave Davenport
e54e012500
Issue: #381 : Try to handle X11 input and UTF-8 better.
...
In window_get_text_prop do conversion when input is of type STRING. (latin1) to utf8.
Dmenu: don't skip invalid lines, but try to display as much as possible.
Window mode: Double check all input from X.
2016-04-10 12:05:34 +02:00
Dave Davenport
bf51983150
Fix possible macro expansion problem.
...
As indicated by llvm analysis passes.
2016-04-05 21:26:21 +02:00
Quentin Glidic
29f6823cf9
rofi: Only display GIT_VERSION if available
...
It now contains the latest tag, so we have all the relevant information.
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-04-05 16:57:52 +02:00
Dave Davenport
3397ae1150
Remove unused -quiet commandline option.
...
This option, with the removal of daemon mode, no longer had any purpose.
2016-04-02 22:11:38 +02:00
Dave Davenport
541f5b1fc9
Fixes issue #370 : Move dmenu option into dmenu.
2016-04-02 10:39:02 +02:00
Dave Davenport
d3350afbed
Use SYSCONFDIR
2016-04-01 19:51:24 +02:00
Dave Davenport
53242dab7d
Merge branch 'master' of github:DaveDavenport/rofi
2016-04-01 18:03:32 +02:00
Dave Davenport
1b4e5069f6
Revert "Test config file before load, support ~/.config/rofi/theme and remove config_path global, fix loading dynamic options from /etc/rofi.conf"
...
This reverts commit 0c7d1a6b17
.
2016-04-01 17:58:41 +02:00
Quentin Glidic
13601fb892
rofi: Fix g_file_test calls
...
G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR will return TRUE even for
directory.
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-04-01 09:33:58 +02:00
Dave Davenport
0c7d1a6b17
Test config file before load, support ~/.config/rofi/theme and remove config_path global, fix loading dynamic options from /etc/rofi.conf
2016-04-01 08:40:23 +02:00
Dave Davenport
2127682573
Cleanup unused type specifier (dialogs).
2016-03-24 22:15:10 +01:00
Dave Davenport
c4b65d975c
Cleanup unused type specifier.
2016-03-24 22:13:19 +01:00
Dave Davenport
3ac0c6dd7d
Quick fix.
2016-03-21 20:27:16 +01:00
Quentin Glidic
6a84d29e02
x11-helper: Drop RControl/LControl from Control modifier mask
...
They are not used for that, and Control was a #define in X11 headers anyway.
Fixes #362
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-03-20 14:00:29 +01:00
Quentin Glidic
20c9abf0a2
keybindings: Merge accept-custom and accept-entry-continue
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-03-20 10:39:34 +01:00
Dave Davenport
c7bc850bb8
Fix reloading after deleting entry
2016-03-20 10:20:40 +01:00
Dave Davenport
d36ae81408
Fix positioning window on top of window.
2016-03-20 10:16:55 +01:00
Dave Davenport
a2869ef39d
Make clang static code analyzer happy (300+ -> 5)
2016-03-19 13:29:04 +01:00
Dave Davenport
1f8db0fc5a
Remove pointless else if statement
2016-03-19 12:21:08 +01:00
Quentin Glidic
f5231ca24d
rofi: Allow fullscreen on specified monitor
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-03-18 09:21:36 +01:00
Dave Davenport
cdd9f97072
Issue 213: Memcpy the right size for atoms
2016-03-17 22:03:19 +01:00
Quentin Glidic
3a781d6fb9
x11-helper: Advertise the correct set of supported modifiers
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-03-17 12:10:50 +01:00
Dave Davenport
5d7bf1cfcf
Issue 358 Set monitor width and height for monitor -3 mode.
2016-03-15 09:40:32 +01:00
Dave Davenport
9549dfdd3e
Terminate mainloop after error message when trying to start it in daemon mode.
2016-03-13 20:11:39 +01:00
Dave Davenport
545c423b61
Tried to fix strlen on NULL
2016-03-12 14:00:19 +01:00
Quentin Glidic
abe44475fc
view: Fix multi-character compose sequences
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-03-07 18:10:22 +01:00
Dave Davenport
1d2625cbb8
Read default config from /etc/rofi.conf if exists.
2016-03-07 17:52:29 +01:00
Dave Davenport
d5be6d232e
Add MENU_ERROR_DIALOG flag.
2016-03-06 16:03:04 +01:00
Dave Davenport
b13bff6d1d
Try to fix things
2016-03-05 23:25:46 +01:00
Dave Davenport
f4f2e3d129
Add option to position rofi at mouse
2016-03-05 23:01:16 +01:00
Dave Davenport
9978feb600
Make cppcheck happy
2016-03-05 20:07:25 +01:00
Dave Davenport
d99111c73b
Remove deprecated theme system.
2016-03-05 18:28:39 +01:00
Dave Davenport
bfd338dfc8
Allow X parsed colors
2016-03-05 16:33:18 +01:00
Dave Davenport
7aa289d90c
Fix color parsing
2016-03-05 16:25:17 +01:00
Dave Davenport
4c8375189c
More cleanups
2016-03-05 12:06:14 +01:00
Dave Davenport
5effc9581c
Cleanup
2016-03-05 11:34:44 +01:00
Dave Davenport
c0690c8afb
Cleanups.
2016-03-05 11:18:23 +01:00
Dave Davenport
72dfe2ad4c
Propagate error down, show dialog.
...
Fix positioning dialog.
2016-03-05 11:08:32 +01:00
Dave Davenport
881ca572df
Return NULL when empty property.
2016-03-04 19:41:32 +01:00
Dave Davenport
fa7ceaf580
Check for the availability of the xinerama extension.
2016-03-04 17:03:24 +01:00
Dave Davenport
fd707acac5
Move keymap updating into right x11 event loop handler.
2016-03-04 08:15:12 +01:00
Dave Davenport
9d7d8a9aeb
Be able to run without compose table.
2016-03-04 08:02:54 +01:00
Dave Davenport
fc75a204d5
Check table exists.
2016-03-04 00:22:04 +01:00
Dave Davenport
fe8aa55fdc
Correctly check error
2016-03-03 16:02:14 +01:00
Dave Davenport
ba0b2379a6
Check if connection was succesfull
2016-03-03 15:59:31 +01:00
Martijn Koedam
797a3b8ea5
Free was too early.
2016-03-03 12:46:12 +01:00
Dave Davenport
06d25c0ca2
Quit on error msg fail.
2016-03-03 08:21:28 +01:00
Dave Davenport
3d2f0a07db
Quit when failing to create dialog.
2016-03-03 08:11:48 +01:00
Dave Davenport
93b80be913
is active can be NULL, check
2016-03-03 08:09:36 +01:00
Dave Davenport
f0b1998703
Cleanups (cppcheck)
2016-03-02 18:07:59 +01:00
Dave Davenport
f05f0de583
Fix #348 , give a warning when font failed to parse
2016-03-01 19:48:18 +01:00
Dave Davenport
8c950a984c
Small cleanup
2016-03-01 18:33:26 +01:00
Dave Davenport
7d046a1f5b
Pack magic externs into a xcb_stuff.
2016-03-01 18:11:55 +01:00
Dave Davenport
fb2c23a429
Try to get fullscreenmode to draw nicer.
2016-02-29 12:11:04 +01:00
Dave Davenport
131b8eaaea
Remove dead code
2016-02-28 18:33:01 +01:00
Dave Davenport
cc5db086bf
Indenting
2016-02-28 18:22:00 +01:00
Dave Davenport
ef98b3928a
Small cleanup.
2016-02-28 18:20:39 +01:00
Dave Davenport
3fa1940a5c
Do a redraw after changing selected line
2016-02-28 18:13:58 +01:00
Dave Davenport
28ed4eab7b
Take SardemFF7 advice on aliasing Ctrl+s and Ctrl+S, shift needs to mentioned explicit
2016-02-28 16:57:16 +01:00
Dave Davenport
21bce63e79
Do some filtering on the keybinding, to get the right keycombo for alt+shift+s.
2016-02-28 16:42:20 +01:00
Dave Davenport
bd04e90d9e
Change window id from long unsigned to unsigned.
2016-02-28 15:33:57 +01:00
Dave Davenport
a4fd907fe8
Run indenter
2016-02-28 15:32:53 +01:00
Dave Davenport
594bf00194
Fix keybindings and fix tests
2016-02-28 13:08:08 +01:00
Dave Davenport
057f156009
Remove unneeded atom
2016-02-28 12:35:47 +01:00
Quentin Glidic
644556b7b6
Change Window/Atom to xcb_window_t/xcb_atom_t
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-02-28 12:21:26 +01:00
Dave Davenport
73a0eb3e39
Remove X11/* include headers.
2016-02-28 12:22:10 +01:00
Dave Davenport
ab57479da9
Remove Atom with xcb_atom_t.
2016-02-28 12:19:56 +01:00
Dave Davenport
c519b6a65a
Fix free'ing of ewmh calls, remove old X codes
2016-02-28 11:57:52 +01:00
Dave Davenport
91ad94aef3
Free right memory, get right window class name.
2016-02-28 11:16:54 +01:00
Dave Davenport
4cd76a6d8e
Merge remote-tracking branch 'github/master' into wip/xcb/full
2016-02-28 11:04:09 +01:00
Dave Davenport
460cad8bc8
Fix grab keyboard to wait on success.
2016-02-28 10:36:13 +01:00
Dave Davenport
6d0d6d9eb2
Tests.
2016-02-28 01:21:22 +01:00
Dave Davenport
93cb9ee7eb
Remove opening of display.
2016-02-28 01:08:12 +01:00
Dave Davenport
764992e4bb
Remove more display usage
2016-02-28 00:25:53 +01:00
Dave Davenport
c261aa8e89
change startup notification to xcb
2016-02-28 00:15:42 +01:00
Dave Davenport
d813d03a5f
Convert more stuff to xcb, keyboard grab, cleanup
2016-02-28 00:09:05 +01:00
Dave Davenport
4c661c3932
Move most of window modi to xcb
2016-02-27 22:55:47 +01:00
Dave Davenport
bb2f0d8b83
Move more to xcb, window_*_ functions to xcb_ functions
2016-02-27 21:55:43 +01:00
Dave Davenport
a02cb83a98
Move more to xcb.
2016-02-27 20:45:47 +01:00
Dave Davenport
305829fcc8
query pointer to xcb
2016-02-27 19:51:06 +01:00
Dave Davenport
dce35ba4ef
Move more stuff to xcb_
2016-02-27 19:26:51 +01:00
Dave Davenport
f79a6d6d2e
Convert view.c to xcb_ functions. secondary paste fails.
2016-02-27 17:57:43 +01:00
Dave Davenport
15ad8e1da3
Removing XCB from view.c, paste less
2016-02-27 17:42:50 +01:00
Dave Davenport
9cb5829303
Use xcb_flush instead of XFlush
2016-02-27 14:05:29 +01:00
Dave Davenport
5a204829f0
Fix not updating in daemon mode
2016-02-23 23:54:35 +01:00
Dave Davenport
3f8efed56d
Add missing flush
2016-02-23 22:04:44 +01:00
Dave Davenport
3b58c3a26a
Fix issue: #347 .
2016-02-23 21:14:15 +01:00
Dave Davenport
319524c7c5
Test for single mainloop
2016-02-23 21:04:24 +01:00
Dave Davenport
87546caa8f
Fix previous commit.
2016-02-23 19:34:48 +01:00
Dave Davenport
faf5c49b8c
Remove hardcoded string length in window list.
2016-02-23 19:14:21 +01:00
Quentin Glidic
2ef950eab9
WIP: Port window stuff to xcb
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-02-23 17:37:25 +01:00
Quentin Glidic
6bb1d4b1a2
x11-helper: Migrate to libxkbcommon
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-02-23 17:34:38 +01:00
Quentin Glidic
42e9709207
keybindings: Merge left/right variants of modifiers
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-02-23 17:34:33 +01:00
Quentin Glidic
3029e05ac7
keybindings: Rework modmask matching
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-02-23 17:34:31 +01:00
Quentin Glidic
590e61b417
view: Store modstate on keypress event
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-02-23 12:52:35 +01:00
Quentin Glidic
990914d20f
rofi: Drop daemon mode
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-02-23 12:15:03 +01:00
Quentin Glidic
88ddb7f04e
x11-helper: Directly store the useful value
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-02-23 12:13:44 +01:00
Quentin Glidic
f39f5bb0cb
view-internal: Use XCB types
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-02-23 12:13:21 +01:00
Quentin Glidic
09e520dfe8
rofi: Always use ARGB for Cairo image surfaces
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-02-21 22:10:03 +01:00
Dave Davenport
aa1d8b4046
Remove x11-event-source, replaced by libgwater.
2016-02-21 17:47:19 +01:00
Dave Davenport
75c9f58900
Remove XIC and XIM.
2016-02-21 17:14:37 +01:00
Quentin Glidic
ee52e50662
view/compose: Use Xlib cancelling behaviour
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-02-21 17:00:28 +01:00
Quentin Glidic
5d6f2ee1ab
Compose stuff
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-02-21 16:04:53 +01:00
Quentin Glidic
e1f87a67b4
rofi: Migrate to libxkbcommon
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-02-21 16:04:53 +01:00
Quentin Glidic
fe7ca2079d
rofi: Convert to XCB events
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-02-21 16:04:53 +01:00
Dave Davenport
2eb63456db
view: Flush after drawing
2016-02-21 16:04:53 +01:00
Dave Davenport
9121732e36
Cleanups.
2016-02-19 21:16:35 +01:00
Dave Davenport
038346b640
Cleanup + fix
2016-02-19 21:08:46 +01:00
Dave Davenport
758d155a20
Fixing.
2016-02-19 20:08:14 +01:00
Dave Davenport
6e3bb506de
Full mainloop madness
2016-02-19 19:50:48 +01:00
Dave Davenport
4eb3fd1da3
Test for single mainloop
2016-02-19 19:29:06 +01:00
Dave Davenport
a125f6d515
Try to fix crash with new scrolling method.
2016-02-18 19:23:41 +01:00
Dave Davenport
638e58e7d8
Issue: #219 Rounding down.
2016-02-17 22:13:13 +01:00
Dave Davenport
d2567a6884
#219 : Implement continious scroll
2016-02-17 20:29:23 +01:00
Dave Davenport
99515f986e
Fix issue #281
...
if one entry as input and autoselect enabled return immediately
2016-02-17 08:46:22 +01:00
Dave Davenport
63be750c5b
Quick work-around fix for rofi blocking X on unavailable monitor
2016-02-17 00:00:41 +01:00
Dave Davenport
6217edf622
#343 Add history support to drun mode.
2016-02-16 10:40:21 +01:00
Dave Davenport
354e65fa06
Do not pass the same information twice.
2016-02-12 08:23:59 +01:00
Dave Davenport
11c347fad8
Use accessors in RofiView to get modi's and num modi for sidebar.
2016-02-11 08:41:19 +01:00
Dave Davenport
3b007b7eff
Pull StartupNotificaiton Display event handling into the main event loop
2016-02-11 08:22:48 +01:00
Dave Davenport
46e3429040
Fix #336 , missing prototype
2016-02-10 22:12:49 +01:00
Dave Davenport
fdb4c99456
Remove normal window global.
2016-02-10 19:40:19 +01:00
Dave Davenport
2cd8888d2c
Merge remote-tracking branch 'origin/master' into glib-loop
2016-02-09 22:35:03 +01:00
Dave Davenport
289795b22a
Fix finding active desktop!
2016-02-09 21:25:29 +01:00
Dave Davenport
f7e2632624
Merge remote-tracking branch 'origin/master' into glib-loop
2016-02-09 19:55:31 +01:00
Dave Davenport
5185f1181c
Validate if input is utf-8 for dmenu, if not ignore that line
...
This should avoid crashing on invalid encoding.
2016-02-09 19:54:43 +01:00
Dave Davenport
2cc2522e57
Revert part of commit e7b18d3a88
...
Allow markup to be set via textbox flags.
2016-02-09 19:53:46 +01:00
Dave Davenport
c3f15a4e2a
Merge remote-tracking branch 'origin/master' into glib-loop
2016-02-09 07:56:45 +01:00
Dave Davenport
e7b18d3a88
Issue: #334 : Only allow markup-rows to be set on cmdline
...
This should avoid people setting this in XResrouces and breaking random dmenu scripts.
2016-02-09 07:37:48 +01:00
Dave Davenport
5d430824b3
Doxygen updates.
2016-02-08 18:16:16 +01:00
Dave Davenport
5a86ae5c99
Cleanups
2016-02-08 09:03:11 +01:00
Dave Davenport
ad932c8fd0
More cleanups
2016-02-07 20:38:34 +01:00
Dave Davenport
ca3afc6a6e
more renameing
2016-02-07 14:09:00 +01:00
Dave Davenport
7c8605764b
Remove unneeded redraws
2016-02-07 12:43:07 +01:00
Dave Davenport
69b3a360fc
Continue cleanup
2016-02-07 12:31:17 +01:00
Dave Davenport
c217307b43
Update!
2016-02-06 14:41:08 +01:00
Dave Davenport
adfc83f07d
Restructuring, my biggest joy.
2016-02-06 14:27:36 +01:00
Dave Davenport
73169af793
Remove no longer needed structure.
2016-02-06 13:40:25 +01:00
Dave Davenport
312ca274fc
Split of files.
2016-02-06 13:06:58 +01:00
Dave Davenport
531f3f884a
Merge remote-tracking branch 'origin/master' into glib-loop
2016-02-04 16:25:04 +01:00
Dave Davenport
69b88caac5
Allow user to open an disabled modi.
2016-02-04 09:20:10 +01:00
Dave Davenport
bb6ae77ba5
Fix error dialog no longer closing on keypress
2016-02-03 18:28:58 +01:00
Dave Davenport
b557c4df6e
Issue: #333 , Check if row is selected, don't assume selected_line is valid.
2016-02-03 09:01:13 +01:00
Tobias Kortkamp
b2575d746a
Use correct namelen when connecting to i3 socket
2016-02-02 09:36:39 +01:00
Dave Davenport
c173d9d707
Merge remote-tracking branch 'origin/master' into glib-loop
2016-02-02 08:05:28 +01:00
Gareth Poole
5bb2414a2b
Fix spelling error
2016-01-30 17:04:14 -05:00
Dave Davenport
3b723deb90
Re-enable blinking
2016-01-29 21:56:52 +01:00
Dave Davenport
a8a8ba8cd2
Only remove source if exists
2016-01-27 23:49:56 +01:00
Dave Davenport
91780b71db
Small fix.
2016-01-27 23:39:52 +01:00
Dave Davenport
afc056ecc5
Play with dmenu black screen
2016-01-27 23:28:14 +01:00
Dave Davenport
eab4e1438f
Make dmenu use glib mainloop.
2016-01-26 08:38:07 +01:00
Dave Davenport
3da03c068d
Fix comment add todo.
2016-01-26 08:38:07 +01:00
Dave Davenport
f42258f60a
Merge remote-tracking branch 'origin/master' into glib-loop
2016-01-25 20:46:11 +01:00
Dave Davenport
e416753cb3
On empty input, return CUSTOM_INPUT so to distinquish between cancel and empty.
...
Fix #322
2016-01-25 08:58:56 +01:00
Dave Davenport
384a918d28
Make error dialog work correctly by creating lokal main loop (aka GtkDialog)
2016-01-22 18:18:26 +01:00
Dave Davenport
9a363b3ecb
Fix switchign between switchers.
2016-01-20 23:25:50 +01:00
Dave Davenport
1e57dd40e1
Try to force propper showing of rofi.
2016-01-20 23:08:19 +01:00
Dave Davenport
984257fffc
Very dirty first attempt at glib mainloop in switcher (not yet dmenu.)
2016-01-20 20:57:26 +01:00
Dave Davenport
4b7a29a26f
Take SardemFF7 feedback on putting g_source_[attach|add_callback] inside factory.
2016-01-20 19:12:17 +01:00
Dave Davenport
874f587021
Merge remote-tracking branch 'origin/master' into glib-loop
2016-01-20 19:11:00 +01:00
Dave Davenport
784244a35b
Remove unused timeout function.
2016-01-20 19:10:19 +01:00
Dave Davenport
348989e52c
Take SardemFF7 (or so) feedback into account about sources polling unix fd.
2016-01-20 19:03:09 +01:00
Dave Davenport
d9ac267960
Merge remote-tracking branch 'origin/master' into glib-loop
2016-01-20 18:57:41 +01:00
Dave Davenport
eadf455c8c
Let DMenu mode reuse open dialog and not restart it. handy for multi-select.
2016-01-20 18:50:33 +01:00
Dave Davenport
d0716efe12
Refactor menu function into three parts, setup, itterrate and finalize.
2016-01-20 18:24:31 +01:00
Dave Davenport
70c1012e91
Bind the right signal (int not term)
2016-01-19 08:10:17 +01:00
Dave Davenport
42ee408d0f
Move X11EventSource into separate file.
2016-01-18 22:02:07 +01:00
Dave Davenport
6692f36423
SardemF77 input.
2016-01-18 21:43:33 +01:00
Dave Davenport
80a6aa4549
Test a first glib mainloop.
2016-01-18 20:51:35 +01:00
Dave Davenport
64cfdf3f0d
Fix issue #319 ADd ISO_Left_Tab to default binding.
2016-01-16 16:38:29 +01:00
Dave Davenport
ec24e4426e
Fixing SardemFF7 Feedback: boolean, g_getenv and clear_error
2016-01-14 21:06:03 +01:00
Dave Davenport
98fdf04285
[RUN] UTF-8/locale conversion and sardem exec test.
2016-01-14 20:40:19 +01:00
Dave Davenport
e39f2dd53c
Fix compiling with timings enabled
2016-01-14 17:44:58 +01:00
Dave Davenport
121278e6d1
[DRUN] Expand path we get from Desktop file
...
* This is more 'free' then spec. but does not break anything.
Fixes : #317
2016-01-14 17:42:07 +01:00
Dave Davenport
cc682f107b
Update display value for modi (testing)
2016-01-12 22:18:10 +01:00
Dave Davenport
95dbbf6616
Small clang-analyze pleaser
2016-01-11 21:25:38 +01:00
Dave Davenport
f080aa2d61
Remove duplicate code, make password right character length.
2016-01-11 08:36:20 +01:00
Dave Davenport
13810d5911
Add experimental 'password' mode. ( #315 )
2016-01-10 13:10:44 +01:00
Dave Davenport
c6a9de8c4a
Use snprintf instead of sprintf
2016-01-09 19:25:03 +01:00
Dave Davenport
d7dab65e5b
Making widget class, moving stuff around
2016-01-09 16:22:09 +01:00
Dave Davenport
dc8fb4f202
Start making SardemFF happy. Use g_return_if_fail
2016-01-08 09:16:59 +01:00
Dave Davenport
20b2d658a0
More asserts
2016-01-07 21:37:03 +01:00
Dave Davenport
fa51aeb484
More splitting and abstracting.
2016-01-07 21:27:20 +01:00
Dave Davenport
e8daff0f6a
First cleanup steps.
2016-01-07 19:47:37 +01:00
Dave Davenport
51b5511017
More doxygen sugar.
2016-01-07 16:01:56 +01:00
Dave Davenport
b59552003e
More doxygen sugar
2016-01-07 13:32:33 +01:00
Dave Davenport
7f621a4a91
Replace strdup_printf with build_filename
2016-01-06 12:42:53 +01:00
Dave Davenport
c512f81c9c
Update comments, replace printf/build_filename
2016-01-06 12:40:41 +01:00
Dave Davenport
70dd6e2cef
Replace code we should never hit by an assert, as it should be.
2016-01-05 21:46:05 +01:00
Dave Davenport
81ea5fd8c6
Update documentation for ssh dialog
2016-01-05 21:19:30 +01:00
Dave Davenport
329f31bd75
Add doxygen target.
2016-01-05 19:49:13 +01:00
Dave Davenport
d661a515f0
Make levenshtein sort utf8 aware and obey case sensitive setting.
...
- Add tests.
- Use Glibs unichar for comparison.
2016-01-04 17:18:49 +01:00
Dave Davenport
41bd981b38
Initialize Xrm only once.
2016-01-04 07:59:30 +01:00
Jasper Lievisse Adriaanse
b2bc07e51d
Fix a crash due to overlapping arguments of memcpy(3).
...
As the use of memcpy(3) on overlapping memory regions is strictly undefined,
OpenBSD's memcpy(3) triggers an abort in such cases.
2016-01-03 21:20:24 +01:00
Jasper Lievisse Adriaanse
043a67d062
Workaround lack of sigwaitinfo() on OpenBSD.
2016-01-03 20:49:13 +01:00
Dave Davenport
d83f0531d6
Change writing of file, a+ does not allow fseek start on bsd.
2016-01-03 20:13:08 +01:00
Dave Davenport
bd3d472bec
Add optional config file that overrides local Xresources
...
Rofi will look at XDG_CONFIG_USER_DIR/rofi/config and load this after the Xresources db on DISPLAY.
This can be overridden using the -config commandline option.
The file should be in the same format as the Xresources file.
2016-01-03 13:30:43 +01:00
Dave Davenport
5a3c202423
Update copyright
2016-01-01 00:27:00 +01:00
Dave Davenport
745f9f3c62
Add screenshot test
2015-12-31 21:55:15 +01:00
Dave Davenport
192acf0f78
Playing
2015-12-31 19:04:38 +01:00
Dave Davenport
cb09512780
Add username to theme output.
2015-12-29 12:57:07 +01:00
Dave Davenport
38fabb6b1b
Issue #303 : Create one pango context from xlib surface
...
- Create one pango context and set font options from main xlib surface
- Set font type on global pango context.
- Use CAIRO_OPERATOR_OVER for drawing text (otherwise subpixel rendering is not done).
2015-12-28 11:27:27 +01:00
Dave Davenport
54a1147986
Small fix
2015-12-23 17:59:03 +01:00
Dave Davenport
696d0a2fa0
Fix 1 off memory leak
2015-12-23 17:03:00 +01:00
Dave Davenport
270ec0c14b
Fix out of memory bound on array
2015-12-22 20:57:57 +01:00
Dave Davenport
8b82787df6
Fix possible issue with uninitialized data
2015-12-21 23:14:56 +01:00
Dave Davenport
6760453d80
Reduce scope of index variable
2015-12-21 20:27:20 +01:00
Dave Davenport
06f9fee3f8
Add indicator for sorting/case sensitive.
2015-12-14 21:02:36 +01:00
Dave Davenport
04eebf964a
Indent
2015-12-14 20:28:25 +01:00
Dave Davenport
541c653913
Improve matching for DesktopFile run mode
2015-12-14 20:25:36 +01:00
Dave Davenport
47c110ed94
Fix #299 : Clear attributes when setting text on pango layout
2015-12-14 09:17:28 +01:00
Dave Davenport
2d354b3b3f
Re-indent
2015-12-13 19:21:06 +01:00
Dave Davenport
97fa0cc61d
Add option to set scrollbar width
2015-12-13 13:51:59 +01:00
Dave Davenport
f3c22c50e4
Add sorting switch: Issue: #298
2015-12-13 11:52:40 +01:00
Dave Davenport
08d6d6b685
Fix return code multi-select
2015-12-12 20:54:59 +01:00
Dave Davenport
86f63af7a8
Separator style
2015-12-10 22:00:41 +01:00
Dave Davenport
bae5427913
Add option to output to specific file.
2015-12-10 20:57:43 +01:00
Dave Davenport
8ed31cab7e
Add option to dump color scheme.
2015-12-10 18:20:04 +01:00
Dave Davenport
bb39372dd3
Remove : from filename, it makes scp stupid
2015-12-10 18:00:26 +01:00
Martijn Koedam
61738f881f
Indent + ChangeLog
2015-12-09 08:58:24 +01:00
Dave Davenport
98de9b554f
Add screenshot keybinding.
2015-12-09 08:51:40 +01:00
Dave Davenport
c4f3cbd2b1
Tweak selected row color. #293
2015-12-04 23:57:08 +01:00
Dave Davenport
273d09ba1a
Fix crasher on empty list
2015-12-04 22:01:32 +01:00
Dave Davenport
d2d95d2d4b
Get the right next position from line map.
2015-12-04 21:53:18 +01:00
Martijn Koedam
c78815250f
Update manpage and indent.
2015-12-04 09:50:53 +01:00
Dave Davenport
6b609b8e6d
Tell the users what Modifiers exist, warn if using Mod?
...
* Mod? modifier is deprecated.
Issue: #290
2015-12-04 08:54:27 +01:00
Dave Davenport
eaa553bfd5
Indent.
2015-12-03 22:48:30 +01:00
Dave Davenport
697abdfdfc
[DMenu] Add option to read from file instead of stdin.
2015-12-03 18:22:13 +01:00
Dave Davenport
91e0f6b555
Fix small char s/u issue
2015-12-02 17:46:17 +01:00
Dave Davenport
4b77a1728d
Remove custom code, replace by glib, fix fuzzy matching for unicode.
...
- Also fixes char endianess issues.
2015-12-01 22:09:34 +01:00
Qball Cow
ff52140697
Check for nil before updating.
2015-12-01 13:17:59 +01:00
Dave Davenport
544229d975
Issue #287 mark selected rows.
2015-11-30 14:05:39 +01:00
Dave Davenport
f3897b2a60
Fake background should only be done once every run.
...
Not on every re-run, as you will capture old rofi window.
2015-11-30 10:15:53 +01:00
Dave Davenport
ca6b1a8178
Fixing path.
2015-11-28 12:59:10 +01:00
Dave Davenport
bf60d9c01c
Fix return code
2015-11-28 11:59:11 +01:00
Dave Davenport
864a00b9fd
Add option to dump filtered list to stdout.
...
uses format option and filter `-dump`.
2015-11-27 13:14:46 +01:00
Dave Davenport
2da1207b7d
Fix issue #271 expand path.
2015-11-27 13:01:25 +01:00
Dave Davenport
e196df01fa
Do not support ModMasks, breaks to much stuff, This fixes #286
2015-11-26 20:30:51 +01:00
Dave Davenport
3c411433b4
Big rename from Switcher to Mode internal, to match with user terminology
2015-11-25 09:26:38 +01:00
Dave Davenport
627643281d
Fix ; in macro.
2015-11-24 22:53:40 +01:00
Dave Davenport
d1591273e7
Cleanups, rename and document.
2015-11-24 22:02:30 +01:00
Dave Davenport
00a555b685
Create more consistent ordering of arguments
2015-11-24 14:22:35 +01:00
Dave Davenport
6978b146f0
[Combi] only textual map, when not using glob/regex mode.
2015-11-24 14:14:55 +01:00
Dave Davenport
fa2bcd778c
Fix for complete issue #273 .
...
- Add complete handler.
2015-11-24 13:59:35 +01:00
Dave Davenport
cbba58914f
Some cleanups and re-ordering of parameters to be consistent.
2015-11-23 22:15:27 +01:00
Dave Davenport
ad778b7dc1
Const making.
2015-11-23 22:15:27 +01:00
Qball Cow
84daf5fd6c
Fix issue #285 , clear memory on realloc
2015-11-23 17:11:12 +01:00
Qball Cow
596c92c814
Only add modmask if not numlock.
2015-11-23 14:10:07 +01:00
Dave Davenport
b974b10c96
[DRun] Skip entries that have NoDisplay set.
...
Closes issue #283
2015-11-23 09:47:29 +01:00
Dave Davenport
611c2c4302
Don't create collate, use normalized form to match.
2015-11-22 23:49:41 +01:00
Dave Davenport
65dd080154
Undo last commit, seems to be unneeded
2015-11-22 21:10:39 +01:00
Dave Davenport
5e05472619
Set LC_CTYPE and LC_COLLATE instead of LC_ALL
2015-11-22 20:55:48 +01:00
Dave Davenport
4510f65d5a
textbox: advance cursor correctly for multi-char input
...
Thanks to eigengrau
fixes : #280
2015-11-22 20:41:45 +01:00
Sebastian Reuße
77617a97ec
Initialize locale upon startup.
...
It seems that Xlib input contexts assume a C locale when the locale
hasn’t been initialized from the environment before the input context
is created. Inter alia, this will lead to Xlib reading the .XCompose
definition file as ISO-8859-1, which will result in mojibake when
composing characters in a UTF-8 environment (cf. #268 ).
2015-11-22 15:41:56 +01:00
Dave Davenport
5bdcd47dde
consts and small ensurance (though should be correct to begin with)
2015-11-22 00:33:26 +01:00
Dave Davenport
8c9b72f34e
Start at fixing Issue 273, this might break some things.
...
* Only use get_display_data for displaying. (Except the select complete (ctrl-space), this needs fixing).
* Fix possible race condition in parallelization.
* Fix small bug in case-sensitive handling. (beware for collision in keybinding)
* Keep less lists around.
2015-11-21 23:59:59 +01:00
Dave Davenport
7dccd805ef
Show error message when cannot bind key
2015-11-20 22:22:11 +01:00
Dave Davenport
66bd837c9e
Second cleanup in the fix to #268
2015-11-20 22:00:37 +01:00
Dave Davenport
266ee5efb7
Hopefully fix for #268
2015-11-20 20:53:27 +01:00
Qball Cow
1bd231bc3d
Fix issue #275 : don't try to do move cursor when nothing is shown.
2015-11-20 11:43:22 +01:00
Dave Davenport
5f7694fc62
Issue #268 , Filter out mode switch key.
2015-11-20 08:41:23 +01:00
Dave Davenport
ca5ea414c8
Issue #268 Repair combined key input 'e --> é
2015-11-20 08:19:48 +01:00
Dave Davenport
38d2bc717a
handle failed regex better.
2015-11-17 16:25:42 +01:00
Dave Davenport
00c8439b57
Small fix
2015-11-17 16:21:30 +01:00
Dave Davenport
aeaceb154a
Add experimental regex support
2015-11-17 16:10:14 +01:00
Dave Davenport
2b0aec52e0
Fix 2nd offset. #269
2015-11-16 21:07:49 +01:00
Dave Davenport
92248e6e13
(Hopefull) fix #259 , color offset by 1
2015-11-16 21:06:03 +01:00
Dave Davenport
b70421e75b
Remove duplicate code.
2015-11-16 08:17:30 +01:00
Dave Davenport
238a34162a
Try to fix crasher on mixing glib free and free.
2015-11-15 13:12:43 +01:00
Dave Davenport
2eaffceada
Fix printing.
2015-11-14 19:59:56 +01:00
Dave Davenport
64eb7851e1
Small cleanup
2015-11-14 19:52:15 +01:00
Dave Davenport
56e85d0f5a
Cleanup.
2015-11-14 19:42:43 +01:00
Dave Davenport
b9d1fe6635
Small updates
2015-11-14 18:57:21 +01:00
Dave Davenport
12886ab0cb
Add missing timing files.
2015-11-14 13:49:42 +01:00
Dave Davenport
80e873c8a3
Add threadpool support, add optional timings compile flag
2015-11-14 13:47:45 +01:00
Dave Davenport
45c8de9387
If threads is set to 0, try to autodetect number of threads.
2015-11-12 17:20:51 +01:00
Qball Cow
e6ca8acba9
Possible fix for issue #265 . Check mask when accepting textbox input.
2015-11-12 15:42:00 +01:00
Qball Cow
311cedf87f
Fix silly little bug.
2015-11-12 14:53:02 +01:00
Qball Cow
c7dcb4821a
Use getdelim instead of custom fgets function.
2015-11-12 14:15:33 +01:00
Dave Davenport
880f8731be
Fix crasher on small lists.. we need atleast 1 thread to do work!
2015-11-11 22:46:01 +01:00
Dave Davenport
0fe524d0cd
Add threading support.
2015-11-12 00:18:43 +01:00
Dave Davenport
09ab44bf92
Fix #264 fall back to age ordered list if stacked list does not work
2015-11-10 23:52:52 +01:00
Dave Davenport
195dc0fb01
Cleanups.
2015-11-07 12:59:08 +01:00
Dave Davenport
c82d8832c9
Fix table layout.
2015-11-07 11:35:10 +01:00
Dave Davenport
53e9332603
Fix #260 .
2015-11-07 11:20:25 +01:00
Qball Cow
aedd26aef4
Fix #258 : Set fallback alternative color before trying to allocate it.
2015-11-04 12:03:59 +01:00
Dave Davenport
4c8404f87d
Fix combi and drun and localization
2015-11-03 19:57:07 +01:00
Dave Davenport
80ac118655
Put things together, making desktop menu work
2015-11-03 17:34:02 +01:00
Dave Davenport
6f404ddc8e
Initial import desktop file runner.
2015-11-03 08:31:38 +01:00
Dave Davenport
d01afc5303
Add xdg-terminal to list
2015-11-01 12:28:55 +01:00
Dave Davenport
b454791ccd
Merge pull request #257 from klemens/no-parse-known-hosts
...
Add -no-parse-known-hosts option
2015-10-31 19:14:20 +01:00
Klemens Schölhorn
9cb0073ce8
Add -no-parse-known-hosts to disable parsing of ~/.ssh/known_hosts
...
For humans who like to keep the list of available servers clean. Also useful
if you use different names in ~/.ssh/config.
The previous default of always parsing known_hosts is not changed.
2015-10-31 18:35:37 +01:00
Dave Davenport
02b99e6f95
Fix: 256 Do not accept custom entry when not applicable.
...
Add test to reproducet .
2015-10-31 18:04:55 +01:00
Dave Davenport
f9e7bc0775
Possible fix for 256. Need test cases for these.
2015-10-31 17:31:24 +01:00
QC
cb9dd606aa
Allow dpi to be set
2015-10-30 21:32:09 +01:00
Dave Davenport
46f9073f7e
Fix #251 : Don't iterate over nil list.
2015-10-29 21:30:03 +01:00
QC
10292b08cb
Fix: 250 Fixing message.
2015-10-26 20:13:15 +01:00
Qball Cow
7471a58325
Fix if active and urgent are both set.
2015-10-26 14:22:58 +01:00
QC
de1f7a11aa
Merge remote-tracking branch 'origin/Transparency'
2015-10-21 20:42:40 +02:00
Rasmus Steinke
5962aa5302
unify help messages
2015-10-21 20:30:10 +02:00
Dave Davenport
bc2b532a51
Add dmenu options to -h
2015-10-21 18:58:01 +02:00
Dave Davenport
d21ba860f0
Add main application options to -h
2015-10-21 09:42:55 +02:00
Dave Davenport
bc7a89c646
Print comment with each option.
2015-10-21 09:20:07 +02:00
Qball Cow
b4880b3601
Small tweak.
2015-10-20 18:58:03 +02:00
Qball Cow
f52e73a4f2
Only store the monitor we are currently displayed on
2015-10-20 18:51:29 +02:00
Qball Cow
a7c7cf8159
Add fake transparency
2015-10-20 18:41:45 +02:00
Dave Davenport
64cb4c781c
Fix some compiler warnings
2015-10-19 09:23:06 +02:00
QC
1b425c7bd0
Fix crash on deleting entries in ssh/run.
...
Fix bang for custom run.
2015-10-18 22:12:06 +02:00
QC
683632c36c
Some cleanups
2015-10-18 19:02:19 +02:00
QC
73fd87f820
Add mesg about fullscreen and monitor setup
2015-10-18 13:45:15 +02:00
QC
93b6b83fb9
Try todo some validation of monitor size/padding in config sanity check.
2015-10-18 13:40:39 +02:00
QC
0818fbd68b
Add fullscreen mode and fix some redrawing issues.
2015-10-16 20:51:37 +02:00
Dave Davenport
291d1ed16c
Update rofi -h output
2015-10-16 08:42:01 +02:00
QC
44b9854594
Add comment.
2015-10-15 22:44:35 +02:00
QC
fdc86399cf
Revert "Remove levenshtein"
...
Adding help list.
This reverts commit 77cdc8d7c4
.
2015-10-15 22:33:44 +02:00
Dave Davenport
4975704a05
Fix #244 Do not catch sigchld, let glib handle this internally
...
- TODO fix man page viewing.
2015-10-12 08:12:25 +02:00
QC
56e023dcee
Remove unneeded check.
2015-10-11 14:13:08 +02:00
Dave Davenport
cc6bf27ccb
Merge branch 'master' of github:DaveDavenport/rofi
2015-10-11 13:43:32 +02:00
Dave Davenport
c9746e8543
Merge remote-tracking branch 'faf/fast-ascii-filtering'
2015-10-11 13:42:56 +02:00
QC
2898eeda88
Cache colors.
2015-10-10 14:15:27 +02:00
QC
d5549db384
Strip color, should fix #233
2015-10-10 13:43:28 +02:00
QC
b0ceccb93e
Use cairo for all drawing, also borders
2015-10-10 13:03:11 +02:00
Dave Davenport
01aa2e32cc
When element is to high, don't y center.
2015-10-05 18:22:01 +02:00
Tom Hinton
a53061b890
Merge remote-tracking branch 'upstream/master' into fast-ascii-filtering
...
Conflicts:
source/dialogs/dmenu.c
source/helper.c
source/rofi.c
2015-10-05 10:44:11 +01:00
QC
77cdc8d7c4
Remove levenshtein
2015-10-04 20:14:08 +02:00
QC
9a39ebb3e9
Fix typo
2015-10-04 17:02:54 +02:00
Dave Davenport
6b039ac524
Add tokenize option and append * to glob.
2015-10-04 16:37:07 +02:00
QC
1369c162fe
Remove debug
2015-10-02 22:24:49 +02:00
QC
5de38cd755
Add glob version for testing.
2015-10-02 20:39:57 +02:00
Tom Hinton
c2d8cb1f45
Move ascii testing gizmos to macros at the top.
...
Still not sure about best way to do this.
2015-10-02 09:58:56 +01:00
Tom Hinton
3ba2da9cae
Fix mistakes from copy paste
2015-10-01 18:18:01 +01:00
Tom Hinton
d1a5b0d362
whoops, rogue print statement
2015-10-01 13:46:50 +01:00
Tom Hinton
0a953a03b4
Make fuzzy matching fast and unicode-happy
2015-10-01 13:45:23 +01:00
Tom Hinton
af6a4b83eb
Make normal filtering of plain ASCII lines faster
...
This patch adds a field lines_not_ascii to the MenuState structure. The
nth entry is 0 unless the nth member of MenuState.lines has a non-ascii
codepoint in it.
All comparison functions (menu_match_cb type) take an additional
argument to tell them if the thing they are matching is not_ascii. They
can use this to determine whether to collate and case-fold the
input (for non-ascii strings), or whether to use strstr/strcasestr (for
ascii strings).
The change is not currently implemented for flex matching, due to my
laziness. However, it should be a simple enough matter to add.
For my large input of 400,000 lines, this reduces typical filtering time
to about ten microseconds from about 2 seconds.
2015-10-01 12:16:41 +01:00
Tom Hinton
574bf2da82
Make dmenu reading very marginally faster
...
A slight reduction in use of realloc and avoidance of 3 or 4 strlens for
a string we know the length of
2015-10-01 11:41:44 +01:00
QC
e3115be103
Fix test. remove debug output
2015-09-30 20:10:52 +02:00
Dave Davenport
2d167e21d7
Fix #237 add none style to separator style
2015-09-30 09:09:34 +02:00
Dave Davenport
aea2458575
Don't set context to get context.
2015-09-30 08:59:52 +02:00
Qball Cow
9b67838b56
Only cache successful run. (Thanks to Koppa nd daemoni)
2015-09-29 17:28:21 +02:00
QC
29360b20aa
Parse name in textbox.
2015-09-28 21:41:58 +02:00
Dave Davenport
ca8ff80a5c
Add bang support to combi
2015-09-28 18:19:10 +02:00
Dave Davenport
1a7d77db6e
Make row colors paint over background instead of replace.
2015-09-28 08:24:01 +02:00
QC
536fd9822c
re-order
2015-09-27 13:26:18 +02:00
QC
838c838d31
Try to fix #234
2015-09-27 12:57:54 +02:00
QC
6061e046de
Get color type.
2015-09-27 11:46:19 +02:00
QC
eba2170241
hmm
2015-09-26 21:17:30 +02:00
QC
4b4004fce0
Remove unused.
2015-09-26 21:09:18 +02:00
QC
e8328beb2d
Fix small leak
2015-09-26 21:06:36 +02:00
QC
8f1f03e6d2
Use cairo to do drawing.
2015-09-26 20:34:34 +02:00
QC
29e81fdb07
Make wrap an extra option for textbox
2015-09-23 20:44:24 +02:00
Dave Davenport
5cc695e186
Add markup flag for dmenu.
2015-09-22 22:23:52 +02:00
QC
023bb23bcf
Support \0
2015-09-20 20:05:04 +02:00
QC
8083753700
Fix #177 Add known host parsing.
2015-09-20 16:58:34 +02:00
QC
fc2d65df0c
Playing with atom
2015-09-20 11:45:28 +02:00
QC
31fe5759b8
More line fixing.
2015-09-19 21:00:06 +02:00
QC
b18d68eff2
Adjust new editor width
2015-09-19 12:57:48 +02:00
QC
442e235c24
Some cleanups, tweak uncrustify.
2015-09-19 12:21:30 +02:00
Dave Davenport
4c970fe4da
Properly resize content when window is resized.
2015-09-17 17:32:51 +02:00
QC
558bb38630
Fix normal mode keyboard grab.
2015-09-16 21:01:40 +02:00
Dave Davenport
e53705de11
Fix scrolling on edges
2015-09-14 18:19:20 +02:00
Dave Davenport
ae043d5246
Allow dragging scrollbar.
2015-09-14 18:14:01 +02:00
Dave Davenport
a5c1eb1f1b
Allow window mode to be disabled
2015-09-14 08:57:10 +02:00
QC
3374e1be9a
Add support for startup-notification
2015-09-13 17:29:50 +02:00
QC
6b632cadbb
Remove the keep line selected as it had weird side-effects when filtering
2015-09-13 16:28:54 +02:00
Dave Davenport
f443c56487
In normal mode set normal window window type hint.
2015-09-10 19:24:23 +02:00
QC
ec1f399e32
only allow normal mode in dmenu mode.
2015-09-09 20:01:19 +02:00
QC
1a23add631
Make redraw nice
2015-09-09 12:03:29 +02:00
QC
a0b491c962
React to focus in/out event
2015-09-09 12:00:28 +02:00
QC
93d10cc7c8
Add -normal-window mode for testing.
2015-09-09 11:47:51 +02:00
QC
79b1bdf2db
Small cleanup
2015-09-08 22:58:34 +02:00
Dave Davenport
d2aad68bce
Keep the line matched (if possible) when filtering.
2015-09-08 22:23:03 +02:00
Dave Davenport
13203c9de7
Refactor to make dmenu use Switcher, and make menu func use this.
2015-09-08 21:41:54 +02:00
Dave Davenport
ae26c13daf
Allow switchers to run multiple times.
2015-09-07 19:10:44 +02:00
Dave Davenport
092a2c5037
Issue: #224 test version window current desktop
...
run: rofi -show windowcd -modi windowcd,window
Using ctrl-tab you can switch between two modes (all windows, or just current desktop).
2015-09-07 17:41:48 +02:00
Dave Davenport
ca602383f1
Fix 2 small memory leaks.
2015-09-07 08:31:01 +02:00
QC
80d148707a
Don't overlay sb on textboxes.
2015-09-06 10:12:09 +02:00
QC
355ad8fe70
small cleanup
2015-09-05 19:04:36 +02:00
QC
e10aa09f74
Add hide scrollbar option.
2015-09-04 21:08:23 +02:00
Dave Davenport
465d027c1e
Merge pull request #222 from DaveDavenport/scrollbar
...
Scrollbar
2015-09-04 20:58:39 +02:00
Dave Davenport
67091fa1a7
First calc size then draw handle.
2015-09-04 17:58:30 +02:00
Dave Davenport
1e4721b275
Add linemargin between handle and rows.
2015-09-04 17:55:54 +02:00
Dave Davenport
5031cdd228
Calculate size of handle for scrollbar better.
2015-09-04 14:52:57 +02:00
Thorsten Wißmann
8f0bf673ce
First compute cmd_list length before passing it
...
In switcher_run(), first compute the cmd_list and in particular its
length before passing it to menu().
In C the evaluation order of parameters to a function call is
unspecified, see e.g. http://en.cppreference.com/w/c/language/eval_order
for some background. So it might happen (and indeed did happen on my
machine) that cmd_list_length (of value 0) is pushed to the stack before
sw->get_data() sets the variable to the actual length.
2015-09-04 13:00:17 +02:00
Dave Davenport
72ef9c014f
Document doc, fix small drawing things in scrollbar
2015-09-04 08:42:09 +02:00
Dave Davenport
380697b895
scrollbar: Handle mouse clicks, fix width, remove border.
2015-09-04 08:26:57 +02:00
QC
d3481de3d6
Fix small 1 px. offset
2015-09-03 22:16:19 +02:00
Dave Davenport
4bbbecd17d
Add scrollbar source code.
2015-09-03 22:12:20 +02:00
Dave Davenport
d16bf26bf8
Add initial scrollbar
2015-09-03 18:23:00 +02:00
Dave Davenport
2c45c02c7f
Small cleanup.
2015-09-03 08:20:08 +02:00
QC
27f5c7413e
cleanup.
2015-09-02 12:29:28 +02:00
QC
9d7518c7ab
Add 10 more custom key binding. Issue: #218
2015-09-02 10:05:02 +02:00
QC
583e824726
Indent
2015-09-01 20:44:47 +02:00
Dave Davenport
29d0c109cb
Add WINDOW_TYPE_DESKTOP to ignore list.
...
Issue: #215
2015-08-31 08:00:23 +02:00
Dave Davenport
5c618681c4
Add dialogs.h header.
2015-08-31 07:57:29 +02:00
QC
6c37c0d989
Do not refilter on cursor move
2015-08-29 23:02:30 +02:00
QC
9c53d0121d
Move sigchld into signal handling thread.
2015-08-29 15:19:23 +02:00
QC
89dcb5be1e
Remove unused function
2015-08-29 11:57:04 +02:00
Dave Davenport
3c91c8d6e0
Issue: #213 hide windows marked as type DOCK
...
Removes i3 hack.
2015-08-27 21:09:12 +02:00
Dave Davenport
b07a9fc904
Fix 1 pixel offset separator
2015-08-27 07:36:24 +02:00
Dave Davenport
353e82b27d
Allow 0 line margin
2015-08-27 07:35:34 +02:00
QC
2277501566
Cleanup drawing a bit.
2015-08-26 21:49:53 +02:00
Dave Davenport
d9a9d2489a
Add separator color and style option.
2015-08-26 18:11:53 +02:00
Thomas Adam
d676232846
NET_WM_DESKTOP: don't assume desktop zero is invalid
...
When checking the client's _NET_WM_DESKTOP state, if a client has a desktop
set, allow for desktop zero being valid; no need to add one to the result.
The specification allows for desktop zero.
2015-08-24 20:08:25 +02:00
QC
c170eae8c8
Issue: #207 add generic -filter
mode.
2015-08-20 21:42:53 +02:00
Thorsten Wißmann
cf731b1504
Monitor -2 stands for the focused window
...
When setting rofi's monitor to -2, rofi is placed over the focused
window.
2015-08-17 18:32:17 +02:00
Dave Davenport
1ca7141621
Add quick solution for #202 , expose line-margin setting.
2015-08-04 09:42:14 +02:00
QC
1590151c46
-row -t -selected-row
2015-08-02 21:25:02 +02:00
QC
dbf992d756
Fix -l as alias for -lines (in dmenu mode) rename -l to -row
2015-08-02 21:24:07 +02:00
QC
8ca3c276c9
Change -i
mode to match dmenu. Bug #200
2015-08-02 16:44:03 +02:00
QC
5777ee57e5
Remove use of g_close, not available on travis
2015-08-02 15:56:52 +02:00
QC
c97d2979e5
Bug #200 , add '-b' method.
2015-08-02 15:50:06 +02:00
QC
77e5541ba5
Bug #200 implement -m
mode
2015-08-02 15:45:52 +02:00
Dave Davenport
34dee2a3eb
Small moving and cleanups
2015-08-01 16:10:52 +02:00
Dave Davenport
dffc27e5aa
Try to make things more robust, e.g. try to recover before giving up.
2015-07-31 12:23:41 +02:00
Dave Davenport
69c75971f3
Print error to stderr when fclose fails.
2015-07-31 10:21:32 +02:00
Dave Davenport
f8ed184415
Fix for #199 , properly reset pointer to NULL after free'ing
2015-07-30 18:18:37 +02:00
Dave Davenport
8d6a78939c
Small cleanup + fail more gracefull here and there
2015-07-30 08:57:09 +02:00
Dave Davenport
c0cb4df860
Small tweak to print
2015-07-29 18:16:06 +02:00
Dave Davenport
5cea640a34
Obey quiet a bit better, update manpage with signals
2015-07-29 17:55:26 +02:00
Dave Davenport
c68ab67dd8
Add some comments and cleanups, allow reeloading of keybindings at run-time
2015-07-29 09:37:40 +02:00
QC
681bd5bcbb
Updates
2015-07-28 23:08:12 +02:00
Dave Davenport
93c01ccbd5
Add new event handling
2015-07-28 22:22:18 +02:00
QC
b3a77589eb
Fix makefile indent
2015-07-28 22:14:21 +02:00
QC
979a63d242
Fix not clearing of pointer after free-ing it.
2015-07-27 23:24:38 +02:00
QC
70f4f3d119
Remove HUP signal handler as it is incorrect. #193 , to be re-added later
2015-07-27 21:20:06 +02:00
Dave Davenport
c25396d50b
Use calculated top offset for arrow_down.
...
Fixes : #189
2015-07-24 17:00:59 +02:00
Dave Davenport
fa5c36835d
Allow escape to quit in no-custom mode
2015-07-23 18:19:20 +02:00
Dave Davenport
4d0e04614a
Fix more mouse handling. (click on modi switcher)
2015-07-22 09:09:16 +02:00
QC
b75b60fa99
Remove debug printf
2015-07-19 10:11:55 +02:00
QC
09bc6017ee
Fix double click in gui
2015-07-19 10:02:20 +02:00
QC
36c9746d69
Fix modifier
2015-07-13 20:52:35 +02:00
Dave Davenport
d27b8a21e9
Undo commit of sorting changes, did not want to apply this yet.
2015-07-10 21:33:26 +02:00
QC
d549659f1e
Use right modifier
2015-07-09 20:44:12 +02:00
QC
1de8d448f7
Make color parsing more robust, report failing of parsing color.
...
Involves: #181
2015-07-07 21:51:15 +02:00
Dave Davenport
b3bc620211
Fix window matching.
2015-07-06 12:30:15 +02:00
QC
f88cfacfde
Replace all qsorts.
2015-07-05 09:47:55 +02:00
QC
dc356d81c4
Use glib qsort as qsort is not portable.
2015-07-05 09:37:35 +02:00
QC
9b83c6133f
Fix typo (thx to jpleau)
2015-07-04 19:58:17 +02:00
QC
5c9ad80758
Trying 2nd bsd patch
2015-07-04 16:53:36 +02:00
QC
d60f6701de
Add patches from BSD (hopefully ok?)
2015-07-04 15:36:11 +02:00
Dave Davenport
98b8e583cb
Make fuzzy matching available everywhere: #133 (-fuzzy)
2015-07-01 09:12:22 +02:00
Dave Davenport
c7ed92e40c
Use tokenmatch in window_match.
2015-07-01 09:02:25 +02:00
QC
aaf9e1e345
Free in right order
2015-06-30 21:18:45 +02:00
Dave Davenport
30743d1789
Move fuzzy_token_match to where it can be reused.
2015-06-28 13:53:37 +02:00
QC
67089677b5
Fix naming
2015-06-27 22:38:06 +02:00
Dave Davenport
9977d7ef69
Fix fuzzy match to continue at next character. #133
2015-06-25 02:54:00 +02:00
QC
bcbb64f615
Don't do unneeded compares
2015-06-24 21:28:13 +02:00
QC
db1331ed66
Test implementation for #133 .
2015-06-23 21:22:38 +02:00
QC
ce73f468ca
Possible fix for #179
2015-06-20 15:11:30 +02:00
Dave Davenport
90eb18b3c0
Make 'all?' keys user configurable.
...
Fixes #66
2015-06-15 09:01:22 +02:00
Dave Davenport
25633ca4dc
Issue #66 , allow keybindings for navigation to be changed.
...
up,down,left,right
2015-06-15 08:48:13 +02:00
Dave Davenport
6c9a493b56
[SSH] Ignore comments in the Host: line.
...
Fixes #178
2015-06-14 14:37:53 +02:00
QC
bd9f4ebf07
More dmenu fixes (shift -enter on custom)
2015-06-11 21:20:09 +02:00
QC
a811011a1d
Fix dmenu mode.
2015-06-11 21:07:25 +02:00
QC
d11c61cef1
Fixes #176 add mode that user expects.
2015-06-11 20:38:48 +02:00
Dave Davenport
1a188af2e9
Add markup support to error msg.
2015-06-08 23:23:33 +02:00
Qball Cow
00ffa9f148
Move comment to right place
2015-06-09 18:14:09 +02:00
Qball Cow
e5caaf9d1a
Possible fix issue #175
2015-06-09 18:10:23 +02:00
QC
95beb58730
tiny cleanup
2015-06-05 23:08:02 +02:00
Dave Davenport
e517001d39
Fix ellip. in entry box, wrap message box.
2015-06-03 09:04:29 +02:00
Dave Davenport
e8adc8042d
Add a -no-config
option to run rofi stock.
2015-05-31 09:46:39 +02:00
QC
34538cefaf
Try to fix (suddenly) broke font height estimation.
2015-05-26 23:58:37 +02:00
QC
d312090701
Issue #168 : Add note about pkg-config and update packages.
2015-05-25 10:31:10 +02:00
Buglloc
861d752c01
Ignores bits 13 and 14 of the modifiers while checking keybinding states
2015-05-23 23:29:17 +02:00
QC
a93aec02bd
Add support for msg string with pango markup.
2015-05-23 20:06:06 +02:00