koiuo / randrctl

Profile based screen manager for X
GNU General Public License v3.0
47 stars 12 forks source link

randrctl does not show currently-selected profile anywhere #26

Open drws opened 3 years ago

drws commented 3 years ago

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!

koiuo commented 3 years ago

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.