fix detection of screen dimensions

Signed-off-by: Stacy Harper <contact@stacyharper.net>
master
Sam Bowlby 3 years ago committed by Stacy Harper
parent 5a769d3fa8
commit b65956b136
No known key found for this signature in database
GPG Key ID: 5BAC92328B7C5D65
  1. 6
      configs/default_hooks/lisgdstart

@ -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…
Cancel
Save