diff options
author | Laurie Clark-Michalek <bluepeppers@archlinux.us> | 2012-09-07 22:54:57 +0100 |
---|---|---|
committer | Laurie Clark-Michalek <bluepeppers@archlinux.us> | 2012-09-07 22:54:57 +0100 |
commit | d8030d41eb690f8fa6ec4223c218462f50ada2a7 (patch) | |
tree | 68b3f7b613d8102dc7c21a535ef3923b7b46f16a /archey3 | |
parent | 5b78b86ce9b9508b926e612181ceccd8ad1965a1 (diff) |
Moved to ordered dicts to allow DE & WMs to have priority and added cinnamon support
Diffstat (limited to 'archey3')
-rwxr-xr-x | archey3 | 70 |
1 files changed, 36 insertions, 34 deletions
@@ -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', |