Fix gps location setting bug
This commit is contained in:
parent
67e9320242
commit
46a8999e0f
1 changed files with 4 additions and 4 deletions
|
@ -84,10 +84,10 @@ gpslatlonget() {
|
||||||
echo "$LAT" "$LON" "$ZOOM"
|
echo "$LAT" "$LON" "$ZOOM"
|
||||||
}
|
}
|
||||||
gpslatlonset() {
|
gpslatlonset() {
|
||||||
CORDS="$(echo "$@" | tr -d ',°')"
|
COORDS="$(echo "$@" | tr -d ',°' | awk '{$1=$1};1')"
|
||||||
LAT="$(echo "$CORDS" | cut -d' ' -f1)"
|
LAT="$(echo "$COORDS" | cut -d' ' -f1)"
|
||||||
LON="$(echo "$CORDS" | cut -d' ' -f2)"
|
LON="$(echo "$COORDS" | cut -d' ' -f2)"
|
||||||
ZOOM="$(echo "$CORDS" | cut -d' ' -f3)"
|
ZOOM="$(echo "$COORDS" | cut -d' ' -f3)"
|
||||||
[ -z "$ZOOM" ] && ZOOM=10
|
[ -z "$ZOOM" ] && ZOOM=10
|
||||||
WINW="$(
|
WINW="$(
|
||||||
xwininfo -id "$(xdotool getactivewindow)" | grep -E '^\s*Width' | cut -d: -f2
|
xwininfo -id "$(xdotool getactivewindow)" | grep -E '^\s*Width' | cut -d: -f2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue