feat(display): show text for default resolution; measure time ran

This commit is contained in:
Ayo Ayco 2025-08-23 18:45:23 +02:00
parent 84ebbca10d
commit 0047f58726

View file

@ -34,18 +34,17 @@ function main() {
xrandr --output "$extern" --off --output "$intern" --auto xrandr --output "$extern" --off --output "$intern" --auto
;; ;;
*) *)
echo "Setting display to small mode (1680x1050)"
xrandr --output "$intern" --output "$intern" --mode 1680x1050 xrandr --output "$intern" --output "$intern" --mode 1680x1050
;; ;;
esac esac
return 0 return 0
} }
start_time=$(date +%s%N)
main main
end_time=$(date +%s%N)
#start_time=$(date +%s%N) duration=$((end_time - start_time))
#main duration_ms=$(echo "scale=3; $duration / 1000000" | bc)
#end_time=$(date +%s%N) duration_s=$(echo "scale=3; $duration_ms / 1000" | bc)
#duration=$((end_time - start_time)) echo "Took $duration_s s"
#duration_ms=$(echo "scale=3; $duration / 1000000" | bc)
#duration_s=$(echo "scale=3; $duration_ms / 1000" | bc)
#echo "Took $duration_s s"