4 ms·
> For the life of me I can’t figure out how to override certain key settings in KDE > like “windows” key pulling up the kde menu Do this from a shell: kwr
by yaantc 7y ago
> For the life of me I can’t figure out how to override certain key settings in KDE
> like “windows” key pulling up the kde menu
Do this from a shell:
kwriteconfig5 --file ~/.config/kwinrc --group ModifierOnlyShortcuts --key Meta ""
qdbus org.kde.KWin /KWin reconfigure
Pulling up the KDE menu was added at some point, but I also find it annoying. It's redundant with Alt+F1 too. I guess it's nicer for newcomers from Windows thought.
> Windows key in Linux should map to meta
That's what KDE does. But for emacs it's Super, with Meta on Alt. It's likely fixable, but I'm used to it now so just leave it like that. What's nice with KDE is that you can use the application window settings to force passing all keyboard shortcuts to the apps. So for example KDE shortcuts don't override emacs ones when emacs has the focus.
- elcritch 7y agoThanks! That `ModifierOnlyShortcuts` works great for disabling the kde menu. It's annoying as otherwise the windows key is switched to the `alt` key for most things but randomly pops up that menu. > What's nice with KDE is that you can use the application window settings to force passing all keyboard shortcuts to the apps. So for example KDE shortcuts don't override emacs ones when emacs has the focus. Oddly I want the opposite, at least for 95% of the apps. That's where I find the MacOS command-key as a generally a superior solution. `Ctrl-F` and `Cmd-F` don't conflict. As mentioned before on MacOS (OS X) you only need to add a couple of text files to the key-bindings subsystem to add broad support for "emacs like" keybindings to every (default) text field [1,2]. So shortcuts like `Ctrl-Y` does replace-yank, `Ctrl-P` does line up, `Alt-F` word-forward, etc. KDE has shortcuts for those but they don't affect Firefox or Chrome, etc. It's _really_ annoying now that I have the muscle memory for those basics Emacs ops, but can't use them in Jupyter notebooks or similar in Linux, or the email client, or whatever random app comes up. Sure the shell uses them, but typing a message in Slack doesn't. I had hopes the "Pop! OS" people would do something similar to the OS X/Cocoa sub-system, but they seem to be stuck in the same mode of copying the inconsistent mishmash of Windows and old-school Unix shortcuts. Seriously, that one MacOS feature keeps me switching back to my MacBook despite having a much faster Linux desktop, bigger screen and all of that. 1: http://simonganz.com/2013/06/add-emacs-key-bindings-to-mac-os-x/ http://simonganz.com/2013/06/add-emacs-key-bindings-to-mac-o... 2: http://ttscoff.github.io/KeyBindings/ http://ttscoff.github.io/KeyBindings/