Pull low battery warning into shell
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
echo "Enable battery low notifications for laptops"
|
||||
|
||||
if ls /sys/class/power_supply/BAT* &>/dev/null && [[ ! -f ~/.local/share/omarchy/config/systemd/user/omarchy-battery-monitor.service ]]; then
|
||||
mkdir -p ~/.config/systemd/user
|
||||
|
||||
cp ~/.local/share/omarchy/config/systemd/user/omarchy-battery-monitor.* ~/.config/systemd/user/
|
||||
|
||||
systemctl --user daemon-reload
|
||||
systemctl --user enable --now omarchy-battery-monitor.timer || true
|
||||
fi
|
||||
@@ -0,0 +1,5 @@
|
||||
echo "Move low battery notifications into omarchy-shell"
|
||||
|
||||
systemctl --user disable --now omarchy-battery-monitor.timer 2>/dev/null || true
|
||||
rm -f "$HOME/.config/systemd/user/omarchy-battery-monitor.service" "$HOME/.config/systemd/user/omarchy-battery-monitor.timer"
|
||||
systemctl --user daemon-reload 2>/dev/null || true
|
||||
Reference in New Issue
Block a user