summaryrefslogtreecommitdiff
path: root/archey3
diff options
context:
space:
mode:
authorLaurie Clark-Michalek <bluepeppers@archlinux.us>2012-09-07 22:54:57 +0100
committerLaurie Clark-Michalek <bluepeppers@archlinux.us>2012-09-07 22:54:57 +0100
commitd8030d41eb690f8fa6ec4223c218462f50ada2a7 (patch)
tree68b3f7b613d8102dc7c21a535ef3923b7b46f16a /archey3
parent5b78b86ce9b9508b926e612181ceccd8ad1965a1 (diff)
Moved to ordered dicts to allow DE & WMs to have priority and added cinnamon support
Diffstat (limited to 'archey3')
-rwxr-xr-xarchey370
1 files changed, 36 insertions, 34 deletions
diff --git a/archey3 b/archey3
index a3681d3..38bced6 100755
--- a/archey3
+++ b/archey3
@@ -79,40 +79,42 @@ def module_register(name):
return cls
return decorator
-DE_DICT = {'gnome-session': 'GNOME',
- 'ksmserver': 'KDE',
- 'xfce4-session': 'Xfce',
- 'lxsession': 'LXDE',
- '': 'None',
-}
-
-WM_DICT = {
- 'awesome': 'Awesome',
- 'beryl': 'Beryl',
- 'blackbox': 'Blackbox',
- 'dwm': 'DWM',
- 'enlightenment': 'Enlightenment',
- 'fluxbox': 'Fluxbox',
- 'fvwm': 'FVWM',
- 'i3': 'i3',
- 'icewm': 'IceWM',
- 'kwin': 'KWin',
- 'metacity': 'Metacity',
- 'musca': 'Musca',
- 'openbox': 'Openbox',
- 'pekwm': 'PekWM',
- 'ratpoison': 'ratpoison',
- 'scrotwm': 'ScrotWM',
- 'subtle': 'subtle',
- 'wmaker': 'Window Maker',
- 'wmfs': 'Wmfs',
- 'wmii': 'wmii',
- 'xfwm4': 'Xfwm',
- 'emerald': 'Emerald',
- 'compiz': 'Compiz',
- re.compile('xmonad-*'): 'xmonad',
- '': 'None',
-}
+DE_DICT = collections.OrderedDict([
+ ('cinnamon', 'Cinnamon'),
+ ('gnome-session', 'GNOME'),
+ ('ksmserver', 'KDE'),
+ ('xfce4-session', 'Xfce'),
+ ('lxsession', 'LXDE'),
+ ('', 'None'),
+ ])
+
+WM_DICT = collections.OrderedDict([
+ ('awesome', 'Awesome'),
+ ('beryl', 'Beryl'),
+ ('blackbox', 'Blackbox'),
+ ('dwm', 'DWM'),
+ ('enlightenment', 'Enlightenment'),
+ ('fluxbox', 'Fluxbox'),
+ ('fvwm', 'FVWM'),
+ ('i3', 'i3'),
+ ('icewm', 'IceWM'),
+ ('kwin', 'KWin'),
+ ('metacity', 'Metacity'),
+ ('musca', 'Musca'),
+ ('openbox', 'Openbox'),
+ ('pekwm', 'PekWM'),
+ ('ratpoison', 'ratpoison'),
+ ('scrotwm', 'ScrotWM'),
+ ('subtle', 'subtle'),
+ ('wmaker', 'Window Maker'),
+ ('wmfs', 'Wmfs'),
+ ('wmii', 'wmii'),
+ ('xfwm4', 'Xfwm'),
+ ('emerald', 'Emerald'),
+ ('compiz', 'Compiz'),
+ (re.compile('xmonad-*'), 'xmonad'),
+ ('', 'None'),
+ ])
COLORS = {
'black': '0',