Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Change screen resolution on the command line' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Change screen resolution on the command line
Authored by: kirsch on Dec 02, '11 09:49:51AM

It's nice that you formatted the program's output to make it readable to <b>humans</b>... but it's a lot more useful if you make the output easy to integrate with other command line utilities.

For example, you may want to list only one resolution per line so that the result can be easily piped to grep. There are other things like this that you can do. Just some thoughts. Nice utility though.



[ Reply to This | # ]
Change screen resolution on the command line
Authored by: leamanc on Dec 02, '11 09:41:49PM

I'd say if you are skilled enough to be writing shell scripts that pipe the output of one command to another, then I'd venture a guess that you are familiar enough with awk, sed, or even some perl one-liners to get just the resolutions. :-)



[ Reply to This | # ]
Change screen resolution on the command line
Authored by: wallybear on Dec 05, '11 09:48:21AM
If you want want to list only one resolution per line, just add this:

| grep -v "Available" | tr -s "[:space:]" "\n"

to the command, i.e:

screenresolution list | grep -v "Available" | tr -s "[:space:]" "\n"

That's it.

[ Reply to This | # ]