caps2esc:logo4alt

Interception tools plugin that maps caps->{esc,ctrl} and logo<->alt
git clone git://git.deurzen.net/caps2esc:logo4alt
Log | Files | Refs | README | LICENSE

commit c738e8783a3293ba2a98da975872db752c1ddb2d
parent a062311ffbae5005c91bdbb3c7d20758a3d54790
Author: Francisco Lopes <francisco@nosubstance.me>
Date:   Wed, 30 Dec 2020 21:32:58 -0300

Formatting

Diffstat:
Mcaps2esc.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/caps2esc.c b/caps2esc.c @@ -69,8 +69,8 @@ void write_event_with_mode(struct input_event *event, int mode) { } int main(int argc, char *argv[]) { - int opt, mode = 0, delay = 20000; - while ((opt = getopt(argc, argv, "ht:m:")) != -1) { + int mode = 0, delay = 20000; + for (int opt; (opt = getopt(argc, argv, "ht:m:")) != -1;) { switch (opt) { case 'h': return print_usage(stdout, argv[0]), EXIT_SUCCESS;