summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurie Clark-Michalek <bluepeppers@archlinux.us>2010-09-01 19:45:54 +0100
committerLaurie Clark-Michalek <bluepeppers@archlinux.us>2010-09-01 19:45:54 +0100
commit60fbe8cc7b7f790d379314d5802bf8028d804350 (patch)
treeed243a5f765a6bb0b1c466ec283e02ffc1437c46
parent4ba181875ae8b9558a4fbd9b45a794540e3d3d55 (diff)
Improved screenshot countdown slighty
-rwxr-xr-xarchey314
1 files changed, 9 insertions, 5 deletions
diff --git a/archey3 b/archey3
index 092e668..129c88c 100755
--- a/archey3
+++ b/archey3
@@ -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):