From 3fb5d52bef1bf5d602e9143e415d79af0cd25f3b Mon Sep 17 00:00:00 2001 From: Ceda EI <19731116+Ceda-EI@users.noreply.github.com> Date: Thu, 28 Dec 2017 22:34:17 +0530 Subject: [PATCH] Update install to update box_config upon install. --- box_config | 4 ++-- install | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/box_config b/box_config index bfa5803..7970f02 100644 --- a/box_config +++ b/box_config @@ -1,7 +1,7 @@ BOX_TOP_LEFT_X=10 -BOX_TOP_LEFT_Y=610 +BOX_TOP_LEFT_Y=608 BOX_BOTTOM_RIGHT_X=410 -BOX_BOTTOM_RIGHT_Y=720 +BOX_BOTTOM_RIGHT_Y=718 ROUNDENESS=50 NAME_X=600 NAME_Y=10 diff --git a/install b/install index 20ed669..441770e 100755 --- a/install +++ b/install @@ -50,6 +50,12 @@ mkdir -p $HOME/.config echo 1 > $HOME/.config/lock_screen.sta > $HOME/.config/lock_preferences +read y <<<$(xdpyinfo | awk -F'[ x]+' '/dimensions:/{print $4}') +> box_config +echo "BOX_TOP_LEFT_X=10" +echo "BOX_TOP_LEFT_Y=$(($y-160))" +echo "BOX_BOTTOM_RIGHT_X=410" +echo "BOX_BOTTOM_RIGHT_Y=$(($y-50))" echo -e "${blue}Finished Creating Required Files $reset \n" echo -e "${blue}Installation Successful $reset" echo -e "${blue}To set your random lock image themes, edit ~/.config/lock_preferences and enter your themes one per line."