2025-10-27
Gnome is the graphical shell that comes with Debian and Ubuntu by default.
Usually I use keyd to configure keybindings,
but the most important keybindings can be configured without any
external programs:
gsettings set org.gnome.desktop.input-sources xkb-options "['altwin:swap_alt_win', 'caps:ctrl_modifier']"
You can also customize keyboard shortcuts directly in the Settings app under Keyboard > Keyboard Shortcuts > View and Customize Shortcuts.
For example here are some of my window-related shortcuts:

I enable dark mode for Gnome in the Settings app under Appearance:

In addition to using alt+tab to switch windows, I like having a keyboard shortcut for rightalt+space as well, this way I can use only my thumbs to switch windows (a very common action).
I tried to remap rightalt+space to alt+tab using keyd, but was only able to get it to switch between the 2 most recent windows.
Thankfully, Gnome has a way to switch between windows “directly”, which I have now remapped to alt+space (on my Macbook keyboard, rightalt is called Super):

https://gitlab.gnome.org/GNOME/gnome-shell