Code Monkey home page Code Monkey logo

archey3's People

Contributors

dcelasun avatar ddevault avatar djmelik avatar graysky2 avatar irgendwie avatar lclarkmichalek avatar mikeframpo avatar npv0 avatar pille1842 avatar rski avatar vendion avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

archey3's Issues

xfce 4.10 support

The current archey3 doesn't detect xfce4 4.10 - it sees it as 4.8

fs(/)

In the default config and with a config file, fs(/) doesn't work.
But fs(/home) or fs(/boot) works.

Syntax Error

After installing, I get this error trying to run it:

$ archey3
  File "/usr/bin/archey3", line 149
    self.arg1, self.arg2, self.arg3, *_ = tuple(args) + ('', '', '')
                                     ^
SyntaxError: invalid syntax

Error while taking screenshot~

Screenshotting in
5...4...3...2...1...Say Cheese!
Traceback (most recent call last):
  File "/usr/bin/archey3", line 860, in <module>
    main()
  File "/usr/bin/archey3", line 857, in main
    archey.run(options.screenshot)
  File "/usr/bin/archey3", line 722, in run
    screenshot(self.state)
  File "/usr/bin/archey3", line 628, in screenshot
    ctime().replace(' ','_')).split(" "))
  File "/usr/lib/python3.3/subprocess.py", line 542, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib/python3.3/subprocess.py", line 523, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib/python3.3/subprocess.py", line 824, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.3/subprocess.py", line 1448, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'import'

Disabling the screenshot

I'm having an issue disabling the screenshot. Is there a built in method for this? So far, the best I've found is to set the screenshot_command to an empty echo, but that still goes through the motions.

Sort out sensors module

Currently the sensors display module works (worked) for one case, the hardware that archey3 was origionaly written on. It may, or may not work for anyone elses hardware setup.

Some bugs (RAM, WM, EDITOR)

               +                OS: Arch Linux x86_64
               #                Hostname: rc-730
              ###               Kernel Release: 3.17.4-1-ck
             #####              Uptime: 1 day, 16:38
             ######             WM: None
            ; #####;            DE: GNOME
           +##.#####            Packages: 709
          +##########           RAM: -2651 MB / 5872 MB
         #############;         Processor Type: Intel(R) Core(TM) i7-2670QM CPU @ 2.20GHz
        ###############+        $EDITOR: nano
       #######   #######        Root: 11G / 725G (1%) (ext4)
     .######;     ;###;`".      
    .#######;     ;#####.       
    #########.   .########`     
   ######'           '######    
  ;####                 ####;   
  ##'                     '##   
 #'                         `#  

RAM have negative value.
WM in Gnome3 is a Mutter.
And "$EDITOR" - why not "Editor"... without "$" .

Version "Archey3" is "0.5-3" from Arch Linux Official Repository.

herbstluftwm

Hi! When you have time it would be great if you could add detection for this beautiful WM, thanks.

Config File Documentation/Spelling Mistakes/sensors module

This is an iconic package in the arch linux community, and as such it really ought to be cleaned up a bit. There are numerous spelling mistakes including some that are critical for configuration (eg persentage). When I read things like that in config documentation I initially correct it in my confs to percentage, only to find its actually hard coded as an incorrect spelling and won't work.

There needs to at least be a man page with all the config arguments and options supplied, as the website is full of inaccuracies and difficult to navigate/ugly.

Finally, the sensors module swings between sensor and sensors all over the place and is sloppy and difficult to figure out. This should not be a difficult program to configure, especially as it tends to be the first piece of eye-candy that most arch users install.

New python packages breaks archey3

Quite a few packages were pushed into their respective repos recently. Archey3 is broken as a result:

% archey3
/usr/bin/archey3:862: DeprecationWarning: The SafeConfigParser class has been renamed to ConfigParser in Python 3.2. This alias will be removed in future versions. Use ConfigParser directly instead.
  config = ArcheyConfigParser()
Traceback (most recent call last):
  File "/usr/bin/archey3", line 805, in parse_display
    raise StopIteration
StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/bin/archey3", line 869, in <module>
    main()
  File "/usr/bin/archey3", line 866, in main
    archey.run(options.screenshot)
  File "/usr/bin/archey3", line 728, in run
    print(self.render())
  File "/usr/bin/archey3", line 734, in render
    results = self.prepare_results()
  File "/usr/bin/archey3", line 753, in prepare_results
    for cls_name, args in self.parse_display():
RuntimeError: generator raised StopIteration

To help narrow it down:

% grep 2018-08-06 /var/log/pacman.log
[2018-08-06 15:19] [PACMAN] Running 'pacman -Syu'
[2018-08-06 15:19] [PACMAN] synchronizing package lists
[2018-08-06 15:19] [PACMAN] starting full system upgrade
[2018-08-06 15:20] [ALPM] transaction started
[2018-08-06 15:20] [ALPM] upgraded linux-api-headers (4.16.1-1 -> 4.17.11-1)
[2018-08-06 15:20] [ALPM] warning: /etc/locale.gen installed as /etc/locale.gen.pacnew
[2018-08-06 15:20] [ALPM] upgraded glibc (2.27-3 -> 2.28-1)
[2018-08-06 15:20] [ALPM-SCRIPTLET] Generating locales...
[2018-08-06 15:20] [ALPM-SCRIPTLET]   en_US.UTF-8... done
[2018-08-06 15:20] [ALPM-SCRIPTLET] Generation complete.
[2018-08-06 15:20] [ALPM] upgraded gcc-libs (8.1.1+20180531-1 -> 8.2.0-2)
[2018-08-06 15:20] [ALPM] upgraded libutil-linux (2.32.1-1 -> 2.32.1-2)
[2018-08-06 15:20] [ALPM] upgraded perl (5.26.2-2 -> 5.28.0-1)
[2018-08-06 15:20] [ALPM] upgraded libldap (2.4.46-1 -> 2.4.46-2)
[2018-08-06 15:20] [ALPM] upgraded python (3.6.6-1 -> 3.7.0-3)
[2018-08-06 15:20] [ALPM] upgraded archey3 (0.5-7 -> 0.5-8)
[2018-08-06 15:20] [ALPM] upgraded libxml2 (2.9.8-2 -> 2.9.8-3)
[2018-08-06 15:20] [ALPM] upgraded bind-tools (9.13.0-2 -> 9.13.0-3)
[2018-08-06 15:20] [ALPM] upgraded binutils (2.30-5 -> 2.31.1-1)
[2018-08-06 15:20] [ALPM] upgraded boost-libs (1.67.0-5 -> 1.67.0-6)
[2018-08-06 15:20] [ALPM] upgraded btrfs-progs (4.17-1 -> 4.17-2)
[2018-08-06 15:20] [ALPM] upgraded device-mapper (2.02.180-1 -> 2.02.181-1)
[2018-08-06 15:20] [ALPM] upgraded cryptsetup (2.0.3-2 -> 2.0.4-1)
[2018-08-06 15:20] [ALPM] upgraded distcc (3.3-2 -> 3.3-3)
[2018-08-06 15:20] [ALPM] upgraded util-linux (2.32.1-1 -> 2.32.1-2)
[2018-08-06 15:20] [ALPM] upgraded xcb-proto (1.13-1 -> 1.13-2)
[2018-08-06 15:20] [ALPM] upgraded llvm-libs (6.0.1-1 -> 6.0.1-2)
[2018-08-06 15:20] [ALPM] upgraded libibus (1.5.18-1 -> 1.5.18-2)
[2018-08-06 15:20] [ALPM] upgraded gcc (8.1.1+20180531-1 -> 8.2.0-2)
[2018-08-06 15:20] [ALPM] upgraded libxkbcommon (0.8.0-2 -> 0.8.2-1)
[2018-08-06 15:20] [ALPM] upgraded libtool (2.4.6+40+g6ca5e224-7 -> 2.4.6+42+gb88cebd5-1)
[2018-08-06 15:20] [ALPM] upgraded libproxy (0.4.15-6 -> 0.4.15-8)
[2018-08-06 15:20] [ALPM] upgraded gpgme (1.11.1-1 -> 1.11.1-2)
[2018-08-06 15:20] [ALPM] upgraded libbytesize (1.3-1 -> 1.3-2)
[2018-08-06 15:20] [ALPM] upgraded lvm2 (2.02.180-1 -> 2.02.181-1)
[2018-08-06 15:20] [ALPM] upgraded volume_key (0.3.10-1 -> 0.3.11-2)
[2018-08-06 15:20] [ALPM] upgraded libblockdev (2.18-1 -> 2.18-2)
[2018-08-06 15:20] [ALPM] upgraded libgexiv2 (0.10.8-1 -> 0.10.8-2)
[2018-08-06 15:20] [ALPM] upgraded libplist (2.0.0+11+gec9ba8b-1 -> 2.0.0+11+gec9ba8b-2)
[2018-08-06 15:20] [ALPM] upgraded liblouis (3.6.0-1 -> 3.6.0-2)
[2018-08-06 15:20] [ALPM] upgraded libxkbcommon-x11 (0.8.0-2 -> 0.8.2-1)
[2018-08-06 15:20] [ALPM] upgraded mutagen (1.41.0-1 -> 1.41.0-2)
[2018-08-06 15:20] [ALPM] upgraded pyalpm (0.8.4-1 -> 0.8.4-2)
[2018-08-06 15:20] [ALPM] upgraded python-pyelftools (0.24-2 -> 0.24-3)
[2018-08-06 15:20] [ALPM] upgraded namcap (3.2.7-2 -> 3.2.8-2)
[2018-08-06 15:20] [ALPM] upgraded pass (1.7.2-1 -> 1.7.3-1)
[2018-08-06 15:20] [ALPM] upgraded perl-clone (0.39-4 -> 0.39-5)
[2018-08-06 15:20] [ALPM] upgraded perl-date-manip (6.72-1 -> 6.72-2)
[2018-08-06 15:20] [ALPM] upgraded perl-dbi (1.641-1 -> 1.641-2)
[2018-08-06 15:20] [ALPM] upgraded perl-encode-locale (1.05-3 -> 1.05-4)
[2018-08-06 15:20] [ALPM] upgraded perl-error (0.17026-1 -> 0.17026-2)
[2018-08-06 15:20] [ALPM] upgraded perl-http-date (6.02-4 -> 6.02-5)
[2018-08-06 15:20] [ALPM] upgraded perl-file-listing (6.04-4 -> 6.04-5)
[2018-08-06 15:20] [ALPM] upgraded perl-html-tagset (3.20-6 -> 3.20-7)
[2018-08-06 15:20] [ALPM] upgraded perl-html-parser (3.72-5 -> 3.72-6)
[2018-08-06 15:20] [ALPM] upgraded perl-lwp-mediatypes (6.02-4 -> 6.02-5)
[2018-08-06 15:20] [ALPM] upgraded perl-uri (1.74-1 -> 1.74-2)
[2018-08-06 15:20] [ALPM] upgraded perl-io-html (1.001-3 -> 1.001-4)
[2018-08-06 15:20] [ALPM] upgraded perl-http-message (6.18-1 -> 6.18-2)
[2018-08-06 15:20] [ALPM] upgraded perl-http-cookies (6.04-2 -> 6.04-3)
[2018-08-06 15:20] [ALPM] upgraded perl-http-daemon (6.01-5 -> 6.01-6)
[2018-08-06 15:20] [ALPM] upgraded perl-http-negotiate (6.01-4 -> 6.01-5)
[2018-08-06 15:20] [ALPM] upgraded perl-image-exiftool (11.01-1 -> 11.01-2)
[2018-08-06 15:20] [ALPM] upgraded perl-net-http (6.18-1 -> 6.18-2)
[2018-08-06 15:20] [ALPM] upgraded perl-www-robotrules (6.02-4 -> 6.02-5)
[2018-08-06 15:20] [ALPM] upgraded perl-try-tiny (0.30-1 -> 0.30-2)
[2018-08-06 15:20] [ALPM] upgraded perl-libwww (6.33-1 -> 6.33-2)
[2018-08-06 15:20] [ALPM] upgraded perl-timedate (2.30-4 -> 2.30-5)
[2018-08-06 15:20] [ALPM] upgraded perl-mailtools (2.20-1 -> 2.20-2)
[2018-08-06 15:20] [ALPM] upgraded perl-xml-libxml (2.0132-1 -> 2.0132-2)
[2018-08-06 15:20] [ALPM] upgraded python-sip-pyqt5 (4.19.12-4 -> 4.19.12-5)
[2018-08-06 15:20] [ALPM] upgraded pyqt5-common (5.11.2-1 -> 5.11.2-2)
[2018-08-06 15:20] [ALPM] upgraded python-pyqt5 (5.11.2-1 -> 5.11.2-2)
[2018-08-06 15:20] [ALPM] upgraded python-mutagen (1.41.0-1 -> 1.41.0-2)
[2018-08-06 15:20] [ALPM] upgraded pygobject2-devel (2.28.7-1 -> 2.28.7-2)
[2018-08-06 15:20] [ALPM] upgraded pyqt4-common (4.12.1-1 -> 4.12.1-2)
[2018-08-06 15:20] [ALPM] upgraded python-appdirs (1.4.3-1 -> 1.4.3-2)
[2018-08-06 15:20] [ALPM] upgraded python-asn1crypto (0.24.0-1 -> 0.24.0-2)
[2018-08-06 15:20] [ALPM] upgraded python-ply (3.11-1 -> 3.11-2)
[2018-08-06 15:20] [ALPM] upgraded python-pycparser (2.18-1 -> 2.18-2)
[2018-08-06 15:20] [ALPM] upgraded python-cffi (1.11.5-1 -> 1.11.5-2)
[2018-08-06 15:20] [ALPM] upgraded python-coverage (4.5.1-1 -> 4.5.1-2)
[2018-08-06 15:20] [ALPM] upgraded python-six (1.11.0-1 -> 1.11.0-3)
[2018-08-06 15:20] [ALPM] upgraded python-idna (2.7-2 -> 2.7-3)
[2018-08-06 15:20] [ALPM] upgraded python-pyparsing (2.2.0-1 -> 2.2.0-2)
[2018-08-06 15:20] [ALPM] upgraded python-packaging (17.1-1 -> 17.1-2)
[2018-08-06 15:20] [ALPM] upgraded python-setuptools (1:39.2.0-2 -> 1:39.2.0-3)
[2018-08-06 15:20] [ALPM] upgraded python-cryptography (2.2.2-1 -> 2.3-1)
[2018-08-06 15:20] [ALPM] upgraded python-dbus-common (1.2.8-1 -> 1.2.8-2)
[2018-08-06 15:20] [ALPM] upgraded python-dbus (1.2.8-1 -> 1.2.8-2)
[2018-08-06 15:20] [ALPM] upgraded python-entrypoints (0.2.3-1 -> 0.2.3-2)
[2018-08-06 15:20] [ALPM] upgraded python-jeepney (0.3.1-1 -> 0.3.1-2)
[2018-08-06 15:20] [ALPM] upgraded python-secretstorage (3.0.1-1 -> 3.0.1-2)
[2018-08-06 15:20] [ALPM] upgraded python-keyring (13.2.1-1 -> 13.2.1-2)
[2018-08-06 15:20] [ALPM] upgraded python-lxml (4.2.3-1 -> 4.2.4-1)
[2018-08-06 15:20] [ALPM] upgraded python-sip (4.19.12-4 -> 4.19.12-5)
[2018-08-06 15:20] [ALPM] upgraded python-pyqt4 (4.12.1-1 -> 4.12.1-2)
[2018-08-06 15:20] [ALPM] upgraded python2-appdirs (1.4.3-1 -> 1.4.3-2)
[2018-08-06 15:20] [ALPM] upgraded python2-asn1crypto (0.24.0-1 -> 0.24.0-2)
[2018-08-06 15:20] [ALPM] upgraded python2-attrs (18.1.0-1 -> 18.1.0-2)
[2018-08-06 15:20] [ALPM] upgraded python2-pyparsing (2.2.0-1 -> 2.2.0-2)
[2018-08-06 15:20] [ALPM] upgraded python2-six (1.11.0-1 -> 1.11.0-3)
[2018-08-06 15:20] [ALPM] upgraded python2-packaging (17.1-1 -> 17.1-2)
[2018-08-06 15:20] [ALPM] upgraded python2-setuptools (1:39.2.0-2 -> 1:39.2.0-3)
[2018-08-06 15:20] [ALPM] upgraded python2-automat (0.7.0-1 -> 0.7.0-2)
[2018-08-06 15:20] [ALPM] upgraded python2-cairo (1.17.0-1 -> 1.17.0-2)
[2018-08-06 15:20] [ALPM] upgraded python2-ply (3.11-1 -> 3.11-2)
[2018-08-06 15:20] [ALPM] upgraded python2-pycparser (2.18-1 -> 2.18-2)
[2018-08-06 15:20] [ALPM] upgraded python2-cffi (1.11.5-1 -> 1.11.5-2)
[2018-08-06 15:20] [ALPM] upgraded python2-chardet (3.0.4-1 -> 3.0.4-2)
[2018-08-06 15:20] [ALPM] upgraded python2-click (6.7-1 -> 6.7-2)
[2018-08-06 15:20] [ALPM] upgraded python2-constantly (15.1.0-2 -> 15.1.0-3)
[2018-08-06 15:20] [ALPM] upgraded python2-idna (2.7-2 -> 2.7-3)
[2018-08-06 15:20] [ALPM] upgraded python2-cryptography (2.2.2-1 -> 2.3-1)
[2018-08-06 15:20] [ALPM] upgraded python2-gobject2 (2.28.7-1 -> 2.28.7-2)
[2018-08-06 15:20] [ALPM] upgraded python2-hyperlink (18.0.0-1 -> 18.0.0-2)
[2018-08-06 15:20] [ALPM] upgraded python2-zope-interface (4.5.0-1 -> 4.5.0-2)
[2018-08-06 15:20] [ALPM] installed python2-pyhamcrest (1.9.0-3)
[2018-08-06 15:20] [ALPM] upgraded python2-twisted (18.4.0-1 -> 18.7.0-2)
[2018-08-06 15:20] [ALPM] upgraded python2-incremental (17.5.0-1 -> 17.5.0-2)
[2018-08-06 15:20] [ALPM] upgraded python2-pyasn1 (0.4.3-1 -> 0.4.3-2)
[2018-08-06 15:20] [ALPM] upgraded python2-pyopenssl (18.0.0-1 -> 18.0.0-2)
[2018-08-06 15:20] [ALPM] upgraded python2-pyasn1-modules (0.2.2-1 -> 0.2.2-2)
[2018-08-06 15:20] [ALPM] upgraded python2-service-identity (17.0.0-1 -> 17.0.0-2)
[2018-08-06 15:20] [ALPM] upgraded python2-xdg (0.26-1 -> 0.26-2)
[2018-08-06 15:20] [ALPM] transaction completed

errors in calculating RAM

Recently, free RAM shows up as a negative number.

archey3-0.5-2

               +                
               #                
              ###               
             #####              OS: Arch Linux x86_64
             ######             Hostname: ease
            ; #####;            Kernel Release: 3.17.2-1-custom
           +##.#####            Uptime: 0:01
          +##########           WM: Xfwm
         #############;         DE: Xfce
        ###############+        Packages: 748
       #######   #######        RAM: -31025 MB / 31737 MB
     .######;     ;###;`".      Root: 4.4G / 117G (3%) (ext4)
    .#######;     ;#####.       Boot: 42M / 477M (8%) (ext4)
    #########.   .########`     Data: 545G / 2.1T (25%) (ext4)
   ######'           '######    
  ;####                 ####;   
  ##'                     '##   
 #'                         `#  

squishy@ease ~ % free -m
              total        used        free      shared  buff/cache   available
Mem:          31737         362       30773         180         601       30982
Swap:             0           0           0

archey3 next steps

Hi @lclarkmichalek,

Supporters from the fork archey4 want to merge my archey3-git AUR package with archey4 and take the votes and comments related to your package.

There was a request of the archey3-git package for deletion. It does have 171 votes that show how your program is appreciated.

What is your take on this? Do you:

  • want to archive this archey3 repo which may have as a consequence the deletion of archey3-git AUR package;
  • have any intent to continue developing archey3 at some point in time;
  • support the fork archey4 in some way.

$EDITOR in zsh

Archey3 is not picking up the $EDITOR environment variable from zsh.
The command: echo $EDITOR gives output vim, but archey gives me None.
If I set the $EDITOR variable in .bashrc and run: bash -c -i archey3 from zsh, I get the correct output.

Should get the OS name from os-release(5)

Currently the distro module gets the OS name by guessing Arch Linux if /etc/pacman.conf exists, and falling back to uname -o otherwise.

I propose that (per man 5 os-release) it check whichever of /etc/os-release and /usr/lib/os-release, is found first; and use PRETTY_NAME, fall back to NAME, fall back to ID, then finally fall back to uname -o.

Relatedly, having the default color be os-release:ANSI_COLOR wouldn't be a bad idea either.

Run Error

I run this script and it output some error, how to fix it ?

ArchLinux ~/archey3 # archey3
Traceback (most recent call last):
File "/usr/bin/archey3", line 5, in
pkg_resources.run_script('Archey3==0.4', 'archey3')
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 528, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1400, in run_script
script_code = compile(script_text,script_filename,'exec')
File "/usr/lib/python2.7/site-packages/Archey3-0.4-py2.7.egg/EGG-INFO/scripts/archey3", line 149
self.arg1, self.arg2, self.arg3, *_ = tuple(args) + ('', '', '')
^
SyntaxError: invalid syntax
ArchLinux ~/archey3 :( #

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.