Update install to update box_config upon install.

This commit is contained in:
Ceda EI 2017-12-28 22:34:17 +05:30
parent ed77e8299e
commit 3fb5d52bef
2 changed files with 8 additions and 2 deletions

View File

@ -1,7 +1,7 @@
BOX_TOP_LEFT_X=10 BOX_TOP_LEFT_X=10
BOX_TOP_LEFT_Y=610 BOX_TOP_LEFT_Y=608
BOX_BOTTOM_RIGHT_X=410 BOX_BOTTOM_RIGHT_X=410
BOX_BOTTOM_RIGHT_Y=720 BOX_BOTTOM_RIGHT_Y=718
ROUNDENESS=50 ROUNDENESS=50
NAME_X=600 NAME_X=600
NAME_Y=10 NAME_Y=10

View File

@ -50,6 +50,12 @@ mkdir -p $HOME/.config
echo 1 > $HOME/.config/lock_screen.sta echo 1 > $HOME/.config/lock_screen.sta
> $HOME/.config/lock_preferences > $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}Finished Creating Required Files $reset \n"
echo -e "${blue}Installation Successful $reset" 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." echo -e "${blue}To set your random lock image themes, edit ~/.config/lock_preferences and enter your themes one per line."