Update src folder
This commit is contained in:
parent
12bea24783
commit
2cc7c87cc5
@ -27,7 +27,7 @@ poetry install
|
||||
# Run
|
||||
|
||||
```bash
|
||||
poetry run python3 alert_battery_to_maintain_health/__init__.py
|
||||
poetry run python3 src
|
||||
```
|
||||
|
||||
# Cron
|
||||
@ -39,5 +39,5 @@ crontab -e
|
||||
Add the following:
|
||||
|
||||
```bash
|
||||
* * * * * cd [absolute path folder] && poetry run python3 alert_battery_to_maintain_health/__init__.py
|
||||
* * * * * 'cd [absolute path folder] && poetry run python3 src'
|
||||
```
|
||||
|
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 8.2 KiB |
@ -16,7 +16,7 @@ PATH_FILE_NAME_TEMP = os.path.join(gettempdir(), FILE_NAME_TEMP)
|
||||
NOTIFICATION = Notify(
|
||||
default_notification_title="Alert battery",
|
||||
default_application_name="Alert battery",
|
||||
default_notification_icon=os.path.abspath("alert_battery_to_maintain_health/icons/battery-status.png"),
|
||||
default_notification_icon=os.path.abspath("icons/battery-status.png"),
|
||||
)
|
||||
|
||||
|
||||
@ -67,4 +67,4 @@ if __name__ == '__main__':
|
||||
|
||||
# Unlock to warned
|
||||
elif LIMIT_BELOW_BATTERY < get_battery_percent() < LIMIT_ABOVE_BATTERY:
|
||||
os.remove(PATH_FILE_NAME_TEMP)
|
||||
os.remove(PATH_FILE_NAME_TEMP)
|
Loading…
Reference in New Issue
Block a user