From c7581bcbd32ab4060ae0fad5bfa42b1ce6cd1556 Mon Sep 17 00:00:00 2001 From: Christopher Arndt Date: Wed, 17 Apr 2019 18:17:10 +0200 Subject: [PATCH] Enable ALSA device monitoring by default Signed-off-by: Christopher Arndt --- CHANGELOG.rst | 6 +++--- README.md | 3 ++- jackselect/jackselect.py | 6 +++--- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index b698b62..2ce7270 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -6,9 +6,9 @@ ChangeLog ------------------ * Detect changes in connected ALSA devices and enable/disable preset, - which use these devices in the menu (behaviour disabled by defult). -* Added command line option ``-a``, ``--alsa-monitor`` to explicitly - turn on ALSA device monitoring and filtering. + which use these devices in the menu. +* Added command line option ``-a``, ``--no-alsa-monitor`` to disable + ALSA device monitoring and filtering. * Made some logging improvements. diff --git a/README.md b/README.md index 18a412c..49a303c 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,8 @@ between different audio setups with just two mouse clicks. Menu entries for presets, which refer to ALSA devices currently not available (e.g. those provided by USB interfaces, which are currently un-plugged), will be deactivated. The application will detect changes in the sound device -configuration via udev and update the menu accordingly. +configuration via udev and update the menu accordingly (this behaviour can +be disabled via a command line option). When you hover with the mouse pointer over the systray icon and JACK is running, a tooltip will show you the name of the active preset (if known), the diff --git a/jackselect/jackselect.py b/jackselect/jackselect.py index ffe1ccf..49754e1 100755 --- a/jackselect/jackselect.py +++ b/jackselect/jackselect.py @@ -431,8 +431,8 @@ def main(args=None): from dbus.mainloop.glib import DBusGMainLoop ap = argparse.ArgumentParser(description=__doc__.splitlines()[0]) - ap.add_argument('-a', '--alsa-monitor', action="store_true", - help="Enable ALSA device monitoring and filtering.") + ap.add_argument('-a', '--no-alsa-monitor', action="store_true", + help="Disable ALSA device monitoring and filtering.") ap.add_argument('-d', '--default', action="store_true", help="Activate default preset.") ap.add_argument('-v', '--verbose', action="store_true", @@ -463,7 +463,7 @@ def main(args=None): log.debug("Opening menu...") client.OpenMenu() except dbus.DBusException: - JackSelectApp(bus, monitor_devices=args.alsa_monitor) + JackSelectApp(bus, monitor_devices=not args.no_alsa_monitor) try: return Gtk.main() except KeyboardInterrupt: