Vendor the command set the menu and shell depend on
This commit is contained in:
1 parent
9501f2bb4d
commit
c5434026a8
179 files changed
+12414
-54
No files matched your search
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
# blob:summary=Send the low battery warning notification and run battery-low hooks.
|
||||
# blob:args=<percentage>
|
||||
# blob:hidden=true
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
if (($# != 1)); then
|
||||
echo "Usage: blob-battery-low <percentage>" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
level=$1
|
||||
|
||||
blob-notify-send -g -u critical "Time to recharge!" "Battery is down to ${level}%" -i battery-caution -t 30000
|
||||
blob-hook battery-low "$level"
|
||||
Reference in new issue
Block a user