From 38ed899ff6c1834331f7fb75bda3e6b242bb40c4 Mon Sep 17 00:00:00 2001 From: Nemo Date: Tue, 20 Aug 2019 16:08:34 +0530 Subject: [PATCH] changes from CLX-10 on Tue Aug 20 16:08:34 IST 2019 --- i3lock.sh | 6 +++--- lowbatterycron.sh | 2 +- syncrepos | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/i3lock.sh b/i3lock.sh index 68622b6..1bcb84c 100755 --- a/i3lock.sh +++ b/i3lock.sh @@ -43,10 +43,10 @@ lock() { foreground=ffffffff i3lock \ -t -i "$1" \ - --timepos="110:h-70" \ - --datepos="135:h-45" \ + # --timepos="110:h-70" \ + # --datepos="135:h-45" \ --screen=0 \ - --clock --datestr "Type password to unlock..." \ + # --clock --datestr "Type password to unlock..." \ # --blur=sigma \ # --insidecolor=$background \ # --ringcolor=$foreground \ diff --git a/lowbatterycron.sh b/lowbatterycron.sh index 71621b0..7ce2802 100755 --- a/lowbatterycron.sh +++ b/lowbatterycron.sh @@ -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 }'` PERCENT=`echo $(( $REM * 100 / $FULL ))` # 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 echo "Battery is at $PERCENT%" diff --git a/syncrepos b/syncrepos index dc1151a..6cac3a3 100755 --- a/syncrepos +++ b/syncrepos @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash PATH=$PATH:/home/nemo/projects/scripts/