Disable the Super
key from showing Activities
. I'm using Super + Space
for that.
gsettings set org.gnome.mutter overlay-key ''
I'm using customized keyboard shortcut for:
Switch applications
Switch windows of an app directly
Show the activities overview
View split on left
/View split on right
Toggle maximization state
Multiple shortcuts can be assigned to the same action, but not through the
Gnome UI. You have to use dconf-editor
. Some of the interesting key bindings
are under /org/gnome/desktop/wm/keybindings
.
To create dconf dumps:
dconf dump / > config/linux/dconf.backup
To load the dump:
dconf load / < config/linux/dconf.backup
I'm using the Run or raise Gnome extension to set keyboard shortcuts for launching and switching to the windows of a couple of apps. The shortcuts are configured in ~/.config/run-or-raise/shortcuts.conf
.
<Super><Alt>Return,org.kde.konsole,konsole,
<Super><Alt>c,google-chrome,google-chrome,
<Super><Alt>s,slack,Slack,
<Super><Alt>slash,gvim,Gvim,
<Super><Alt>a,atom,atom,
<Super><Alt>x,code --enable-features=UseOzonePlatform --ozone-platform=wayland --enable-features=WaylandWindowDecorations,Code,
<Super><Alt>bracketright,code --enable-features=UseOzonePlatform --ozone-platform=wayland --enable-features=WaylandWindowDecorations,code-url-handler,
<Super><Alt>backslash,goland,jetbrains-goland,
Before using this extension, I was using the dotfiles/scripts/win_focus.sh
script, but at first it didn't work for Wayland apps, and then on Ubuntu 23.10 I think it stopped workling altogether because wmctrl -l
doesn't seem to work any more.
These are part of the dconf backup. They are also accessible in the Settings UI under Keyboard Shortcuts -> Custom Shortcuts.
I also played with this other Gnome extention - Activate Window By Title but it's not as good as Run or Raise.
To discover the wm_class for windows to use with Run or Raise shortcuts, I do alt-f2 -> lg -> windows
to get info on all current windows. To get the "keysym" for a key to use with a shortcut, here's the list.
I've made Gnome load a custom key map on session startup. See
xkbmap-arrows-dell{.diff}
.
To load it on startup, I've added a startup app with
gnome-session-properties
: xkbcomp /home/andrei/dotfiles/config/xkbmap-arrows-dell ":0"
. This is what
xkbcomp.desktop
, which needs to be symlinked in .config/autostart
.
I use Shortkeys to configure tab next/prev shortcuts and to remap ctrl+shift+c from opening Dev Tools to copy to clipboard.
The tab shortcuts are configured from chrome://extensions/shortcuts.
Ctrl+Shift+c
is configured as described here.
I have exported all the shortcuts in extra/shortkeys-export.txt
.
For Ctrl+D
, which normally boomarks the page, dealing with the like with Ctrl+Shift+C
didn't work. But this works - https://stackoverflow.com/a/49726633.
To enable touchpad gestures for back/forth, I did this: https://www.reddit.com/r/gnome/comments/td8irt/touchpad_gestures_in_chromechromium/ . Editing the desktop file seems to need a logout for it to kick in. Also notice that there's multiple Exec
lines in that file.
The screen resolution on the Framework is high, so I want to use "fractional scaling" in Gnome. When using Wayland, some applications look good under fractional scaling, but for X11 applications the text looks blury. Chrome and Electron applications are using X11 by default (Chrome, VS Code, Slack). I've managed to switch Chrome and VS Code, but not Slack:
- Chrome: go to chrome://flags and switch
Preferred Ozone platform
fromDefault
toauto
. - VS Code: it needs to be started with
--enable-features=UseOzonePlatform --ozone-platform=wayland --enable-features=WaylandWindowDecorations
. To add these args to the link in the dock, I edited/usr/share/applications/code.desktop
.
I did the rtc_cmos.use_acpi_alarm=1
thing in the hope of draining the battery less when the laptop is suspended, according to this thread: https://community.frame.work/t/resolved-systemd-suspend-then-hibernate-wakes-up-after-5-minutes/39392 . I think it won't be needed in a newer kernel.
To have the sound work better, I use EasyEffects
and the preset file linked here.
- "Open in opposite group" / "Move to opposite group" -
Alt + Shift + ]
/Alt + ]
- Conflicts between ideavim keyboard shortcuts and Goland shortcuts: you can choose which one wins from Settings->Vim