GithubHelp home page GithubHelp logo

espresso-python's Introduction

Espresso

Espresso keeps your computer awake from the system tray.

Launching Espresso creates a system tray (aka notification area) icon. Click the icon to inhibit power management and keep your computer awake. Click it again to return to normal. Right-click to inhibit for a specific amount of time. Middle-click to quit.

Dependencies

Linux

  • Python 3
  • PyQt5
  • dbus-python

Windows 7

Motivation

Espresso is inspired by Caffeine and uses the same icons as Caffeine for Linux. I wrote Espresso because Caffeine for Linux requires many unwanted dependencies including GTK3.

License

Espresso is freely available under the terms of the GNU Public License, version 3. The license appears in GPLv3.txt. See ICONS.txt for icon licensing.

espresso-python's People

Contributors

flolilo avatar piedar avatar ytknzw avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

espresso-python's Issues

Windows 10 support

Hello!

A few infos:

  • OS: Win 10 (v1803)
    • this corresponds to:
sys.getwindowsversion(major=10, minor=0, build=17134, platform=2, service_pack='')
  • Python: v3.7.4
  • espresso-python: latest (045f856)

As it is, using python .\espresso.py throws:

Traceback (most recent call last):
  File ".\espresso.py", line 81, in <module>
    icon = TrayIcon(inhibitors.AutoSelect(), app);
  File "D:\Downloads\espresso-python-master\inhibitors.py", line 21, in AutoSelect
    raise NotImplementedError("Platform not supported")
NotImplementedError: Platform not supported

So I changed inhibitors.py's line 18 from:

elif platform.system() == "Windows" and sys.getwindowsversion().major >= 6 and sys.getwindowsversion().minor >= 1:

to:

elif platform.system() == "Windows" and (sys.getwindowsversion().major >= 6 and sys.getwindowsversion().minor >= 1) or sys.getwindowsversion().major >= 7:

Another possible solution would be to change it to sys.getwindowsversion().build >= 7601, where 7601 is Windows 7 SP 1.


It now seems to work, but I am still testing.

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.