summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMelik Manukyan <melik@archlinux.us>2010-06-24 18:12:34 -0700
committerMelik Manukyan <melik@archlinux.us>2010-06-24 18:12:34 -0700
commit5a0baf0e553aea4d31570a0b74015e056491ab15 (patch)
tree9fefa3d1389f6d075999f57e01eb8fa5ce818a28
parent92d1ce799bf1aea8aecd4cfee594a42eca69d30d (diff)
Added terminal function
-rw-r--r--archey6
1 files changed, 6 insertions, 0 deletions
diff --git a/archey b/archey
index 9940452..e62d66d 100644
--- a/archey
+++ b/archey
@@ -27,6 +27,7 @@ display = [
'ram', # Display RAM Usage
'cpu', # Display CPU Model
'sh', # Display Current Shell
+ 'term', # Display Current Terminal
'fs' # Display / Partition Usage
]
@@ -183,6 +184,11 @@ def sh_display():
sh = os.getenv("SHELL").split('/')[-1].capitalize()
output ('Shell', sh)
+# Terminal Function
+def term_display():
+ term = os.getenv("TERM").split('/')[-1].capitalize()
+ output ('Terminal', term)
+
# Packages Function
def packages_display():
p1 = Popen(['pacman', '-Q'], stdout=PIPE)