mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-27 04:09:23 +00:00
Small text tweaks
This commit is contained in:
@ -1,8 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Omarchy Battery Monitor
|
# Designed to be run by systemd timer every 30 seconds and alerts if battery is low
|
||||||
# One-shot script that checks battery and sends notification if needed
|
|
||||||
# Designed to be run by systemd timer every 30 seconds
|
|
||||||
|
|
||||||
BATTERY_THRESHOLD=10
|
BATTERY_THRESHOLD=10
|
||||||
NOTIFICATION_FLAG="/run/user/$UID/omarchy_battery_notified"
|
NOTIFICATION_FLAG="/run/user/$UID/omarchy_battery_notified"
|
||||||
@ -16,7 +14,7 @@ get_battery_state() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
send_notification() {
|
send_notification() {
|
||||||
notify-send -u critical "Battery Low" "Battery level is at ${1}%! Please plug in your charger." -i battery-caution
|
notify-send -u critical "Battery Low" "Time to recharge! (battery is at ${1}%)" -i battery-caution
|
||||||
}
|
}
|
||||||
|
|
||||||
BATTERY_LEVEL=$(get_battery_percentage)
|
BATTERY_LEVEL=$(get_battery_percentage)
|
||||||
|
Reference in New Issue
Block a user