Skip to content

Conversation

bigbruno
Copy link

First of all, congratulations on this program, which manages to have good performance, a nice appearance, and a lot of information.

We have started using it by default in the BigLinux distribution, but I would like to use it as the Ctrl+Alt+Del shortcut, which by default in Plasma shows the shutdown dialog. However, Plasma can occasionally freeze, and it is common for users to resort to Ctrl+Alt+Del in those moments. It would be good to have options in this interface to log out, restart, or shut down, preferably using direct system commands that do not depend on the desktop environment functioning correctly. This way, it could also serve as an alternative when the system is not responding as it should.

Thank you for making this project available, and I hope these suggestions/improvements can help make it even more robust and useful!

Captura de imagem_20250730_075248 image image image image

…hen using KWin, it also includes a built-in feature similar to xkill, which changes the mouse cursor to an X that, when clicking on a window, forcefully closes the application.
@nokyan
Copy link
Owner

nokyan commented Jul 30, 2025

Hi, thank you for your submission. Very cool that you're using Resources for your distro, I'm glad you like it. :)

I'm not oppsoed to Resources being able to shut down (reboot, etc.) the system, though I don't think that belongs in the processes view. Instead, I think a better place would be the hamburger menu in the sidebar. If they're in the hamburger menu, they also don't need to be togglable in the settings as they're not as easy to reach anymore. It could look kinda like this:
image
Also, the current implementation does not take Flatpak into account: pressing any of those buttons will just write an error in the logs when using Flatpak. Resources is already allowed to run commands on the host outside the Flatpak sandbox like in src/utils/memory.rs in the virtual_dmi() function, so that code could probably be reused for that.
Code related to shutting down the system etc. is also probably best in its own file (src/utils/system_actions.rs maybe) since it doesn't really have anything to do with processes.
I think it'd make sense to try systemctl shutdown and systemctl reboot before falling back to plain shutdown and reboot since shutdown and reboot are not necessarily linked to systemctl-commands if I recall correctly.

I'm not sure about the KWin kill window action, Ctrl+Alt+Esc already seems to be a shortcut for that on KDE and I believe this functionality should mostly already be covered by the apps view, since apps usually have a window and windows usually have an app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants