Cosmetic fixes
This commit is contained in:
parent
9833101e37
commit
5730f8d9cd
14
bin/genpw
14
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))
|
||||
|
|
|
@ -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}]}"
|
||||
|
|
Loading…
Reference in a new issue