diff options
| author | Alec Goncharow <Alec.Goncharow@gmail.com> | 2020-08-10 17:43:23 -0400 |
|---|---|---|
| committer | Alec Goncharow <Alec.Goncharow@gmail.com> | 2020-08-10 17:43:23 -0400 |
| commit | cfa23f93ef3432753e9e85cfeb3fd67cad5836c5 (patch) | |
| tree | f0124b37e9cd2f7eed2387cddb9889050d93db75 /.config/i3blocks/scripts/arch-update.py | |
| parent | 2825fe0b91dc8f8abb318c83b85f893c35852e69 (diff) | |
2020
Diffstat (limited to '.config/i3blocks/scripts/arch-update.py')
| -rwxr-xr-x | .config/i3blocks/scripts/arch-update.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/.config/i3blocks/scripts/arch-update.py b/.config/i3blocks/scripts/arch-update.py index 7a7be68..7dc5d62 100755 --- a/.config/i3blocks/scripts/arch-update.py +++ b/.config/i3blocks/scripts/arch-update.py @@ -8,7 +8,6 @@ import subprocess from subprocess import check_output import argparse import re -import os def create_argparse(): @@ -104,6 +103,7 @@ if update_count > 0: info += ' [{0}]'.format(', '.join(matches)) print(message.format(args.updates_available_color, info)) + import os if 'BLOCK_BUTTON' in os.environ: button = os.environ['BLOCK_BUTTON'] if button is not '': @@ -112,6 +112,5 @@ if update_count > 0: subprocess.call("termite -e 'sudo pacman -Syu' --hold", shell=True) - elif not args.quiet: - print(message.format(args.base_color, '-Syu ')) + print(message.format(args.base_color, '-Syu ')) |
