Commit Graph

18 Commits

Author SHA1 Message Date
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 c68ab67dd8 Add some comments and cleanups, allow reeloading of keybindings at run-time 2015-07-29 09:37:40 +02:00
QC 1de8d448f7 Make color parsing more robust, report failing of parsing color.
Involves: #181
2015-07-07 21:51:15 +02:00
QC 652a6ed7d2 Fix clang-tidy warnings. 2015-05-14 19:39:30 +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
Dave Davenport a70404f128 First part of infrastructure for Issue: #131 customizable keybindings. 2015-04-30 21:52:30 +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
QC 2590ecf7e5 ADd new coloring scheme. 2015-04-06 17:13:26 +02: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
QC 877c8051c6 Update copyright license. 2015-02-12 22:34:06 +01:00
Dave Davenport 605fe4911c Refactor code, split out window switcher code. 2015-02-12 22:16:32 +01:00
Dave Davenport c5f95d4e25 Small comment updates. 2015-02-10 08:12:03 +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