Commit graph

534 commits

Author SHA1 Message Date
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