Fix awk usage for *BSD
This commit is contained in:
parent
a0274e3568
commit
9683d402c9
2
xkcdlock
2
xkcdlock
@ -218,7 +218,7 @@ screen_get_smallest_resolution() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
screen_get_highest_resolution() {
|
screen_get_highest_resolution() {
|
||||||
local res=$(xrandr -q | awk '/*/ {print $1}' \
|
local res=$(xrandr -q | awk '/\*/ {print $1}' \
|
||||||
| awk 'BEGIN{FS="x";} NR==1 || $1>max {line=$0; max=$1}; END {print line}')
|
| awk 'BEGIN{FS="x";} NR==1 || $1>max {line=$0; max=$1}; END {print line}')
|
||||||
|
|
||||||
echo "$res"
|
echo "$res"
|
||||||
|
Loading…
Reference in New Issue
Block a user