From e4fbd6ece30234977acf0887ad80a8c56f317610 Mon Sep 17 00:00:00 2001 From: Siarhei Siniak Date: Sun, 5 Mar 2023 13:53:27 +0300 Subject: [PATCH] [~] Refactor --- dotfiles/.local/bin/commands | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/dotfiles/.local/bin/commands b/dotfiles/.local/bin/commands index 6bb4929..68a1e0e 100755 --- a/dotfiles/.local/bin/commands +++ b/dotfiles/.local/bin/commands @@ -2009,8 +2009,6 @@ def media_keys(argv): msg = None - logging.info('media_keys, command = %s' % options.command) - mode = None is_mocp = lambda : \ subprocess.call([ @@ -2087,6 +2085,17 @@ def media_keys(argv): else: raise NotImplementedError + logging.info( + json.dumps( + dict( + command=options.command, + msg=msg, + mode=mode, + ), + ensure_ascii=False + ) + ) + return dict( msg=msg, )