summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMelik Manukyan <melik@archlinux.us>2010-01-17 20:54:38 -0800
committerMelik Manukyan <melik@archlinux.us>2010-01-17 20:54:38 -0800
commit5e7b77694c12fccf68568df32e468638ea3b3556 (patch)
tree4b7f3db868ae9a6c712a47f9e02d80c9bc29055d
parent77deabd4d15e35e3dde02bc7286964d18abd9a4f (diff)
replaced scrot with imagemagick import
-rw-r--r--archey15
1 files changed, 12 insertions, 3 deletions
diff --git a/archey b/archey
index 06daf8d..4bb95f9 100644
--- a/archey
+++ b/archey
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
-# archey [version 0.1-7]
+# archey [version 0.1-8]
#
# Maintained by Melik Manukyan <melik@archlinux.us>
# Distributed under the terms of the GNU General Public License v3.
@@ -10,10 +10,11 @@
# Along with basic system information.
# Import libraries
-import subprocess, optparse, re
+import sys, subprocess, optparse, re
from subprocess import Popen, PIPE
from optparse import OptionParser
from getpass import getuser
+from time import ctime, sleep
# Display [Comment/Uncomment to Enable/Disable information.]
display = [
@@ -111,7 +112,15 @@ def ram_display():
# Screenshot Function
screen = '%s' % options.screenshot
def screenshot():
- subprocess.check_call(['scrot', '-cd5'])
+ print 'Taking shot in',
+ list = range(1,6)
+ list.reverse()
+ for x in list:
+ print '%s..' % x,
+ sys.stdout.flush()
+ sleep(1)
+ subprocess.check_call(['import', '-window', 'root', ctime().replace(' ','_')+'.png'])
+ print 'Say Cheeze!'
# Operating System Function
def os_display():