mirror of https://github.com/captn3m0/Scripts.git
changes from CLX-10 on Tue Aug 20 16:08:34 IST 2019
This commit is contained in:
parent
897a78ef3c
commit
38ed899ff6
|
@ -43,10 +43,10 @@ lock() {
|
||||||
foreground=ffffffff
|
foreground=ffffffff
|
||||||
i3lock \
|
i3lock \
|
||||||
-t -i "$1" \
|
-t -i "$1" \
|
||||||
--timepos="110:h-70" \
|
# --timepos="110:h-70" \
|
||||||
--datepos="135:h-45" \
|
# --datepos="135:h-45" \
|
||||||
--screen=0 \
|
--screen=0 \
|
||||||
--clock --datestr "Type password to unlock..." \
|
# --clock --datestr "Type password to unlock..." \
|
||||||
# --blur=sigma \
|
# --blur=sigma \
|
||||||
# --insidecolor=$background \
|
# --insidecolor=$background \
|
||||||
# --ringcolor=$foreground \
|
# --ringcolor=$foreground \
|
||||||
|
|
|
@ -6,7 +6,7 @@ REM=`grep "POWER_SUPPLY_CHARGE_NOW" $BATTERY/uevent | awk -F= '{ print $2 }'`
|
||||||
FULL=`grep "POWER_SUPPLY_CHARGE_FULL_DESIGN" $BATTERY/uevent | awk -F= '{ print $2 }'`
|
FULL=`grep "POWER_SUPPLY_CHARGE_FULL_DESIGN" $BATTERY/uevent | awk -F= '{ print $2 }'`
|
||||||
PERCENT=`echo $(( $REM * 100 / $FULL ))`
|
PERCENT=`echo $(( $REM * 100 / $FULL ))`
|
||||||
# Put the below 2 in your crontab
|
# Put the below 2 in your crontab
|
||||||
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
|
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$UID/bus
|
||||||
XAUTHORITY=/home/nemo/.Xauthority
|
XAUTHORITY=/home/nemo/.Xauthority
|
||||||
|
|
||||||
echo "Battery is at $PERCENT%"
|
echo "Battery is at $PERCENT%"
|
||||||
|
|
Loading…
Reference in New Issue