diff options
author | Laurie Clark-Michalek <bluepeppers@archlinux.us> | 2010-09-01 19:45:54 +0100 |
---|---|---|
committer | Laurie Clark-Michalek <bluepeppers@archlinux.us> | 2010-09-01 19:45:54 +0100 |
commit | 60fbe8cc7b7f790d379314d5802bf8028d804350 (patch) | |
tree | ed243a5f765a6bb0b1c466ec283e02ffc1437c46 /archey3 | |
parent | 4ba181875ae8b9558a4fbd9b45a794540e3d3d55 (diff) |
Improved screenshot countdown slighty
Diffstat (limited to 'archey3')
-rwxr-xr-x | archey3 | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -367,13 +367,17 @@ class mpdDisplay(display): def screenshot(): print('Screenshotting in') - list = list(range(1,6)) - list.reverse() - for x in list: - print('%s...' % x, end=' ') + for x in sorted(range(1,6), reverse=True): + print('%s' % x, end='') sys.stdout.flush() - sleep(1) + sleep(1.0/3) + for x in range(3): + print('.', end='') + sys.stdout.flush() + sleep(1.0/3) + print('Say Cheese!') + sys.stdout.flush() subprocess.check_call(['import', '-window', 'root', ctime().replace(' ','_')+'.jpg']) def render(instance): |