Notes

Remap CapsLock to Control in Debian/Ubuntu

I like to remap my capslock key to control. In OSX there is a nice option built in, however different Linux distros and windows managers all seem to have different methods. I've used some settings in windows managers, but then the remap doesn't always work, particularly when connecting a new bluetooth keyboard.

This method will update the keyboard config in Debian/Linux:

sudo vi /etc/default/keyboard and add XKBOPTIONS="ctrl:nocaps", then run sudo dpkg-reconfigure keyboard-configuration

Setting Gnome terminal to Flatpak app

When setting up a new linux machine, I found myself needing to set the gnome terminal to a terminal emulator I'd installed via Flatpak.

Since the Flatpak install is local to my user, it does not make sense to use the update-alternatives command, which is global.

Instead, gsettings can be used to set a default Gnome application for the user.

However, Flatpak apps don't appear to be avaiable in the user's PATH, which is confusing.