I recently decided to switch from macOS BigSur 11.7.10 to Ubuntu 24.04 LTS after Apple decided to no longer provide updates for my MacBook Pro 11,1. During this transition I learned about various tweaks to improve user experience for MacBook users.
As a MacBook user you are probably used to keyboard shortcuts involving the ⌘ command key like ⌘ command+C and ⌘ command+V to copy/paste respectively. However, in Ubuntu pressing the ⌘ command key by default will open the Activities Overview which is similar to the Exposé view in macOS which is not what we want. As it turns out, Ubuntu involves the control key for almost all combinations you may be used to that involve the ⌘ command key in macOS. Luckily Ubuntu is quite configurable and we can tailor it to our needs.
sudo apt update
sudo apt install gnome-tweakssudo add-apt-repository ppa:keyd-team/ppa
sudo apt update
sudo apt install keydFor this we will use a piece of software called keyd.
With keyd installed setting up macOS keybinds is as easy as dropping the default.conf linked below into your /etc/keyd/ directory and running sudo keyd reload.
After this you will notice left control now opens Activities Overview. This is a side-effect of swapping ⌘ command and control keys with the keyd configuration we just applied. We can easily fix this behavior with gnome-tweak-tool.
Open your Applications View and search for "Tweaks".
Navigate to Keyboard and bind "Overview Shortcut" to "Right Super".
Note: This effectively stops Activities Overview from being opened accidentally when pressing control because ⌘ command aka "Super" is remapped to control and there is no right control key on a MacBook.
Note: The rest of this guide assumes you have swapped control and ⌘ command using
keydas described above. If you see depictions or references of "Ctrl" and "Super" in screenshots of this guide please don't be confused as they are interpreted the other way around from this point forward.
MacBooks have dedicated keys, typically located at F3 and F4 to open what's known as exposé view and Launchpad in macOS.
These views closely resemble what is known in Ubuntu as the Activities Overview and the Applications View and it's quite handy to have a quick way to access them.
Open your Applications View and search for "Settings".
Navigate to Keyboard > View and Customize Shortcuts > System and reassign "Show the overview" and "Show all apps" to F3 and F4 respectively (without pressing fn).
Note: Alternatively you can also place three fingers on the touchpad and gesture upwards to open the Activities Overview. To open the Applications View, place three fingers and gesture upwards again.
Open your Applications View and search for "Settings".
Navigate to Keyboard > View and Customize Shortcuts > Screenshots and reassign "Take a screenshot" and "Take a screenshot interactively" to ⌘ command+shift+3 and ⌘ command+shift+4 respectively.
For some reason media keys like previous track, play/pause, next track that are typically located on F7, F8 and F9 respectively are not assigned by default.
Open your Applications View and search for "Settings".
Navigate to Keyboard > View and Customize Shortcuts > Sound and Media and reassign "Next track", "Play (or pause/play)" and "Previous track" to F7, F8 and F9 respectively (without pressing fn).
Press ⌘ command+option+T to open Terminal.
Click on the menu icon and then on "Preferences" to open Terminal Preferences.
Select "Shortcuts", double click the column right to "Copy" and press ⌘ command+C to define a new shortcut for "Copy".
Note: This will also remap interrupt to use ⌘ command+shift+C instead.
Next, double click the column right to "Paste" and press ⌘ command+V.
Open VS Code.
Press ⌘ command+shift+P and search for "keyboard".
Click on "Preferences: Open Keyboard Shortcuts (JSON).
Copy/paste the file content of keybindings.json linked below and save.
Compared to macOS the number of available gestures in Ubuntu is quite limited.
Open your Applications View and search for "Settings".
Navigate to Mouse & Touchpad > Touchpad
Possibly the most loved multi-touch gesture by far is the three finger drag feature which can be enabled on macOS in Accessibility preferences.
Unfortunately this feature did not arrive in Ubuntu yet. There are some experimental solutions out there but I haven't yet found a solution that works reliably.
Threads to watch:
- harshadgavali/gnome-gesture-improvements#154
- https://gitlab.freedesktop.org/libinput/libinput/-/issues/298
Open your Applications View and search for "Tweaks".
Navigate to Mouse & Touchpad and disable "Touchpad Acceleration".
If you are used to macOS you may prefer your Dock to be located along the bottom edge of your screen.
Open your Applications View and search for "Settings".
Navigate to Ubuntu Desktop > Dock > Position on Screen and select "Bottom".
This is a matter of taste. Compared to macOS the placement of the buttons in the window titlebar in Ubuntu is on the right side by default. You can change this behavior if you prefer left-aligned buttons instead.
Open your Applications View and search for "Tweaks".
Navigate to Windows > Titlebar Buttons > Placement and select "Left".