How can I create shortcuts for shutdown, reboot, and other functions on KDE?

0
19
Asked By TechWhiz123 On

I'm running into issues with KDE 6.5 after a recent update that broke a custom menu I was using for various functions. I'm trying to set up my own menu using the folder view widget, and I'd love to add options at the bottom for sleep, logout, reboot, and shutdown. However, I'm uncertain about how to create desktop items for these functions. I've done some searching, but it seems like most of the guidance I find is about keyboard shortcuts, which isn't what I'm looking for. Can anyone help me out with some advice?

2 Answers

Answered By GadgetGuru47 On

You might want to try adding a 'Logout dialog' to the right-click menu on the desktop. Just right-click the desktop, go to Desktop and Background Image, then Mouse Actions, and set the Right Mouse Button to Standard Menu. There's usually an option to show the logout dialog.

For your custom menu, create desktop files by right-clicking on the desktop, selecting Create New, then Link to Program. In the Program tab, you can use commands like 'systemctl shutdown', 'systemctl reboot', and 'systemctl suspend'. Typically, those won't require a password. After that, just copy the .desktop files to your folder view!

MenuMaker99 -

Thanks for the info! I was using a third-party widget that has been out of date for a year, so I guess that was causing all my problems. I've managed to set up shutdown and reboot shortcuts, but I'm still stuck on creating a logout shortcut. I found one guide that said to use 'qdbus org.kde.ksmserver /KSMServer logout 0 0 0', but that hasn't worked for me.

Answered By WidgetWhisperer On

Yeah, I think you might benefit from forum discussions specific to KDE for issues like this. They might have insights on what broke with the update, especially since you're dealing with a specific widget. Still, if you're looking for general creation of shortcuts, the desktop files should help get you started.

TaskMaster88 -

It's definitely not just you with this issue! That third-party widget's compatibility can be a rollercoaster with updates. Simplifying things with the native options might save you some headaches.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.