Skip to main content

Timeline for Tell me my screen resolution!

Current License: CC BY-SA 3.0

12 events
when toggle format what by license comment
May 7, 2017 at 1:56 comment added markasoftware And thank you, @manatwork, for letting me learn about line :)
May 6, 2017 at 11:06 comment added manatwork Thank you, @Markasoftware, but actually those are 33 characters. ☺
May 6, 2017 at 11:05 history edited manatwork CC BY-SA 3.0
added 336 characters in body
May 5, 2017 at 23:38 comment added markasoftware 34 chars: xrandr|grep -oP '\d+x\d+(?=.+\*)' or xrandr|grep -oP '\d+x\d+'|head -1
May 3, 2017 at 12:38 comment added Jonathan Allan ...update xrandr|grep * will "work" if the CWD is empty.
May 3, 2017 at 11:22 comment added Jens @JonathanAllan No, it wouldn't. An unescaped * is a glob that the shell expands to all files in the CWD.
May 2, 2017 at 13:37 comment added Jonathan Allan Ah yes it would, not sure what the OP wants in such a scenario though!
May 2, 2017 at 13:36 comment added manatwork Ah, you mean to pick the resolution from the list by the “*” mark? Thought to that possibility, but I am not sure whether would work with multiple displays connected. As I remember, that would list each connected display's current resolution.
May 2, 2017 at 13:29 comment added Jonathan Allan Maybe xrandr|grep *|cut -d' ' -f1? (using the matching line from your paste @TIO)
May 2, 2017 at 13:15 comment added manatwork Sure. But for now the my grep and sed attempts to parse xrandr's output (pastebin.com/uTVcjWCq) were longer.
May 2, 2017 at 13:13 comment added Jonathan Allan I have no bash with a display, would xrandr|grep * work?
May 2, 2017 at 13:12 history answered manatwork CC BY-SA 3.0