We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 527a956 + 8eb8e40 commit e32f56cCopy full SHA for e32f56c
scriptmodules/supplementary/runcommand/runcommand.sh
@@ -397,9 +397,9 @@ function get_x11_mode_info() {
397
398
if [[ -z "$mode_id" ]]; then
399
# determine current output
400
- mode_id[0]="$($XRANDR --verbose | awk '/ connected/ { print $1;exit }')"
+ mode_id[0]="$($XRANDR --verbose | awk '/ connected.*\(0x[a-f0-9]{1,}\)/ { print $1;exit }')"
401
# determine current mode id & strip brackets
402
- mode_id[1]="$($XRANDR --verbose | awk '/ connected/ {print;exit}' | grep -o "(0x[a-f0-9]\{1,\})")"
+ mode_id[1]="$($XRANDR --verbose | awk '/ connected.*\(0x[a-f0-9]{1,}\)/ {print;exit}' | grep -o "(0x[a-f0-9]\{1,\})")"
403
mode_id[1]="$(echo ${mode_id[1]:1:-1})"
404
fi
405
0 commit comments