Stow scripts

This commit is contained in:
2023-11-25 09:35:34 -05:00
parent 547eb10705
commit b41a4141f2
41 changed files with 2 additions and 2 deletions

View File

@ -0,0 +1,11 @@
#! /bin/bash
mouseState=$(upower -i /org/freedesktop/UPower/devices/battery_hidpp_battery_0)
batteryPercentage=$(echo $mouseState | grep percentage | grep -Po '\d+%')
charging=$(echo $mouseState | grep 'state: charging')
if [ ! -z "$charging" ]; then
echo Charging
else
echo $batteryPercentage
fi