Comments (3)
Hi @frimdo
Thanks for this proposal, I think that this kind of module is indeed a good idea !
Maybe you could call this script external_script
? I have a few remarks wrt your code :
- 1 second cache_timeout is a bit short and would hammer machines, maybe a default of 15 would be better
- output_color could be called
color
, sounds simpler - make sure it runs with both python2 and python3 please and that it is PEP8 compliant
- defaulting to
whoami
script sounds weird since there already is awhoami
module available :) maybe provide no default and handle this properly on the code ?
from py3status.
OK, here is external_script
, everything should work and be ready to go ;-)
The only one problem is line 31, that is too long (PEP8). I don't know how to make it shorter.
Hope you like it.
from py3status.
this module was added in your PR, closing
from py3status.
Related Issues (20)
- Battery Level Notification Doesn't Show Until I3 Bar Is Shown HOT 2
- Battery module error HOT 21
- How to add other text in the format area? (arch_updates) HOT 3
- The getargspec() function got removed in Python 3.11 HOT 2
- py3status not recognising dbus import after PEP668 changes HOT 6
- 100% cpu usage when called outside of a graphical terminal or i3 HOT 6
- 'Clock' module only shows '?' now. HOT 5
- Drop pydbus HOT 3
- Drop mkdocs-simple-hooks
- Drop setuptools HOT 2
- [Proposal] playerctl module HOT 3
- dbus installation problem HOT 2
- Bluetooth module fails on wake up from suspend HOT 15
- https://py3status.readthedocs.io/ is 404 HOT 1
- Manually determine output order of lm_sensors HOT 9
- CI : add workflow to deploy to PyPi on tag push
- arch_updates module not working HOT 5
- Conky module not working with conky 1.16+ HOT 3
- Click on parts of external_script module output HOT 21
- [weather_owm] API 2.5 is dying in June, 2024 HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from py3status.