Skip to content

Commit

Permalink
Added multimonitor support
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMohawkNinja committed Nov 26, 2020
1 parent b68f366 commit ed92f14
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion getTermInfo
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,24 @@ then
fi
fi

printf "\033]10;#$(cat ~/.config/WallFade/TermColors | tail -1)\007"
for (( i=1; i <= $(cat ~/.config/WallFade/TermColors | wc -l); i=$(( $i + 5 )) ))
do

MonXPos=$(cat ~/.config/WallFade/TermColors | head -$(( $i + 2 )) | tail -1)
MonXSize=$(cat ~/.config/WallFade/TermColors | head -$i | tail -1)
MonYPos=$(cat ~/.config/WallFade/TermColors | head -$(( $i + 3 )) | tail -1)
MonYSize=$(cat ~/.config/WallFade/TermColors | head -$(( $i + 1)) | tail -1)

if [ $X -ge $MonXPos ] && [ $X -lt $(( $MonXPos + $MonXSize )) ]
then
if [ $Y -ge $MonYPos ] && [ $Y -lt $(( $MonYPos + $MonYSize )) ]
then
#echo "$X >= $MonXPos < $(( $MonXPos + $MonXSize ))"
#echo "$Y >= $MonYPos < $(( $MonYPos + $MonYSize ))"
#echo "Setting color to #$(cat ~/.config/WallFade/TermColors | head -$(( $i + 4 )) | tail -1)"
printf "\033]10;#$(cat ~/.config/WallFade/TermColors | head -$(( $i + 4 )) | tail -1)\007"
fi
fi
done

$SHELL

0 comments on commit ed92f14

Please sign in to comment.