feat(scripts): add config

This commit is contained in:
2025-11-08 19:34:01 -05:00
parent a7319f7d7f
commit d9be0f4e18
44 changed files with 2746 additions and 0 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