Commit graph

2104 commits

Author SHA1 Message Date
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
Dave Davenport
0e7009bcad Test fix for issue #167 2015-05-21 23:53:28 +02:00
Qball Cow
09e4a64780 fix issue #165 2015-05-19 19:59:50 +02:00
QC
300234611d First fix for #164 2015-05-18 22:38:51 +02:00
QC
1a7cddc8aa Fix for faulty commit on Issue: #163 2015-05-17 11:57:51 +02:00
QC
354ccdd94d Fix Issue #164 2015-05-16 13:58:09 +02:00
QC
571aca9834 Fix: #163 2015-05-15 15:44:43 +02:00
QC
14c50132c8 more small cleanups 2015-05-14 19:45:57 +02:00
QC
652a6ed7d2 Fix clang-tidy warnings. 2015-05-14 19:39:30 +02:00
Dave Davenport
22f35983c0 Add quote and escape string option. 2015-05-13 18:36:16 +02:00
Dave Davenport
8abf3335dc Remove silly test. 2015-05-12 21:59:51 +02:00
Dave Davenport
4d7b5a02d6 Cleanup and add d format 2015-05-11 23:20:34 +02:00
QC
9307a1668e Add -format option to dmenu. 2015-05-10 12:08:08 +02:00
QC
4d3b9e414d Small cleanup 2015-05-09 14:17:27 +02:00
Dave Davenport
89d2190f8e [#158] Patch implementing -only-match mode. 2015-05-07 21:07:15 +02:00
Dave Davenport
94c9303d89 Fix issue #160. Return selected line. 2015-05-06 08:03:10 +02:00
QC
13eee4571c Allow alt-1t/m9 be re-bound. 2015-05-05 19:30:43 +02:00
QC
a32bd61fea DMENU special return value starts at 10. Issue: #154 2015-05-04 10:37:50 +02:00
QC
8d4e1ee8fa Rasi patch, allowing special keys, modifying return value.
In dmenu pressing alt-[1-9 will return the selected entry and set the return value to the
        pressed number.
2015-05-03 13:04:03 +02:00
QC
a974db887a Fix issue #153. 2015-05-02 12:42:36 +02:00
QC
9492fe7611 Cleanup keyb.h file. 2015-05-02 12:22:31 +02:00
QC
493801602a Fix printing table 2015-05-02 12:08:50 +02:00
QC
d2eeffe2d9 Issue: #131 Prepend keybinding names with "kb-" 2015-05-02 12:01:06 +02:00
QC
61fc9e8310 Finish adding all different keybindings. Issue: #131 2015-05-02 11:53:27 +02:00
Dave Davenport
1abb06f23b Fix out of order of enum. (needs better solution.) 2015-05-01 23:44:32 +02:00
Dave Davenport
e8d6e8f829 Move more items to keybinding system. 2015-05-01 08:16:52 +02:00
QC
073836f142 First version of keybindings (#131) 2015-04-30 22:46:51 +02:00
QC
09d2be260b Allow keybindings to be set. 2015-04-30 22:42:04 +02:00
Dave Davenport
a70404f128 First part of infrastructure for Issue: #131 customizable keybindings. 2015-04-30 21:52:30 +02:00
Qball Cow
bee103aea8 Improvement of situation for Issue #153. 2015-04-30 17:13:17 +02:00
Dave Davenport
0b7fe775ca Support combined characters. 2015-04-23 22:14:31 +02:00
QC
9bb51a9b35 Support -no-levenshtein-sort 2015-04-19 13:19:20 +02:00
QC
99118420ea Support Levenshtein in dmenu.i #149 2015-04-16 21:13:45 +02:00
Dave Davenport
f64395e4e9 Remove unused code 2015-04-15 22:41:50 +02:00
QC
a38ddb3b06 Fix space. 2015-04-14 22:12:21 +02:00
QC
c1a8735e24 Re-enable background/foreground. Make theming method an option. 2015-04-11 12:04:14 +02:00
Qball Cow
f72629a370 Remove printf. 2015-04-07 10:45:04 +02:00
Dave Davenport
82b37eef10 Add right visual. 2015-04-07 08:25:09 +02:00
QC
2590ecf7e5 ADd new coloring scheme. 2015-04-06 17:13:26 +02:00
QC
95fd6402f3 Free all colors. 2015-04-06 15:28:06 +02:00
QC
39518b0e15 Add more user-colors. 2015-04-06 15:23:58 +02:00
Jason Pleau
6f2c284f37 alias --help to -h/-help
Right now running rofi --help puts it in daemon mode, which can be
confusing for the user. Options in rofi use one dash instead of two, but
I believe an exception should be made for --help.
2015-04-05 17:38:22 -04:00
QC
91fcc76cb2 Help users that do not pass the read-the-manual stage. 2015-04-05 22:29:26 +02:00
QC
5e4cf732e6 Fix issue #142, pass -M <root> instead of full path. 2015-04-05 21:16:27 +02:00
QC
c9707b4c1b Leave out unmap hack for now. 2015-04-05 14:52:01 +02:00
QC
9b415e60a0 Fix crasher with fixed-lines off and 0 visible rows 2015-04-05 13:36:39 +02:00
QC
d6ced176d4 Add ranges for urgent active in dmenu mode. 2015-04-05 11:53:08 +02:00
QC
808eee4b85 Try to improve coloring of urgent/active rows that are selected. 2015-04-05 10:40:35 +02:00
QC
8cc553ebaf Fix issue: #140: Align cursor with font. 2015-04-05 10:23:59 +02:00
QC
71cfb6d553 Allow urgent/active color to be set, add dmenu option -u/-a to highlight row. 2015-04-04 11:10:41 +02:00
QC
f2c4aff37c Add active/urgent color. 2015-04-03 18:40:07 +02:00
QC
957ffe5fcf Check WMHints for urgent hint 2015-04-03 18:01:03 +02:00
Dave Davenport
0ab7aa4bba Add italic support and use it for windows that demand attention (working?) 2015-04-02 22:23:17 +02:00
Dave Davenport
0d87cf12a3 Add combi viewer, where (selected) modi can be combined.
- Add active window highlighter.
2015-03-31 22:45:02 +02:00
QC
cf423fb2aa Remove printf 2015-03-30 20:23:41 +02:00
QC
42ae0a5871 Indent combi.c 2015-03-30 20:13:47 +02:00
QC
9ff5a615e9 Add combi viewer.
Use by adding combi to the list of enabled modi.
2015-03-30 20:12:22 +02:00
QC
55160c6eff Issue: #137, Parse /etc/hosts file. 2015-03-29 12:27:00 +02:00
QC
888260b06b Small cleanup 2015-03-27 20:50:48 +01:00
QC
f5c8c3a55d Do not release keyboard when switching between switchers. 2015-03-27 20:33:25 +01:00
QC
b21368c005 OO-ify the Switchers. 2015-03-27 20:28:53 +01:00
Dave Davenport
f52b697dd4 Remove double names. 2015-03-25 08:36:19 +01:00
Dave Davenport
953fcf9ee8 Reduce work on redraws.
- Do not set text on each draw.
        - Do not move/resize on each draw.
        - Update pango layout set width to set when only needed, fix bug in shrinking on autosize.
2015-03-23 08:56:55 +01:00
QC
7c6699169e Tweak layout a bit 2015-03-22 12:56:26 +01:00
QC
b36452cc40 Fix padding switcher boxes to match columns 2015-03-21 19:23:55 +01:00
Dave Davenport
d290285a9f Fix rendering of boxes (margin and height) 2015-03-20 16:07:30 +01:00
Dave Davenport
eae9fe7f04 Avoid calling collate when not needed. 2015-03-20 08:45:24 +01:00
Dave Davenport
b882d9ab72 Remove unneeded addition/removal of margin. 2015-03-20 08:27:33 +01:00
QC
3df30438b1 Fix some font stuff. 2015-03-19 23:48:49 +01:00
Dave Davenport
21144aef17 Fix one-off pasting text in rofi. 2015-03-19 20:01:52 +01:00
Dave Davenport
9530f195d1 Better way of getting font height. Use ascent and descent. 2015-03-19 19:58:47 +01:00
QC
743f1919cd Autoscale when drawing the number of columns and col width. 2015-03-18 20:56:50 +01:00
QC
4dd0a85fc4 Update header. 2015-03-17 20:05:37 +01:00
QC
916e7356fe Try to fix mountains__ function. 2015-03-15 11:51:48 +01:00
Dave Davenport
4579a62b2d Add ctrl-(shift)-tab for switching modi. 2015-03-12 17:57:00 +01:00
Dave Davenport
42b86015c3 Make pointers static. 2015-03-12 08:39:50 +01:00
Dave Davenport
4fad02225e Cleanup argc/argv lugging around. 2015-03-11 18:32:37 +01:00
Dave Davenport
c89a272d4d Add number mode for dmenu (Request from Taharqa)
* option -i.
2015-03-11 18:07:54 +01:00
QC
f6ad00c7bf Pointless commit fixing comments. 2015-03-08 15:43:31 +01:00
QC
19e849d4e7 Tiny cleanup. 2015-03-07 17:22:25 +01:00
QC
7322819a1d No need to check nullptr on nonnull argument. 2015-03-06 20:38:11 +01:00
Dave Davenport
444d09b905 Update spell. 2015-03-05 20:26:52 +01:00
Dave Davenport
923dbb93ec Typo o rama. 2015-03-04 22:47:52 +01:00
Jason Pleau
2fe71512fb xrmoptions: give a name to the union in XrmOption struct
fixes a compilation warning when building with -Wpedantic
2015-03-03 18:43:51 -05:00
Dave Davenport
a83a06a95c Re-add zeltak mode. 2015-02-24 17:35:09 +01:00
Dave Davenport
df7b98ac7f Add 'modi' alias for 'switchers' and update manpage. 2015-02-23 08:39:29 +01:00
Dave Davenport
2474575a90 Small move. 2015-02-19 13:44:59 +01:00
Dave Davenport
da8902ac88 Replace signal by sigaction 2015-02-19 13:22:10 +01:00
Dave Davenport
d9db18266c Remove unused TIMING. 2015-02-19 13:11:39 +01:00
Dave Davenport
8b50e94fea Make compiler more picky.
Add -Werror=missing-prototypes
2015-02-18 08:53:38 +01:00
Qball Cow
3b18c28792 Remove unused function. 2015-02-17 14:27:12 +01:00
Dave Davenport
a534a0f244 Rewrite of the configuration parsing, no longer duplicating options between Xrm and CMD.
* NEEDS TESTING.
2015-02-17 10:31:59 +01:00
Dave Davenport
bda97e0849 Throw a warning when using old commandline arguments.
* Give error on -now, -rnow, -snow, -key, -skey, -rkey
        * Update manpage.
2015-02-16 09:07:05 +01:00
Georgios Bitzes
07df49a5af Fix bugs relating to hotkeys with modifiers
This commit makes the following changes:
1) Fix a bad check introduced in dee0bfb, which checks the modstate of the
event with the keysym of the switcher, not its modmask:

        modstate & ( switchers[i].keysym )

I think it was broken before as well, a binary AND between the two masks
will not tell much about whether they are equal. Instead, the masks are
now checked for equality after removing LockMask and NumlockMask.

2) Stop binding to AnyModifier when none is used. This conflicts with the case
in which we want to bind different modes to the same key, but different
modifiers.

for example, rofi -key-run F2 -key-ssh alt+F2 -key-window shift+F2

Binding F2 with AnyModifier would prevent alt+F2 and shift+F2 from being used.

3) Remove UngrabKey from x11_grab_key to make the above example possible.
4) Refactor search for any of the global keybindings into function locate_switcher.
2015-02-16 03:20:28 +02:00
QC
dee0bfb821 Fix #128: Better handling of keybindings and remove deprecated launching.
See manpage.
2015-02-15 21:15:16 +01:00
QC
b6652a0221 Small move 2015-02-14 19:42:04 +01:00
Dave Davenport
8347963ed8 Fix some warnings from clang-check. 2015-02-13 15:37:55 +01:00
Dave Davenport
7e1063803a Comments, compile order and Display argument. 2015-02-13 08:26:23 +01:00
QC
ee24b209bb Fixing i3 crash. 2015-02-12 22:42:29 +01:00
QC
4e55889223 Update indenting. 2015-02-12 22:34:33 +01:00
QC
877c8051c6 Update copyright license. 2015-02-12 22:34:06 +01:00
QC
c760432a6c Moving files around, dialogs in dialog directory. 2015-02-12 22:26:28 +01:00
Dave Davenport
605fe4911c Refactor code, split out window switcher code. 2015-02-12 22:16:32 +01:00
Dave Davenport
9240a636d4 Fix stupid typo in previous commit, swapping columns/rows in positioning textboxes. 2015-02-12 07:55:23 +01:00
Dave Davenport
f74c8c1839 Cleanup. 2015-02-11 23:07:55 +01:00
Dave Davenport
c5f95d4e25 Small comment updates. 2015-02-10 08:12:03 +01:00
Dave Davenport
a50219e903 Remove hmode. (Rather no implementation then a bad one.) 2015-02-10 07:42:40 +01:00
QC
e76db3fce3 Fix indenting. 2015-02-09 20:23:55 +01:00
QC
a69eb4e22c Simplify paste code. 2015-02-09 20:20:51 +01:00
QC
67cbd48c8b Add some comments, rename. 2015-02-09 20:05:30 +01:00
Dave Davenport
682907d340 Splitting over more files. 2015-02-09 19:35:51 +01:00
Dave Davenport
f7eeaec60f Fix #126: Allow (simplistic) word movement and deletion.
* Ctrl-Alt-d: Delete word
        * Ctrl-Alt-h: Delete previous word
        * Alt-f: Forward one word
        * Alt-b: Backwards one word
2015-02-07 16:42:42 +01:00
Dave Davenport
00e48fdcf7 fix tiny typo 2015-02-07 14:04:57 +01:00
Dave Davenport
fda5badeb6 Fix #125: Use shift-left/right for moving between switchers. 2015-02-06 08:45:21 +01:00
Dave Davenport
d9aef65ea7 Cleanups. 2015-02-04 09:37:34 +01:00
Dave Davenport
63fd534ba2 Move data around, constness, etc. 2015-02-03 08:21:59 +01:00
Dave Davenport
f86cf8988b Move stuff around. Try to reduce size rofi.c. 2015-02-03 08:00:33 +01:00
QC
3a98c71fa1 Fix: #121 Print utf8 until invalid character. 2015-02-02 16:44:08 +01:00
Dave Davenport
ca876feec6 Put i3 specific interaction code in separate file. 2015-02-02 14:49:19 +01:00
QC
d081b3e6f5 Fix #119. Fix dmenu mode when called with full path. 2015-02-01 20:15:21 +01:00
Dave Davenport
1a590aa8df Do not lock rofi when in daemon mode, only when showing. 2015-02-01 15:17:43 +01:00
Dave Davenport
5d4ab2e626 Always compile with Extra warnings. 2015-02-01 15:12:29 +01:00
Dave Davenport
1156c19cbf Fix compiler warnings about signed v.s. unsigned 2015-02-01 15:00:01 +01:00
Dave Davenport
382b93ae03 Fix LLVM compiler warnings. 2015-02-01 10:43:28 +01:00
Dave Davenport
97c11d7d85 Fix compiler warnings. (return value ftrunc/write) 2015-02-01 10:03:16 +01:00
QC
b74e6b791a Fix not grabbing keyboard, and add pid file to ensure one instance. 2015-01-31 18:23:17 +01:00
QC
983fff61b4 Removed some unused headers. 2015-01-30 21:55:31 +01:00
QC
6760d05d18 Small cleanup + comments. 2015-01-30 18:01:25 +01:00
Dave Davenport
f40e072802 Grab keyboard from X mainloop.
Should fix small 'jerk' when starting from keybinding and having to wait for keyboard grab.
2015-01-29 17:37:12 +01:00
QC
de9e78bb57 Fix issue #118.
unsigned long is %lu not %ul
2015-01-28 21:27:49 +01:00
Dave Davenport
b469674085 Add some comments. 2015-01-28 07:50:47 +01:00
QC
072baa9c02 Fix printing Warning about XID. 2015-01-26 22:43:57 +01:00
QC
460b82efc3 Fix unused variables. 2015-01-24 16:41:18 +01:00
Dave Davenport
3e419feecd Remove commented code, break out of loop in when possible. 2015-01-23 09:12:48 +01:00
Dave Davenport
9067b2602d Remove printf 2015-01-22 15:10:35 +01:00
Dave Davenport
673eee78a4 Better handling of non-truecolor colormaps. 2015-01-22 10:54:28 +01:00
Dave Davenport
647701fe78 Merge remote-tracking branch 'origin/master' into transbg 2015-01-22 08:48:45 +01:00
Dave Davenport
19a0ec40f8 Use fallback when truecolor visual fails.
- Fixes tests.
2015-01-21 18:38:54 +01:00
Daniel Hahler
318c8f3953 Toggle case sensitivity: grave might be acute
Fixes https://github.com/DaveDavenport/rofi/issues/112
2015-01-21 11:39:35 +01:00
Dave Davenport
9cc63d4948 Updates fixing pango transparancy. 2015-01-21 10:04:15 +01:00
Dave Davenport
291070e579 First try out. (tests not compiling at.. do make rofi) 2015-01-20 23:32:57 +01:00
QC
661b65dd2a Introduce lazy-refilter mode for long lists. 2015-01-18 18:17:09 +01:00
QC
7e6241226e Avoid loosing keyboard press events when they arrive to quickly.
* Do not absorb events, but loop over them.
2015-01-18 17:18:07 +01:00
QC
112e2c2bc5 Small cleanup and add ohcount target. 2015-01-17 18:27:41 +01:00
Dave Davenport
a00cfbb5b0 Small cleanup and reducing of scopes. 2015-01-15 17:59:59 +01:00
Dave Davenport
1a85fcbf96 Change col left/right edge behavior to be more logic.
* Don't move to first/last entry when not needed.
2015-01-15 08:33:45 +01:00
Edwin Pujols
dc16033d0d Mouse navigation: Avoid unnecessary looping. 2015-01-14 18:54:37 -04:00
QC
2d18aea928 Fix issue #104: Scrolling action. 2015-01-14 22:14:15 +01:00
Dave Davenport
3a4c1f1f3f Merge pull request #105 from Tblue/master
SSH config file parser: Recognize multiple host names in a "Host" line
2015-01-14 21:51:19 +01:00
Tilman Blumenbach
49fa62b4c3 get_ssh(): Use g_strdup() instead of strdup().
The latter is not always available.
2015-01-14 16:02:37 +01:00
Tilman Blumenbach
5584e2eb95 get_ssh(): Use g_ascii_strcasecmp() instead of strcasecmp().
The latter is not always available.
2015-01-14 16:01:48 +01:00
Tilman Blumenbach
6fc18a21f1 Minor comment fix. 2015-01-14 15:52:40 +01:00
Tilman Blumenbach
07dfc171e3 SSH file parser: Recognize multiple host names in a 'Host' line. 2015-01-14 11:23:14 +01:00
Dave Davenport
046a1c612d Fix bug introduced with d1ba4bd8dc
* Match all fields of window struct, not just title.
2015-01-14 08:15:52 +01:00
Dave Davenport
deee786c65 Also respond to dead Grave for casesensitive toggle. 2015-01-14 08:11:32 +01:00
QC
46ab505be7 Make hmode workable again. 2015-01-13 12:16:32 +01:00
QC
e166fa3d8e Move indicator to end of entry box. 2015-01-13 11:48:38 +01:00
Edwin Pujols
93a2738c8a Fix #102 - Visual indicator of case sensitivity. 2015-01-12 19:01:16 -04:00
Edwin Pujols
2098f1147f Add Xresources option for case sensitivity. 2015-01-12 15:56:41 -04:00
Edwin Pujols
32b8281cfb Merge branch 'master' of https://github.com/DaveDavenport/rofi
Conflicts:
	doc/rofi-manpage.markdown
	doc/rofi.1
2015-01-12 15:48:04 -04:00
Dave Davenport
a8843af9f3 Add support for alternating row colors. 2015-01-12 19:14:46 +01:00
Edwin Pujols
d1ba4bd8dc Fix #102 - Add case sensitivity. 2015-01-12 09:25:20 -04:00
Dave Davenport
965e7a94bf Fix dump-xresources table view. 2015-01-12 11:23:20 +01:00
QC
f28ac717cd Fix 101 2015-01-10 15:31:13 +01:00
QC
7e6a24f9b6 Make analysis happy and prefer heap over stack. 2015-01-10 15:13:10 +01:00
Dave Davenport
479123fcef Remove magic macro's. They are only used in one place, so no point. 2015-01-09 15:54:34 +01:00
Dave Davenport
f93e4d1f42 Add some comments. 2015-01-08 13:16:44 +01:00
QC
e3cef1b8a9 Coverity annoyance. 2015-01-07 22:11:12 +01:00
QC
1e8c94eaab Some error messages. 2015-01-07 18:21:23 +01:00
QC
366813fdec Wonder if this fixes the warning. 2015-01-07 18:02:18 +01:00
QC
79909cd807 Another possible NULL pointer fix. 2015-01-07 17:48:10 +01:00
QC
7428d94612 Remove check, selected_line is not NULL. 2015-01-07 17:44:41 +01:00
QC
19d8ce279b Initialize savept to NULL. (coverity) 2015-01-07 17:37:53 +01:00
QC
7c22f34154 Fix bug #97: Remove duplicates. 2015-01-07 15:53:41 +01:00
Qball Cow
10cdd0e48e Do not crash on empty list in run dialog. 2015-01-06 11:45:01 +01:00
Qball Cow
d0f9f6f067 In ssh config check for Host[::space::]: #101 2015-01-06 10:03:15 +01:00
QC
cfde1bde9a Add run-list command. 2015-01-05 22:16:13 +01:00
Dave Davenport
a28b6df307 Add support custom command. 2015-01-05 21:53:50 +01:00
QC
7ee64b258d Fix memory leak of sidebar mode switcher boxes. 2015-01-04 13:24:08 +01:00
QC
8afba6e875 Bug #98: Select a certain line.
* -l select line
2014-12-16 21:08:12 +01:00
Dave Davenport
0b34b958a6 Static fest. 2014-12-02 10:04:28 +01:00
Dave Davenport
781ca03f02 Small moving to helper. 2014-12-02 09:09:20 +01:00
Dave Davenport
59ee49a557 [TextBox] fix alignment issue with cursor. 2014-12-02 08:11:53 +01:00
QC
d393a5ff2e I am to tired to commit, lets try again. 2014-11-29 17:15:13 +01:00
QC
e2a3139b7d Small update trying to fix past commit. 2014-11-29 16:54:42 +01:00
QC
6805d93f68 Update previous commit with manpage fix window switcher. 2014-11-29 16:35:43 +01:00
qedi
ada9f81ce0 fix logic for Ctrl+Return/Ctrl+Enter 2014-11-29 09:39:27 -05:00
qedi
21235b0600 Force custom commandline when Ctrl-Return is used 2014-11-28 22:24:07 -05:00
Dave Davenport
2c9f33a1bd More commenting.
Code    Comment  Comment %      Blank      Total  File
------  ---------  ---------  ---------  ---------  -----------------
    36         69      65.7%          2        107  config.c
    66         31      32.0%         14        111  dmenu-dialog.c
   185         52      21.9%         19        256  helper.c
   179         66      26.9%         27        272  history.c
  1896        325      14.6%        345       2566  rofi.c
   197         45      18.6%         42        284  run-dialog.c
   144         31      17.7%         24        199  script-dialog.c
   171         42      19.7%         31        244  ssh-dialog.c
   350         69      16.5%         84        503  textbox.c
   151         37      19.7%         27        215  xrmoptions.c
    26          0       0.0%          5         31  helper-test.c
    65          6       8.5%         35        106  history-test.c
   109          5       4.4%         22        136  textbox-test.c
    34         33      49.3%         24         91  config.h
     5         10      66.7%          4         19  dmenu-dialog.h
    11         70      86.4%         10         91  helper.h
     9         46      83.6%          8         63  history.h
    83        128      60.7%         17        228  rofi.h
     4          8      66.7%          2         14  run-dialog.h
    11         26      70.3%          5         42  script-dialog.h
     4          8      66.7%          2         14  ssh-dialog.h
    64        142      68.9%         31        237  textbox.h
     6         13      68.4%          4         23  xrmoptions.h
2014-11-25 12:57:34 +01:00
Qball Cow
ce25bf3f50 Issue #91 Reverse order of headers to fix build. 2014-11-24 13:19:24 +01:00
QC
f42c0f1132 Use glib for escaping. 2014-11-22 22:40:53 +01:00
QC
18c6186501 Possible fix for issue #90.
* Escape the argument passed to the script.
  * Escape '\"
2014-11-22 21:39:34 +01:00
QC
66349a00dc Small updates. 2014-11-15 16:26:55 +01:00
Dave Davenport
05cab7a37a Fix indenting. 2014-11-12 17:49:13 +01:00
QC
c37ceb3e62 Fix error with entry box being empty. 2014-11-11 23:07:57 +01:00
QC
f710912042 Add ctrl-/ as reverse tab. 2014-11-11 21:50:16 +01:00
Qball Cow
cd8abd1153 Fix small graphical glix tabs
* They where to close to bottom.
2014-11-10 10:14:36 +01:00
Dave Davenport
9eb59fb616 [FullHeight] Fix height calculation
* Take window border into account.
2014-11-10 09:29:20 +01:00
Dave Davenport
950a177f97 [Sidebar mode] Allow tabs to be clicked. 2014-11-10 09:19:50 +01:00
Dave Davenport
0ccd7ef6bf Try to make sidebar separator visible again. 2014-11-10 08:59:39 +01:00
QC
ab82941b5e Add sidebar modi to ROFI. 2014-11-09 13:10:24 +01:00
QC
03f919a0fb Fix center mode. 2014-11-09 12:35:12 +01:00
QC
2e0d79d73e [Run] Filter out duplicates. Issue #86 2014-11-06 17:44:41 +01:00
Dave Davenport
c549c4f72d Reload configuration in daemon mode on SIGHUP 2014-11-05 10:52:10 +01:00
Dave Davenport
b27725834c If argv[0] is dmenu, launch in dmenu mode. 2014-11-05 10:36:26 +01:00
Dave Davenport
da7ba544fc Always use right display str. 2014-11-04 16:37:05 +01:00
Dave Davenport
f56bd03a86 Add multi-line elements support. 2014-10-30 17:53:22 +01:00
QC
f24fac2798 Remove separator from Xresources. 2014-10-19 19:44:22 +02:00
QC
f728e3f03e Add separator option. 2014-10-19 19:42:02 +02:00
QC
48bc2afb3e Indent. 2014-09-27 13:20:52 +02:00
Dave Davenport
404dc35c02 Fix some constness and add comments. 2014-09-23 09:24:24 +02:00
QC
15bee1f543 Add source files and man page.
* Add bugtracker to manpage.
        * Print msg to stderr, when error dialog not available.
2014-09-06 14:57:30 +02:00
QC
10322b45a5 Fix #81, this should now work correctly.
* Put old (broken) simpleswitcher code back.
        * Fix call to window_get_prop
        * Translate address with XTranslateCoordinates.
2014-09-05 17:14:50 +02:00
QC
20dca49a22 Add ctrl-space to set selected item as input. 2014-09-03 19:40:24 +02:00
Dave Davenport
0462811800 Add flexible configuration for launching
* You can now specify links: {terminal} -e bash -e "{ssh-client} {host}"
    * Add test for this code.
2014-09-03 13:07:26 +02:00
Dave Davenport
5f33d506b9 Fix name matching for ssh-dialog, fix bug 80. 2014-09-01 19:53:35 +02:00
Dave Davenport
229bb6931b Play with adding some more test, bug fixes
* delete an invalid memmove in textbox
2014-08-30 20:45:08 +02:00
QC
169c05cc15 Fix crash in history when removing last entry. 2014-08-29 12:14:43 +02:00
QC
5b017b017b Add gcov option. 2014-08-29 00:01:36 +02:00
Dave Davenport
562ace6b78 small cleanup error_dialog, remove dummy calc 2014-08-28 10:10:16 +02:00
Dave Davenport
0795cfda8d Add display text modi. 2014-08-27 19:44:15 +02:00
Dave Davenport
e44183b406 Refactor the to-long menu() function.
* Split out larger sub-parts into separate functions.
    * Create a state structure.
    * Remove zeltak mode.
2014-08-26 20:25:00 +02:00
QC
d76571bcaa Initialize fd to -1. 2014-08-25 20:07:31 +02:00
QC
24e7041604 Use g_spawn instead of fork+exec*
* Avoids issue with atexit being called for fork.
        * less code.
2014-08-25 20:02:48 +02:00
Dave Davenport
30051c8e80 issue: #79: Crash when enter on empty list.
* This fixes the reproducable part of the bug. (enter on empty list)
    * check selected < filtered_lines. so we do not try to dereference a null pointer.
2014-08-25 17:48:42 +02:00
Dave Davenport
04e13e3a20 Fix compile warnings. 2014-08-24 15:21:35 +02:00
QC
02ef657c41 [Click to select] Only select visible boxes. 2014-08-24 11:24:35 +02:00
QC
ba6a055683 Fix #59: Add some basic mouse support.
* TOOD: fix double click.
2014-08-23 12:47:09 +02:00
Dave Davenport
b665e85e69 Fix compile warnings with CLANG.
* signed compare with unsigned.
2014-08-22 17:29:15 +02:00
Dave Davenport
86b7571e04 Cleanup warnings.
* unused var and arguments.
2014-08-22 09:43:26 +02:00
Dave Davenport
62d4f0cdad Make rofi compile happily under clang.
* Set features in configure.ac
    * use config.h file, instead of hardcoded _GNU_SOURCE
      in each c file.
    * Fix mix up unsigned/signed.
2014-08-22 09:27:45 +02:00
Dave Davenport
63e5f4e940 Small cleanup and fixes.
* Use g_strfreev
    * Use g_ascii*strto(u)ll
2014-08-21 19:14:01 +02:00
QC
9af1d490a6 Make Rasi a happy boy, add character width mode. 2014-08-11 20:21:29 +02:00
QC
1a47507f7b Remove custom strlcpy for g_strlcpy. 2014-08-09 11:49:37 +02:00
QC
0be8e7ffa9 Remove xdg as dependency, glib provides this. 2014-08-09 11:44:06 +02:00
QC
98dfbddadb Move to glib's based memory allocation functions
* replace calloc by malloc0_n
        * malloc by g_malloc
        * strdup by g_strdup
        * asprintf by g_strdup_printf
        * realloc by g_realloc
        * free loop by g_strfreev (if possible)
2014-08-09 11:40:42 +02:00
Dave Davenport
9ac8f408f4 Remove useless prefix complete code.
* it is slow (ish)
    * it is not propper utf8 matching, doing this will make it slower.
2014-08-08 17:35:39 +02:00
QC
280c3d7f7f Using Glib's utf8 functions to do string collating.
* casefold and use utf-8 collating.
        * use g_utf8_next/prev for moving cursor.
2014-08-07 21:42:16 +02:00
Dave Davenport
b196649f10 Fix #76: DMENU returns 1 on cancel.
* Pull out dmenu, separate it from normal modi.
    * Give dmenu a return value (1 on cancel)
2014-08-05 09:07:41 +02:00
QC
da69111a20 Work on bug #73 2014-08-03 21:51:31 +02:00
QC
77a0a765ae Reverting c/p behavior, misread comments. 2014-08-03 21:09:20 +02:00
QC
9bbb79a888 Remove Active mode. IT causes problems with matching and has limited use. 2014-08-03 17:21:42 +02:00
QC
8ba11b2fe3 Remove unused active font variable. 2014-08-03 17:07:28 +02:00
QC
5ddcac2514 Cleanup previous test commit. 2014-08-03 17:05:06 +02:00
QC
d02f43966e Test to see if this fixes issue from Rafi. 2014-08-03 16:44:14 +02:00
QC
09130a6d11 Fix cursor height. 2014-08-03 11:48:48 +02:00
QC
0e12051783 Make insert and ctrl-v behavior the opposite.
* ctrl-v clipboard ctrl-shift-v primary
        * insert primary shift-insert clipboard.
2014-08-02 23:08:14 +02:00
QC
7046656246 Small tweak. 2014-08-02 22:27:04 +02:00
QC
eb688ad629 Fix a small pango scaling issue, center text in Y direction. 2014-08-02 21:09:20 +02:00
QC
48f592b7c1 Small fix (no functional change) 2014-08-02 20:57:05 +02:00
QC
7bebd1d7dd Set ellipsizing in the middle for edit boxes. 2014-08-02 20:25:43 +02:00
QC
6a45a18a4e Pango testing. 2014-08-02 20:02:37 +02:00
QC
f87b55dde9 Fix #72: Use correct # entries. 2014-08-02 11:19:16 +02:00
QC
65903e61d0 Fix #71 2014-08-01 23:29:01 +02:00
QC
c2ccd37312 Indent file, split out opacity code. 2014-07-30 20:54:16 +02:00
QC
c11fe3d056 Remove the -loc option for -location so things are more consistent. 2014-07-24 20:38:21 +02:00
QC
b146f432a9 Second fix for positioning window 2014-07-24 20:20:30 +02:00
QC
c3708f8dce Do not try to compensate for border when getting x,y 2014-07-24 20:15:09 +02:00
QC
e7cac06c7b Ctrl-j should go down, Ctrl-k up. 2014-07-22 20:33:50 +02:00
Dave Davenport
b1800fdf50 Fix previous commit, otherwise -show <window> matching goes wrong. 2014-07-22 18:19:00 +02:00
Dave Davenport
8cecc27992 Append ':' after Switcher name. 2014-07-22 18:04:42 +02:00
Dave Davenport
3c28012a87 Use strtok_r not strtok. 2014-07-22 08:21:56 +02:00
QC
bd4aa3d2fa Fix #67 Allow alt-<num> to switch between modis 2014-07-21 23:19:45 +02:00
QC
9ecf1e13a7 Small fix for easier scripting. 2014-07-21 22:22:16 +02:00
QC
cd4888a5cf Fix #65, Fix #63 Allow user to select list of modi's
* Add script_dialog, so user can add dialogs using a script.
    * Add a way to disable modi's
    * Add -show <modi> option.
2014-07-21 21:39:24 +02:00
Qball Cow
d584987c81 Fix #64
* Properly inverse the previous expression. (XGetWindowAttributes() == 0)
2014-07-21 16:53:10 +02:00
Qball Cow
7a1766fa45 Fix issue #61 2014-07-21 16:26:35 +02:00
QC
57f28bbb3b Close bug #57.
* Also accept XK_KP_Enter
2014-07-20 17:10:10 +02:00
QC
0f279b2995 Restructure some code, fix a small bug in dmenu mode.
* dmenu crashed on no input lines (wrong free)
 * Pass length of lines to menu function.
2014-07-20 12:29:27 +02:00
QC
842d19231a Hopeful fix for Issue: #58 2014-07-20 12:10:15 +02:00
QC
9526712bc7 Small tweak to get more sane start window size. (related to #58?) 2014-07-20 10:36:48 +02:00
QC
b30ace3ffe Some reordering. 2014-07-19 22:01:34 +02:00
QC
89efbba4b4 Some small cleanup and splitting. 2014-07-19 21:11:27 +02:00
QC
ea9090eb50 Remove a big chunk of duplicate code by re-ordering.
* Remove the refilter code that was in there twice (and directly squash a small bug)
 * Pull out the window position calculation in a sub-function.
2014-07-19 20:42:22 +02:00
Dave Davenport
c86f28493a Make levenshtein sorting its own option.
* TODO: update manpage. (no md2man on this machine)
2014-07-16 08:42:42 +02:00
QC
daa0d16221 Make window width include the border width. 2014-07-13 12:54:19 +02:00
QC
d702ad18c6 Small fix showing extra rows when generating full list from keypress 2014-07-07 21:36:20 +02:00
QC
6a917315ce When disabling history go into 'levenshtein' distance sorting when typing. 2014-07-05 19:47:55 +02:00
Dave Davenport
e4017fb28c Fix small sizing issue. 2014-07-04 05:37:11 -06:00
Dave Davenport
5b0dd0b141 Indent fix and small rename 2014-06-13 09:41:01 +02:00
Dave Davenport
224dadaddd Arrow hmode. 2014-06-13 09:27:56 +02:00
QC
eb20e77d6e Run-dialog, ignore dot files. 2014-06-07 11:00:21 +02:00
QC
df49b0709b Fix segfault in hmode. 2014-06-06 19:34:10 +02:00
Dave Davenport
7b06ec4a55 Remove random atoms and put them in the netatoms array. 2014-06-06 09:26:06 +02:00
QC
f9149b5bdb Add option to disable history. 2014-06-05 21:55:47 +02:00
Dave Davenport
a2bbc65ff8 Fix missing UINT32_MAX 2014-06-05 17:48:25 +02:00
Dave Davenport
4f58b6f81f More small cleanups. 2014-06-05 08:24:23 +02:00
Dave Davenport
d361b6c445 Cleanup, integrate opacity. 2014-06-05 08:11:01 +02:00
QC
9fbd7fc99c Re-indent. 2014-06-04 21:29:23 +02:00
QC
7667a88732 Extra sanity check, avoid crash 2014-06-02 21:51:22 +02:00
QC
6fb7e345d0 Insert key paste secondary, shift-insert primary. 2014-06-02 13:29:43 +02:00
QC
92db68b36d How many times will I break/fix trailing spaces, only buddah knows 2014-06-02 13:23:36 +02:00
Qball Cow
0d228cc265 Fix some stuff when pasting 2014-05-27 18:55:48 +02:00
Qball Cow
ffedaae438 Fix crasher in some cases. 2014-05-27 18:41:32 +02:00
Qball Cow
ec538c64ea Initial pasting support. 2014-05-27 12:55:47 +02:00
Qball Cow
3188236121 Cleanups 2014-05-27 08:42:21 +02:00
Qball Cow
749d3e6223 Add docs 2014-05-27 08:31:59 +02:00
Qball Cow
d573f3db4d Undo change 2014-05-26 15:37:33 +02:00
Qball Cow
dfa2915ef0 Remove globals 2014-05-26 10:32:26 +02:00
Qball Cow
e63de1220a Remove unused variables 2014-05-26 09:21:39 +02:00
Qball Cow
c400c44ec1 Make cppcheck happy. (normally we assume malloc does not fail.) 2014-05-26 09:19:58 +02:00
Qball Cow
469b566614 Cleanup, possibly unbreak daemon mode. 2014-05-26 09:00:14 +02:00
Qball Cow
c2f06d3f92 Fix highlighting of arrow box 2014-05-25 23:58:05 +02:00
QC
56a911129d Re-use XftFont instead of recreating it each and every time. 2014-05-25 23:32:06 +02:00
QC
71b6f8becd Update comments 2014-05-25 19:57:42 +02:00
QC
400b7bba67 Disable previously (simpleswitcher) broken code, as fixing it seems to break more stuff. 2014-05-25 19:39:24 +02:00
QC
cba893f500 Fix history becoming stuck. 2014-05-25 17:55:27 +02:00
QC
fb56250d18 Fix a newly exposed bug, i3 indicating an active window that does not exists 2014-05-25 11:34:45 +02:00
QC
3a14ec9746 Fonts with a * prepended are considered active and slanted.
* Fix bug in window_get_prop call.
 * Use right type (Window instead of unsigned long)
 * Make current active window active
2014-05-25 11:04:45 +02:00
QC
241e4516c0 Small fix. 2014-05-24 16:23:01 +02:00
QC
4b1761d022 Small cleanup 2014-05-24 11:02:13 +02:00
QC
326b562c29 Scale down number of columns when not enough rows are available. 2014-05-24 10:35:09 +02:00
QC
b1e6030c34 Remove -dump, add indent update manpage document target. 2014-05-24 10:18:36 +02:00
QC
1df6489746 Fix small typo 2014-05-22 21:59:27 +02:00
QC
87958d4cad Add option to dump xresources entries. 2014-05-22 21:56:57 +02:00
QC
5769bc36f1 Make ssh set title public. 2014-05-22 10:03:36 +02:00
QC
21a0666a6e Cleanups and indenting. 2014-05-22 09:33:32 +02:00
QC
a26cf2637d Commandline options and Xresources now match in nameing. 2014-05-22 09:18:16 +02:00
Qball Cow
beced5d36e Use true/false for hmode and fixed-num-lines
* Also update man page to reflect this.
2014-05-22 00:38:14 +02:00
QC
f29751b573 Change the prompt to be more consistent. Bug #49 2014-05-21 23:54:48 +02:00
Qball Cow
e3c20447c7 Remove prompt option from textbox, simplify code, fix small drawing issue. 2014-05-21 17:33:28 +02:00
Qball Cow
90e91aca13 Small column fix for entry box 2014-05-21 08:56:16 +02:00
Qball Cow
cf35a0bb65 remove pointless extern. 2014-05-20 11:47:05 +02:00
Qball Cow
35d5d004c9 Cleanups. 2014-05-20 11:41:39 +02:00
Qball Cow
6d308cefd8 Remove value from config struct. 2014-05-20 11:22:03 +02:00
Qball Cow
85172743ee Keys via xresources, dump config. 2014-05-20 09:43:45 +02:00
QC
3157358c63 Add hmode to xrmoptions. 2014-05-19 22:12:54 +02:00
QC
05cf49a880 Fix some small memory leaks. 2014-05-19 21:58:13 +02:00
Qball Cow
0a95ba47fa Extra checks, first part cleanup 2014-05-19 21:02:05 +02:00
Qball Cow
6cd01dba0e Add 4px gap between cursor and last Glyph 2014-05-19 17:57:27 +02:00
Qball Cow
b360cdd13c Change malloc+sprintf to asprintf 2014-05-19 17:54:53 +02:00
Qball Cow
cb15a57fb7 Remove memory wrappers, and use system stuff directly. 2014-05-19 16:48:50 +02:00
Qball Cow
b535533569 Add some initial columns support. 2014-05-19 09:50:09 +02:00
QC
b213711204 Add xoffset/yoffset and fixed-num-lines to the command-line options. 2014-05-18 22:18:19 +02:00
QC
cbc51910bc Small fix with spaces not being rendered. 2014-05-18 18:14:15 +02:00
QC
34aca6a140 Add double tab mode switching.
If no hit is found, and you press tab twice in a row, switch to next modi.
2014-05-18 12:11:02 +02:00
QC
46728d9030 Small fix? 2014-05-18 00:12:05 +02:00
QC
4f1ab47b7d Small 'correctness' fixes (thx to sparse) 2014-05-17 23:06:45 +02:00
QC
f44fd74987 Add option to fix the size of rofi 2014-05-17 22:17:23 +02:00
Qball Cow
08da286931 Fix small miss-drawing 2014-05-16 09:17:55 +02:00
QC
3ebd0d9001 Allow xoffset, fix bottom/right edge. 2014-05-15 21:55:23 +02:00
Qball Cow
82bdb5f348 Add a y-offset. 2014-05-15 16:54:35 +02:00
Qball Cow
1b9d4fb325 add location to xrm options 2014-05-15 08:44:45 +02:00
QC
ce6b8b617d Change arrow position, fix hmode 2014-05-14 22:21:16 +02:00
QC
7b7af4cfb4 Show arrows in list. 2014-05-14 20:56:38 +02:00
Qball Cow
de5187bb01 Add small arrows indicating more pages. (to be updated later) 2014-05-14 19:51:48 +02:00
Qball Cow
a925e59653 Small fixes 2014-05-13 22:11:42 +02:00
Qball Cow
87b51f5430 Extract out the history code and create functions for it.
(Easier to fix issues later on)
2014-05-13 10:45:59 +02:00
QC
db9bb13111 clearer that run dialog 2014-05-10 22:58:21 +02:00
QC
ab1b6e7127 Do not show separator line when no entry. 2014-04-28 21:34:48 +02:00
QC
fc88182484 Fix crasher, when used as input. 2014-04-28 21:18:42 +02:00
Qball Cow
832c2cb584 Add comment to avoid mistake later, remove alloca
* Add comments so previous mistake is not repeated.
    * Remove alloca, replace it by strdup/asprintf.

Code now passes cppcheck.
2014-04-25 09:11:10 +02:00
Qball Cow
a0a5400c72 Fix bug with extra trailing \n 2014-04-24 23:39:26 +02:00
Qball Cow
aeefabe7a0 Fix unclosable window bug.
Fix annoyance, when it failed to grab keyboard, it still shows windows and waits for
    input. This causes an unaccessible Rofi instance.
2014-04-24 18:03:27 +02:00
Qball Cow
7887344d44 Removed unused, add comments. 2014-04-24 17:35:40 +02:00
Qball Cow
46309a6fd5 Replace malloc/memset with calloc. 2014-04-24 14:25:18 +02:00
Qball Cow
f0aa796fd8 Small cleanups. 2014-04-23 08:47:46 +02:00
Qball Cow
4fd76f59b4 Use asprintf.
Avoid possible errors.
2014-04-22 14:38:36 +02:00
Dave Davenport
0d6556618e Allow window title to be set. issue #42 2014-04-22 11:11:46 +02:00
QC
d64345ccbe identify. 2014-04-16 21:43:34 +02:00
Qball Cow
de21215491 Paginating 2014-04-15 09:14:00 +02:00
QC
c87312be36 Indent o mania. 2014-03-22 21:04:19 +01:00
Qball Cow
4d37cf35dc Small fix! 2014-03-18 10:55:25 +01:00
Qball Cow
5d5779ad1d Small i3 fix 2014-03-18 10:38:30 +01:00
Qball Cow
925097c9dd Remove unused header. 2014-03-18 00:05:38 +01:00
Qball Cow
89b48fb767 Fix timeout, detect i3 2014-03-17 23:58:08 +01:00
QC
7e12aeb597 Remove profile. 2014-03-17 19:28:11 +01:00
Qball Cow
07f8073d4e Use autotools (1) 2014-03-17 19:16:09 +01:00
QC
f033a0d669 Small fix. 2014-03-16 13:48:03 +01:00
Qball Cow
dc5c853d91 small fix for stupid error 2014-03-12 17:40:23 +01:00
Qball Cow
0d1e5ae597 Small fix forgot one header file entry. 2014-03-12 08:52:11 +01:00
Qball Cow
6e7f1b746a Rename main file. 2014-03-12 08:41:38 +01:00
Qball Cow
c268c10f8b Fix warning from clang --analyze 2014-03-11 20:16:44 +01:00
Qball Cow
9d531043e3 Possible fix for issue #32 2014-03-10 08:49:38 +01:00
Qball Cow
702ff68eb4 Sort favorites by # of runs 2014-03-08 21:35:27 +01:00
Dave Davenport
8a3daf3194 Make things behave nice again in i3. 2014-03-02 12:53:06 +01:00
Daniel Hahler
1834e25ef3 Select the target desktop in non-i3_mode
Fixes https://github.com/DaveDavenport/rofi/issues/28

This is merged from the original upstream at:
https://github.com/seanpringle/simpleswitcher/blob/master/simpleswitcher.c
(including the TODO)
2014-03-02 10:37:58 +01:00
Daniel Hahler
ea8c9923d5 Display desktop number with the pattern in window mode
This is merged from the original upstream at:
https://github.com/seanpringle/simpleswitcher/blob/master/simpleswitcher.c
2014-03-02 10:33:27 +01:00
QC
1bed4252ae More rename. 2014-03-01 17:28:55 +01:00
QC
7f32582582 Rename simpleswitcher to rofi. 2014-03-01 17:27:52 +01:00
QC
52a28ea494 Small cleanups. 2014-02-27 20:26:35 +01:00
QC
a3569079c9 Make cppcheck happy. 2014-02-26 22:48:49 +01:00
Qball Cow
c2e25dc0c1 Use Xutf8LookupString 2014-02-25 22:54:44 +01:00
Qball Cow
5619c856f1 First throw at some utf8 support 2014-02-25 09:16:52 +01:00
Qball Cow
faab271283 Do not free the return value of XResourceManagerString.
(See manual http://tronche.com/gui/x/xlib/resource-manager/XResourceManagerString.html)
2014-02-04 18:39:32 +01:00
QC
57abc12c43 cleanups 2014-02-03 23:07:04 +01:00
QC
b9c192c4fe Removing duplicate code, small fixes. 2014-02-03 22:49:07 +01:00
QC
2bfc2fff4b Remove mark dialog. 2014-02-03 22:28:04 +01:00
QC
c71e0313a9 Add header. 2014-02-03 21:46:44 +01:00
QC
96e76c1998 Split out xresource and add -v --version 2014-02-02 10:54:01 +01:00
QC
302db5bf07 Add two extra options to xresource 2014-02-01 23:10:49 +01:00
QC
bd3d69d1ae Replace malloc by allocate 2014-02-01 23:07:03 +01:00
QC
0737b4f5b2 Read settings from Xresource.
Code borrowed from Sean Pringle (yet again).
2014-02-01 23:04:45 +01:00
QC
76a8f79211 Accept empty lists 2014-02-01 22:31:07 +01:00
Qball Cow
fa5a496629 Fix a few minor bugs 2014-02-01 14:39:49 +01:00
Qball Cow
5415cd60ed Add delete option to ssh switcher 2014-02-01 14:06:08 +01:00
Qball Cow
6177c90a87 Restructure for and add option to delete entry from history. 2014-02-01 14:03:23 +01:00
QC
8310a97219 Fix endline thingy in dmenu 2014-01-31 20:36:14 +01:00
QC
8725748916 Home/End key map to list browsing. 2014-01-31 19:39:09 +01:00
Qball Cow
47ad13fdf3 Add kp home/end 2014-01-31 18:14:46 +01:00
Qball Cow
972e3ee1d7 Add home/end key support 2014-01-31 18:09:36 +01:00
Qball Cow
290ed81e08 Add Page up/down 2014-01-31 18:06:51 +01:00
Qball Cow
e9770460dd Fix i3less build. 2014-01-31 15:52:04 +01:00
Qball Cow
8edac70eae Remove json. 2014-01-31 13:57:49 +01:00
Qball Cow
1fc03ce908 Implement scrolling in menu 2014-01-31 13:41:08 +01:00
QC
101c63cde6 Indent. 2014-01-30 21:32:36 +01:00
Qball Cow
c32e18b600 Make dmenu mode behave more like dmenu 2014-01-30 18:23:52 +01:00
QC
39b25093bd in dmenu mode accept -p as prompt param 2014-01-30 12:15:32 +01:00
QC
760a634731 Indent. 2014-01-30 10:02:01 +01:00
Qball Cow
bbe4a3d330 Add dmenu option 2014-01-30 00:47:23 +01:00
QC
78845b52f4 Fix issue #19, accept as argument too 2014-01-29 20:45:38 +01:00
QC
13da91b200 Remove more stray printf 2014-01-29 20:39:25 +01:00
QC
080e1f0a15 Remove stray printf 2014-01-29 20:37:33 +01:00
Qball Cow
167429bae0 Read json file chuncked, and from stdin 2014-01-29 18:44:09 +01:00
Qball Cow
acc46c4dd2 Add a test json mode 2014-01-29 15:38:08 +01:00
QC
04f6fb91e8 Fix issue #15 2014-01-28 20:52:52 +01:00
QC
8a053642c4 Rename inner_margin to padding so it goal is more clear. issue #14 2014-01-28 20:48:48 +01:00
QC
8508c73b12 Add switch_profile.sh mode 2014-01-27 22:15:33 +01:00
Qball Cow
f8b72dfbac small arm compiler fix 2014-01-26 23:20:15 +01:00
QC
b0ee6ab8dd also accept . in ssh hostname 2014-01-26 16:47:26 +01:00
QC
8b6b494830 Support _ in ssh hostname 2014-01-26 16:21:08 +01:00
QC
4efeb421f2 Don't talk to i3 if i3-mode is 0 2014-01-26 15:47:17 +01:00
QC
07072de251 Add missing files 2014-01-26 15:41:45 +01:00
QC
0529d21ffd Add support for selecting marks 2014-01-26 15:39:50 +01:00
QC
bd33e93e16 Put user settable config in separate file. 2014-01-26 13:29:38 +01:00
QC
2b453668e7 Add ctrl-j/k to navigate 2014-01-26 13:04:00 +01:00
QC
e62ada2a83 Add support for horizontal mode. 2014-01-26 12:59:10 +01:00
Qball Cow
f72a60580f Allow user to specify location of switcher 2014-01-26 00:27:57 +01:00
QC
6e242c197e Use XDG basedir for CACHE. 2014-01-25 23:37:37 +01:00
QC
f24b5ef19a Some cleanups 2014-01-23 20:33:13 +01:00
Qball Cow
9f4078cec8 Remove duplicate variable, revert earlier change. 2014-01-23 18:24:28 +01:00
Qball Cow
95dd228dd6 Small compile fix on arm 2014-01-23 18:03:11 +01:00
Qball Cow
e95727c3bc Config cleanups. 2014-01-23 11:39:12 +01:00
Qball Cow
458503df90 Make down key behave different from tab, it feels inconsistent. 2014-01-22 17:48:50 +01:00
Qball Cow
c5ed30c532 Fix margin 2014-01-22 13:32:46 +01:00
Qball Cow
498c007193 Add line. 2014-01-22 13:15:38 +01:00
Qball Cow
f4da5aceb2 Don't add empty ssh targets. 2014-01-22 10:01:45 +01:00
Qball Cow
6bb615f1d1 small cleanup 2014-01-22 09:24:31 +01:00
Qball Cow
424cb90a18 Fix clang compilation. 2014-01-21 15:00:00 +01:00
Qball Cow
0dbd57b46f Include errno.h 2014-01-21 14:56:25 +01:00
Qball Cow
0068618573 cleanup 2014-01-21 10:35:59 +01:00
Qball Cow
ef8d444dd2 Add keybinding. 2014-01-21 10:13:42 +01:00
Qball Cow
a749aa35e9 Add a SSH selector. 2014-01-21 10:01:55 +01:00
Qball Cow
3a44951e9f More cleanups to make more extendable 2014-01-21 00:20:09 +01:00
QC
5e72018497 Split of run-dialog part in separate file. 2014-01-20 23:36:20 +01:00
QC
f3a77c9b00 Cleanups. 2014-01-20 22:58:10 +01:00
QC
eda0a9e0d0 Add option to specify terminal to launch 2014-01-20 21:17:19 +01:00
QC
22399d0fae Fix last commit, make difference between enter and escaped 2014-01-20 20:49:26 +01:00
QC
164073ffd3 Allow non-matches to be executed.. (and added to history). 2014-01-20 20:26:17 +01:00
QC
06039b8c9c Restructure a bit. 2014-01-19 14:18:42 +01:00