Update script notification
This commit is contained in:
parent
e01e3b0b4b
commit
ae4dbcdfb8
@ -2,13 +2,9 @@
|
||||
<img src="icons/battery-status.png" width="200">
|
||||
</p>
|
||||
|
||||
Alerts you if your battery is overcharged or discharged to extend its performance and health.
|
||||
Alerts you if your battery is overcharged 🌹 or discharged 🥀 to extend its performance and health.
|
||||
|
||||
Cross-platform compatibility:
|
||||
- Windows.
|
||||
- MacOS.
|
||||
- Linux.
|
||||
- FreeBSD.
|
||||
**Only Linux**: Want more compatible systems? I look forward to your pull requests to add more notification systems. Check line 25 in `src/__main__.py`.
|
||||
|
||||
# Preview
|
||||
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 8.2 KiB |
BIN
media/demo.png
BIN
media/demo.png
Binary file not shown.
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 66 KiB |
@ -6,7 +6,6 @@ authors = ["Andros Fenollosa <andros@fenollosa.email>"]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.9"
|
||||
notify-py = "^0.3.3"
|
||||
psutil = "^5.8.0"
|
||||
|
||||
[tool.poetry.dev-dependencies]
|
||||
|
@ -1,2 +0,0 @@
|
||||
notify-py==0.3.3
|
||||
psutil==5.8.0
|
@ -22,8 +22,7 @@ def get_sensor_battery():
|
||||
|
||||
def send_notification(message, title="🔋Battery🔋"):
|
||||
"""Send native notification"""
|
||||
os.system(f"echo '{title}: {message}' > /dev/pts/0"
|
||||
)
|
||||
os.system(f"echo '{title}: {message}' > /dev/pts/0")
|
||||
|
||||
|
||||
def create_file_block():
|
||||
|
Loading…
Reference in New Issue
Block a user