diff options
author | djmelik <melik@archlinux.us> | 2009-12-30 02:08:42 -0700 |
---|---|---|
committer | djmelik <melik@archlinux.us> | 2009-12-30 02:08:42 -0700 |
commit | e6b45415b62b478614a9629759dd70a0d4b09ae7 (patch) | |
tree | 2edc6d086ba5b914c65c4245cb528c82da74570b | |
parent | b60e01710accd6bd965953d38551fe428405db4e (diff) |
removed de_or_wm function
-rw-r--r-- | archey | 20 |
1 files changed, 2 insertions, 18 deletions
@@ -22,9 +22,8 @@ display = [ 'kernel', # Display Kernel # 'battery', # Display Battery info [Requires 'acpi'] 'uptime', # Display Uptime - 'de_or_wm', # Display DE or WM -# 'wm', # Display WM -# 'de', # Display DE + 'wm', # Display WM + 'de', # Display DE 'packages', # Display Number of Packages Installed # 'fs:/boot', # Display /boot partition # 'fs:/home', # Display /home partition @@ -143,21 +142,6 @@ def wm_display(): if key in processes: wm = wm_dict[key] output ('WM', wm) -# Desktop Environment or Window Manager Function -def de_or_wm_display(): - gui = 'X' - if gui not in processes: - output ('GUI', 'Not Running') - if gui in processes: - for key in de_dict.keys(): - if key in processes: - output ('DE', de_dict[key]) - return - for key in wm_dict.keys(): - if key in processes: - output ('WM', wm_dict[key]) - return - # Packages Function def packages_display(): p1 = Popen(['pacman', '-Q'], stdout=PIPE) |