Set RGB gamma of secondary monitor

secondscreen=$(xrandr -q | grep " connected" | sed -n '2 p' | cut -f 1 -d ' '); [ "$secondscreen" ] && xrandr --output $secondscreen --gamma 0.6:0.75:1
This command first determines whether a second screen is connected. If this is the case, it sets the screen's RGB gamma via xrandr. Useful for cheap or slightly defective monitors with a tint. In this example a yellowing/champagne color deviation is compensated for by decreasing the red and the green portion of the image.

By: lordtoran
2019-10-28 13:12:08

What Others Think

happy wheels is a side-scrolling.
cruied · 60 weeks and 4 days ago
are there any recent updates with hair extensions austin?
looneyhans · 60 weeks and 4 days ago
In the field of high-quality imaging and in general in printing, it is important to invest here. We used to do such stuff and it is good that we have found a team of experts who can support us with this. Therefore, to get such a business going, namely, development of this product, it is important to link IT solutions. I can tell you that the nearshore development team helped me, and thanks to improved automation, they did well and started their company. Good fortune and good fortune.
Manicopus · 57 weeks ago
thank you for this! baby photography really appreciate you doing this
idasanka · 55 weeks and 6 days ago
private investigator sacramento Wooooow! This is awesome
yeoyeo · 54 weeks and 2 days ago
love the idea! soo glad i found this site! fly
sammm · 51 weeks and 1 day ago
Nice content on your site. Once you get registered on Paid Online Survey Sites then you'll have the extra benefits in your life which will definitely make you happier.
yoursadvice · 26 weeks and 4 days ago
I didn't learn something, because it happens to everyone, and I had it until I found GradeMiners, which helps me in the most unforeseen circumstances, writes the works I need for me
Appencet · 13 weeks and 6 days ago
mapquest directions is a most detailed map with realistic graphics. Find the clear path or whatever position you want in this website.
Farrah0987 · 1 week and 1 day ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: