RosettaCodeData/Task/Video-display-modes/Icon/video-display-modes.icon

6 lines
162 B
Text
Raw Permalink Normal View History

2015-02-20 00:35:01 -05:00
procedure main(A)
mode := A[1]
if \mode then system("xrandr -s " || \mode || " >/dev/null")
else system("xrandr -q") # Display available modes
end