From 5f3c6db6a552ef91e468bf89e8ae4a0f87f71d58 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 19 Nov 2015 08:38:46 -0500 Subject: Add sway https://github.com/SirCmpwn/sway --- archey3 | 1 + 1 file changed, 1 insertion(+) diff --git a/archey3 b/archey3 index d4b387e..2781fac 100755 --- a/archey3 +++ b/archey3 @@ -101,6 +101,7 @@ WM_DICT = collections.OrderedDict([ ('fvwm', 'FVWM'), ('herbstluftwm', 'herbstluftwm'), ('i3', 'i3'), + ('sway', 'sway'), ('icewm', 'IceWM'), (re.compile('kwin(_x11|_wayland)?'), 'KWin'), ('metacity', 'Metacity'), -- cgit v1.2.3 From 27fb52e3195c250b6c2b2d04a61ca8598ed2ae53 Mon Sep 17 00:00:00 2001 From: rski Date: Thu, 21 Jan 2016 15:21:41 +0200 Subject: This fixes version to conform to pep 396 Version should be specified in __version__ instead of in the comment where it was. It also makes the --version flag read __version__, as it also had an (older) version number hardcoded. --- archey3 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/archey3 b/archey3 index 2781fac..caf41e6 100755 --- a/archey3 +++ b/archey3 @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# archey3 [version 0.5] +# archey3 # # Copyright 2010 Melik Manukyan # Copyright 2010-2012 Laurie Clark-Michalek @@ -10,6 +10,8 @@ # Simple python script to display an Archlinux logo in ASCII art # Along with basic system information. +__version__ = "0.5" + # Import libraries import collections import subprocess, optparse, re, sys, configparser @@ -825,7 +827,7 @@ def main(): usage='%prog', description="""%prog is a utility to display system info and take\ screenshots""", - version="%prog 0.3") + version="%prog {version}".format(version=__version__)) parser.add_option('-c', '--color', action='store', type='choice', dest='color', choices=('black', -- cgit v1.2.3 From 67950ff62cb61e259bf4983c116c16d6d1575fcc Mon Sep 17 00:00:00 2001 From: pille1842 Date: Tue, 27 Sep 2016 23:06:06 +0200 Subject: Make archey3 recognize a running GNOME desktop archey3 doesn't recognize that GNOME 3.20 is running. That's because there's no process called `gnome-session`. A safer way to see if GNOME is running would be to look for processes called `gnome-shell`. --- archey3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archey3 b/archey3 index caf41e6..0e1f839 100755 --- a/archey3 +++ b/archey3 @@ -84,7 +84,7 @@ def module_register(name): DE_DICT = collections.OrderedDict([ ('cinnamon', 'Cinnamon'), - ('gnome-session', 'GNOME'), + ('gnome-shell', 'GNOME'), ('ksmserver', 'KDE'), ('mate-session', 'MATE'), ('xfce4-session', 'Xfce'), -- cgit v1.2.3 From 427d15e2b221471d4dc3358572bb3dffa2441107 Mon Sep 17 00:00:00 2001 From: pille1842 Date: Wed, 28 Sep 2016 02:21:26 +0200 Subject: Backwards-compatible recognition of newer GNOME sessions --- archey3 | 1 + 1 file changed, 1 insertion(+) diff --git a/archey3 b/archey3 index 0e1f839..403977e 100755 --- a/archey3 +++ b/archey3 @@ -84,6 +84,7 @@ def module_register(name): DE_DICT = collections.OrderedDict([ ('cinnamon', 'Cinnamon'), + ('gnome-session', 'GNOME'), ('gnome-shell', 'GNOME'), ('ksmserver', 'KDE'), ('mate-session', 'MATE'), -- cgit v1.2.3