Removed zenity dependency and made battery status use speech dispatcher

This commit is contained in:
aaron-gh 2022-11-30 19:08:46 +00:00
parent 21b785108f
commit 0255f94440
2 changed files with 2 additions and 2 deletions

2
i38.sh
View File

@ -9,7 +9,7 @@ i3Path="${XDG_CONFIG_HOME:-$HOME/.config}/i3"
export DIALOGOPTS='--no-lines --visit-items' export DIALOGOPTS='--no-lines --visit-items'
# Check to make sure minimum requirements are installed. # Check to make sure minimum requirements are installed.
for i in dialog grun sgtk-menu yad zenity ; do for i in dialog grun sgtk-menu yad ; do
if ! command -v "$i" &> /dev/null ; then if ! command -v "$i" &> /dev/null ; then
missing+=("$i") missing+=("$i")
fi fi

View File

@ -7,4 +7,4 @@ export stat=`cat $f"/status"`
export cap=`cat $f"/capacity"` export cap=`cat $f"/capacity"`
echo battery $f": "$stat", "$cap"%" echo battery $f": "$stat", "$cap"%"
fi fi
done|zenity --text-info --filename=/dev/stdin --title "Power Status" done|spd-say -e