Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lightdm-gtk-greeter: add configuration options for clock format and indicators #33032

Merged
merged 1 commit into from Jan 6, 2018
Merged

lightdm-gtk-greeter: add configuration options for clock format and indicators #33032

merged 1 commit into from Jan 6, 2018

Conversation

romildo
Copy link
Contributor

@romildo romildo commented Dec 24, 2017

Motivation for this change

Those are useful configuration options currently missing. In particular with recent versions the power indicator is missing in the panel. With the indicators option it can be enabled.

lightdm-gtk-greeter.conf shows available options.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@vcunat
Copy link
Member

vcunat commented Dec 25, 2017

Perhaps we should default to having more/all of the builtin indicators shown? What do you all think? I wonder what's the reasoning of upstream changing the defaults.

@romildo
Copy link
Contributor Author

romildo commented Dec 25, 2017

Perhaps we should default to having more/all of the builtin indicators shown? What do you all think? I wonder what's the reasoning of upstream changing the defaults.

I am most missing the ~power indicator in the new upstream defaults. I think it could be added to NixOS defaults.

@emmanuelrosa
Copy link
Contributor

Having found no explanation in upstream for the change, I don't know whether to recommend following the upstream defaults, or diverging in order to maintain a consistent NixOS experience.

This pull request takes the former approach, and I think that's fine. The only thing missing is adding instructions to the release notes nixos/doc/manual/release-notes/rl-1803.xml. The example shown in the NixOS module config ["~host" "~spacer" "~clock" "~spacer" "~session" "~language" "~a11y" "~power" ]; restores the indicators perfectly :)

I tested this change in a VM using the indicators shown above and it worked. To be more specific, I tested the shutdown and restart functionality only, since hibernate is not available in my scenario and I don't know what to expect from suspend.

@romildo
Copy link
Contributor Author

romildo commented Dec 25, 2017

The only thing missing is adding instructions to the release notes nixos/doc/manual/release-notes/rl-1803.xml

Done. Please, revise it.

@emmanuelrosa
Copy link
Contributor

There's an extra fullstop in the sentence

If set to null the default clock format is used..

but nevertheless, that's great work, romildo.

@romildo
Copy link
Contributor Author

romildo commented Dec 26, 2017

There's an extra fullstop in the sentence

Fixed.

@vcunat vcunat changed the title lightdm-gtk-greater: add configuration options for clock format and indicators lightdm-gtk-greeter: add configuration options for clock format and indicators Dec 26, 2017
@orivej orivej merged commit bb6f7d4 into NixOS:master Jan 6, 2018
@romildo romildo deleted the fix.lightdm-gtk-greater branch January 6, 2018 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants