Skip to content

Commit d352a25

Browse files
committed
In raw mode we should show explicit device config
1 parent 4704836 commit d352a25

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

libinput-gestures

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -525,19 +525,22 @@ confname = unexpanduser(conffile)
525525
get_conf(conffile, confname)
526526

527527
# List out available gestures if that is asked for
528-
if args.verbose and not args.raw:
529-
print('Gestures configured in {}:'.format(confname))
530-
for h in handlers.values():
531-
for mpair, cmd in h.motions.items():
532-
motion, fingers = (mpair, '') if isinstance(mpair, str) else mpair
533-
print('{} {:10}{:>2} {}'.format(h.name.lower(), motion,
534-
fingers, cmd))
528+
if args.verbose:
529+
if not args.raw:
530+
print('Gestures configured in {}:'.format(confname))
531+
for h in handlers.values():
532+
for mpair, cmd in h.motions.items():
533+
motion, fingers = (mpair, '') if isinstance(mpair, str) else mpair
534+
print('{} {:10}{:>2} {}'.format(h.name.lower(), motion,
535+
fingers, cmd))
536+
537+
if swipe_min_threshold:
538+
print('swipe_threshold {}'.format(swipe_min_threshold))
539+
if timeoutv != DEFAULT_TIMEOUT:
540+
print('timeout {}'.format(timeoutv))
541+
535542
if args.device:
536543
print('device {}'.format(args.device))
537-
if swipe_min_threshold:
538-
print('swipe_threshold {}'.format(swipe_min_threshold))
539-
if timeoutv != DEFAULT_TIMEOUT:
540-
print('timeout {}'.format(timeoutv))
541544

542545
# Get touchpad device
543546
if not args.device or args.device.lower() != "all":

0 commit comments

Comments
 (0)