mirror of
https://github.com/HorlogeSkynet/archey4
synced 2025-04-23 16:00:13 +02:00
Updated WM/DE Functions
This commit is contained in:
parent
ae29a0391b
commit
d71b07062d
12
archey
12
archey
@ -165,15 +165,17 @@ def uptime_display():
|
||||
def de_display():
|
||||
de = 'None found'
|
||||
for key in de_dict.keys():
|
||||
if key in processes: de = de_dict[key]
|
||||
output ('Desktop Environment', de)
|
||||
if key in processes:
|
||||
de = de_dict[key]
|
||||
output ('Desktop Environment', de)
|
||||
|
||||
# Window Manager Function
|
||||
def wm_display():
|
||||
wm = 'None found'
|
||||
for key in wm_dict.keys():
|
||||
if key in processes: wm = wm_dict[key]
|
||||
output ('Window Manager', wm)
|
||||
if key in processes:
|
||||
wm = wm_dict[key]
|
||||
output ('Window Manager', wm)
|
||||
|
||||
# Shell Function
|
||||
def sh_display():
|
||||
@ -213,7 +215,7 @@ for x in display:
|
||||
func()
|
||||
|
||||
# Array containing values.
|
||||
result.extend(['']*(19 - len(display)))
|
||||
result.extend(['']*(20 - len(display)))
|
||||
|
||||
###### Result #######
|
||||
print """%s
|
||||
|
Loading…
x
Reference in New Issue
Block a user