Removed zenity dependency and made battery status use speech dispatcher
This commit is contained in:
parent
21b785108f
commit
0255f94440
2
i38.sh
2
i38.sh
@ -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
|
||||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user