Fixed the config section in install script.

This commit is contained in:
Ceda EI 2017-12-29 10:59:39 +05:30
parent 8a7b5b414d
commit 5726684c00
2 changed files with 9 additions and 6 deletions

View File

@ -3,5 +3,5 @@ BOX_TOP_LEFT_Y=608
BOX_BOTTOM_RIGHT_X=410
BOX_BOTTOM_RIGHT_Y=718
ROUNDENESS=50
NAME_X=600
NAME_X=455
NAME_Y=17

13
install
View File

@ -50,12 +50,15 @@ mkdir -p $HOME/.config
echo 1 > $HOME/.config/lock_screen.sta
> $HOME/.config/lock_preferences
read y <<<$(xdpyinfo | awk -F'[ x]+' '/dimensions:/{print $4}')
read x y <<<$(xdpyinfo | awk -F'[ x]+' '/dimensions:/{print $3, $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 "BOX_TOP_LEFT_X=10" >> box_config
echo "BOX_TOP_LEFT_Y=$(($y-160))" >> box_config
echo "BOX_BOTTOM_RIGHT_X=410" >> box_config
echo "BOX_BOTTOM_RIGHT_Y=$(($y-50))" >> box_config
echo "ROUNDENESS=50" >> box_config
echo "NAME_X=$(( $x / 3 ))" >> box_config
echo "NAME_Y=17" >> box_config
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."