fix detection of screen dimensions
Signed-off-by: Stacy Harper <contact@stacyharper.net>
This commit is contained in:
parent
5a769d3fa8
commit
b65956b136
1 changed files with 3 additions and 3 deletions
|
@ -26,9 +26,9 @@ case "$(sxmo_wm.sh)" in
|
||||||
orientation="$((transform / 90))"
|
orientation="$((transform / 90))"
|
||||||
;;
|
;;
|
||||||
dwm)
|
dwm)
|
||||||
output="$(xrandr | grep DSI-1 | sed "s|.* \(\d\+\)x\(\d\+\)+.*|\1 \2|")"
|
output="$(xrandr | grep DSI-1 | cut -d' ' -f4)"
|
||||||
height="$(printf %s "$output" | cut -d" " -f2)"
|
height="$(printf %s "$output" | cut -d'x' -f2 | cut -d'+' -f1)"
|
||||||
width="$(printf %s "$output" | cut -d" " -f1)"
|
width="$(printf %s "$output" | cut -d'x' -f1)"
|
||||||
case "$(xrandr | grep DSI-1 | cut -d' ' -f 5)" in
|
case "$(xrandr | grep DSI-1 | cut -d' ' -f 5)" in
|
||||||
right) orientation=1;;
|
right) orientation=1;;
|
||||||
left) orientation=3;;
|
left) orientation=3;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue