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

feat: ujust command to toggle Tailscale #1477

Merged
merged 14 commits into from
Jul 8, 2024
Merged

Conversation

Raindrac
Copy link
Collaborator

@Raindrac Raindrac commented Jul 2, 2024

This PR adds a ujust command to toggle the tailscaled service. Because the tailscaled service is active in the background even if the user hasn't set up Tailscale, it increases power usage and battery consumption regardless of whether Tailscale is in use. Users who don't want the service running in the background can now disable it, and this lays the groundwork for making Tailscale opt-in rather than opt-out.

Tested locally on Bluefin. This is my first ujust contribution and the first time I've wrote a bash script, so corrections are welcome.

@Raindrac Raindrac requested a review from castrojo as a code owner July 2, 2024 04:39
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. enhancement New feature or request labels Jul 2, 2024
@Raindrac Raindrac marked this pull request as draft July 2, 2024 06:13
@Raindrac
Copy link
Collaborator Author

Raindrac commented Jul 2, 2024

Converted to draft. Because only toggling the service might cause confusion, I'm going to make this command toggle the extension and hook it up to gum as well.

@Raindrac Raindrac changed the title feat: ujust command to toggle tailscaled service feat: ujust command to toggle Tailscale Jul 2, 2024
@Raindrac
Copy link
Collaborator Author

Raindrac commented Jul 2, 2024

I've tested the updated script on a local build. It now enables or disables the Tailscale QS extension for Gnome, and when Tailscale is enabled, it notifies the user that they may have to set it up and links them to the documentation. Ready for review!

@Raindrac Raindrac marked this pull request as ready for review July 2, 2024 07:03
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Jul 2, 2024
@storopoli
Copy link
Contributor

That's great! Looking forward to having this merged.

@Raindrac
Copy link
Collaborator Author

Raindrac commented Jul 5, 2024

Alrighty, I'm looking into why the just build check is failing now 🤔

@Raindrac
Copy link
Collaborator Author

Raindrac commented Jul 5, 2024

That should work, I think! It passes the just check locally now. It was just a line ending 😞

just/bluefin-system.just Outdated Show resolved Hide resolved
just/bluefin-system.just Show resolved Hide resolved
just/bluefin-system.just Show resolved Hide resolved
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jul 8, 2024
@m2Giles m2Giles enabled auto-merge July 8, 2024 19:06
@castrojo castrojo disabled auto-merge July 8, 2024 20:46
@castrojo castrojo merged commit 9f914cf into ublue-os:main Jul 8, 2024
50 of 52 checks passed
@Raindrac Raindrac deleted the tailtoggle branch July 9, 2024 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants