mirror of
https://github.com/agresdominik/dotfiles.git
synced 2026-04-21 18:05:50 +00:00
New changes
This commit is contained in:
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
KBD_PATH="/org/freedesktop/UPower/devices/keyboard_dev_D7_E8_29_FA_0F_CF"
|
||||
|
||||
if upower -i "$KBD_PATH" 2>/dev/null | grep -q "present:.*yes"; then
|
||||
perc=$(upower -i "$KBD_PATH" | awk '/percentage:/ {print $2}')
|
||||
echo "KBD:$perc"
|
||||
else
|
||||
echo ""
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user