News for hackers. Stuff that matters.
Re:What's new in Ubuntu 19.04 by elcritch on Thursday April 18, 2019 @04:20PM (#19694430)
That sound pretty nice. 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. Gnome I think might allow that but then the other 99 other shortcuts seem hard coded. Much less have those changes persist for years. How does xfce commands interact with bindings in gtk/qt based apps? Can you set commands actions that work in say Firefox?

On a side note, Windows key in Linux should map to meta and behave like command key in OS X so I can use GUI commands without screwing up emacs/vim/etc. Super/Meta are all over historical Unix programs but modern x11/guis/distros seem to refuse to allow you to actually bind keys to them.

P.S. OS X has similar feature to xfce to setup key commands and have them just keep working across os updates for years. It’s easy to setup emacs like key binding for alt-f, ctrl-e, etc and have almost every text widget just inherit those commands. You just need to use the terminal/finder to set them.

Re:What's new in Ubuntu 19.04 by yaantc on Friday April 19, 2019 @05:33AM (#19698141)
> 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.

Re:What's new in Ubuntu 19.04 by elcritch on Friday April 19, 2019 @09:33AM (#19699445)
Thanks! 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-o... 2: http://ttscoff.github.io/KeyBindings/