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.

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

What Others Think

happy wheels is a side-scrolling.
cruied · 13 weeks and 5 days ago
are there any recent updates with hair extensions austin?
looneyhans · 13 weeks and 5 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 · 10 weeks and 1 day ago
thank you for this! baby photography really appreciate you doing this
idasanka · 9 weeks ago
private investigator sacramento Wooooow! This is awesome
yeoyeo · 7 weeks and 3 days ago
love the idea! soo glad i found this site! fly
sammm · 4 weeks and 2 days 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?

commandlinefu.com 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.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

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: