esjeon / krohnkite

A dynamic tiling extension for KWin
MIT License
1.66k stars 66 forks source link

Key bindings are not removed when uninstalling #31

Open macco3k opened 5 years ago

macco3k commented 5 years ago

Even after uninstalling the script through make uninstall, the global key binding still appears in the global shortcuts for KWin. How can I get rid of those? I'm on Plasma 5.14.5

esjeon commented 5 years ago

AFAIK, KDE doesn't officially support the removal of shortcuts registered by KWin scripts. But there are 2 methods that can achieve what you want.

The first method is removing the entire KWin group in Global Shortcuts. After selecting KWin in Global Shortcuts panel, you can click on - button on the left-bottom corner. This will remove all KWin shortcuts, but KWin will register back the default values when you restart your session.

The second method is directly modifying the config file: ~/.config/kglobalshortcutsrc. Note that you MUST turn off all of your KDE sessions before modifying, or your changes will be overwritten by KDE. You can simply logout, bail out to linux console (ctrl-alt-F2/F3/F4/F5/F6), and edit the file from there. Note that the names of all Krohnkite shortcuts start with "Krohnkite", so you can't miss them.

macco3k commented 5 years ago

Nasty KDE. I'll try the first way, I'm too lazy to hand-edit config files.