ktns-dotfiles-2025/runit-service-scripts/batsignald/run

9 lines
324 B
Bash

#!/usr/sbin/env bash
appname=(-D /usr/sbin/zenity\ --warning\ --title=\"BATTERY\ LOW\"\ --ok-label=\"OH\ FUCK\"\ --icon=battery-low\ --text=\"Plug\ in\ or\ turn\ off.\ You\ got\ like\ 1\ minute,\ Tops\")
opts=( -w 10 -c 9 -d 8 -m +30 "${appname[@]}" )
exec chpst -e "$TURNSTILE_ENV_DIR" /usr/sbin/batsignal "${opts[@]}"