Conversation
|
Thank you for the PRs! I am currently on vacation and don't have my PC with me, so I won't be able to test this for a week or two. Sorry for the delay. |
I'm on vacation as well, so no pressure. I just use my fork in the meantime. |
andreashgk
left a comment
There was a problem hiding this comment.
Great work! The code looks good, I just have some minor style nits.
|
Thanks for the review! I'll look at it when I'm home in a week. |
Co-authored-by: AndreasHGK <36563463+AndreasHGK@users.noreply.github.com>
|
I noticed some weird layout bugs when trying this on my laptop. I'll take a deeper look at them tomorrow. |
That bug was unrelated and I opened #26 for it. |
bb7dfa3 to
fa3090b
Compare
|
The biome configuration doesn't work with the latest version of biome, so I hope manually formatting it worked. |
|
Looks like mithril-shell.nix is also formatted incorrectly according to the CI |
|
Hi, any update on this? I can't format the file in this PR as I don't have push permission I believe |
|
Sorry for the delay. I hope this fixes it! |
|
Thank you! |
Adds a power menu with configurable entries. Repurposes the previous power button. Lets you reboot and power off by default. Other options are not available by default because they have dependencies like systemctl or uwsm.
The entries are configurable via the
settings.jsonor similarily in Nix:{ "powerMenuEntries": [ { "label": "Restart", "command": "reboot", "confirmation": "Are you sure you want to restart the computer?" }, { "label": "Power Off", "command": "shutdown now", "confirmation":"Are you sure you want to power off the computer?" } ] }Here's also a list of useful commands when configuring these entries:
systemctl suspendsystemctl rebootsystemctl reboot --firmware-setupsystemctl poweroffuwsm stophyprctl dispatch exit