randrctl icon indicating copy to clipboard operation
randrctl copied to clipboard

randrctl does not show currently-selected profile anywhere

Open drws opened this issue 5 years ago • 1 comments

Unfortunately randrctl show always shows name: current, which is probably not the desired output?

randrctl list also does not show which profile is selected. Additional suggestion would be that randrctl list somehow indicates which of the profiles is currently in use (with asterisk symbol or colored output for example).

In the title I am exaggerating a bit. There is a way to see the selected profile by running randrctl in verbose mode, but it is not really a versatile solution. Also a notification is displayed while switching profile, but that information is lost afterwards. In my opinion, a reliable way to query the current profile is needed or am I missing something?

Thank you for this wonderful utility and keep up the great work!

drws avatar Dec 06 '20 09:12 drws

randrctl is per se stateless, we can't store its state anywhere because X configuration can be updated by any other means, which will lead to inconsistency between randrctl state and actual X configuration.

We could print the name of the profile that fully matches current configuration (even if X was configuration by some other means, not randrctl).

Issue noted, but I won't have time to work on it any time soon. Sorry about that.

koiuo avatar Jan 05 '21 18:01 koiuo