changes from CLX-10 on Tue Aug 20 16:08:34 IST 2019

This commit is contained in:
Nemo 2019-08-20 16:08:34 +05:30
parent 897a78ef3c
commit 38ed899ff6
3 changed files with 5 additions and 5 deletions

View File

@ -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 \

View File

@ -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%"

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
PATH=$PATH:/home/nemo/projects/scripts/ PATH=$PATH:/home/nemo/projects/scripts/