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