|
|
@ -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;; |
|
|
|