From 5730f8d9cd735b5b22d58b852e223b7c5aed882d Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Sat, 11 Dec 2021 18:35:10 +0000 Subject: [PATCH] Cosmetic fixes --- bin/genpw | 14 +++++++++++--- bin/mic-toggle.sh | 2 +- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/bin/genpw b/bin/genpw index eb8b87f..79716b6 100755 --- a/bin/genpw +++ b/bin/genpw @@ -15,7 +15,8 @@ LENGTH = 16 def generate(length: int) -> str: - """Simple function to call OpenSSL + """ + Simple function to call OpenSSL Args: length (int): length of string to return @@ -26,9 +27,16 @@ def generate(length: int) -> str: if __name__ == '__main__': def main() -> int: - """Main function to call""" + """ + Main function to call + """ parser = argparse.ArgumentParser() - parser.add_argument('-n', dest='length', default=LENGTH, type=int) + parser.add_argument( + '-n', + dest='length', + default=LENGTH, + type=int, + ) args = parser.parse_args() sys.stdout.write(generate(args.length)) diff --git a/bin/mic-toggle.sh b/bin/mic-toggle.sh index b05d987..167ccda 100755 --- a/bin/mic-toggle.sh +++ b/bin/mic-toggle.sh @@ -11,4 +11,4 @@ amixer -c ${CARD} sset Mic mute toggle STATE=$(amixer -c ${CARD} cget name='Mic Capture Switch' | grep -F ': values=' | cut -f2 -d=) # Notify -notify-send -t 3000 "${CARD} Mic" ${STATE^^} -i ${ICONS[${STATE}]} +notify-send -t 3000 "${CARD} Mic" "${STATE^^}" -i "${ICONS[${STATE}]}"