7 lines
200 B
Bash
7 lines
200 B
Bash
|
#! /bin/bash
|
||
|
|
||
|
MOUSE_PATH=`qdbus --system org.freedesktop.UPower|grep $1`
|
||
|
PERCENTAGE=`qdbus --system org.freedesktop.UPower ${MOUSE_PATH} org.freedesktop.UPower.Device.Percentage`
|
||
|
|
||
|
echo ${PERCENTAGE}%
|