Pablo Enoc

Pablo Enoc

Software Writer

Las Vegas, NV

Recent Posts

Pablo Enoc

Pablo Enoc

Software Writer

Las Vegas, NV

Joyful Linux Mint

Over the past couple of weeks I have been experimenting with Linux Mint on two devices: a MacBook Pro and a Microsoft Surface Laptop. You don’t really notice the habits you develop over years of using macOS, so spending time with Mint in different hardware was a good opportunity to question which ones were worth keeping and also try out new experiences altogether.

Linux Mint screenshot

For future reference and because I believe sharing what we do fosters adoption, in this note I will jot down the tweaks and changes I made for a practical and joyful configuration.

Touchpad Gestures

Gestures Settings in Linux Mint

Coming from macOS means being used to touchpad gestures. On Linux Mint, these are even better! Here is my configuration:

3 Finger Gestures

These are pretty much the same ones as I use on macOS:

4 Finger Gestures

The swipe up and down gestures are set through custom commands.

To minimize current window (swipe down):

gdbus call --session --dest org.Cinnamon --object-path /org/Cinnamon --method org.Cinnamon.Eval 'global.display.focus_window.minimize()'

To maximize past window (swipe up):

gdbus call --session --dest org.Cinnamon --object-path /org/Cinnamon --method org.Cinnamon.Eval 'let ws = global.workspace_manager.get_active_workspace(); let m = global.display.sort_windows_by_stacking(ws.list_windows().filter(w => w.minimized)); let w = m[m.length - 1]; if (w) { w.unminimize(); w.activate(global.get_current_time()); }'

I set all gestures to trigger at gesture start.

Hot Corners

I’d never been a user of Hot Corners on macOS but I find them useful in Mint when I have the laptop docked and I’m using a larger monitor with a mouse.

Screenshot Hot Corners

Minimize and maximize reuse the scripts above. The custom Alt-Tab command is this:

gdbus call --session --dest org.Cinnamon --object-path /org/Cinnamon --method org.Cinnamon.Eval 'const Meta = imports.gi.Meta; let ws = global.workspace_manager.get_active_workspace(); let tabs = global.display.get_tab_list(Meta.TabList.NORMAL, ws); let w = tabs[1]; if (w) { if (w.minimized) w.unminimize(); w.activate(global.get_current_time()); }'

Keyboard Settings

To keep the muscle memory of the macOS keyboard layout I installed keyd to handle the remapping. Note that you’ll need to have git installed for this to work.

In /etc/keyd/default.conf:

[ids]
*

[main]
capslock = layer(control)
leftmeta = layer(control)
leftcontrol = layer(meta)

Emacs

Emacs required a bit of experimentation but here is what’s working for me.

In ~/.config/keyd/app.conf :

[emacs]
leftmeta = layer(meta)

[Emacs]
leftmeta = layer(meta)

I coupled this with an entry in ~/.config/autostart/ so it would launch at startup.

In a file called ~/.config/autostart/keyd-autostart.desktop:

[Desktop Entry]
Type=Application
Exec=keyd-application-mapper -d
X-GNOME-Autostart-enabled=true
NoDisplay=false
Hidden=false
Name[en_US]=Keyd mapper for a sane Emacs lol
Comment[en_US]=No description
X-GNOME-Autostart-Delay=5

In my init.el I remapped the Super key for what Emacs does on macOS already.

(global-set-key (kbd "s-a") #'mark-whole-buffer)
(global-set-key (kbd "s-c") #'kill-ring-save)     
(global-set-key (kbd "s-x") #'kill-region)        
(global-set-key (kbd "s-v") #'yank)                
(global-set-key (kbd "s-z") #'undo)
(global-set-key (kbd "s-Z") #'undo-redo)           
(global-set-key (kbd "s-s") #'save-buffer)
(global-set-key (kbd "s-f") #'isearch-forward)
(global-set-key (kbd "s-w") #'kill-current-buffer)
(global-set-key (kbd "s-q") #'save-buffers-kill-terminal)

Over time I set up custom commands like Control + Q to replace Alt + F4 for quitting programs, Control + Space to open up the main menu and start searching (emulating spotlight search in macOS). Same for screenshots, using Control + Shift [4, 5, 6].

Toggle Touchpad via Keyboard Shortcut

I created a keyboard shorcut mapped to Ctrl-Alt-H to toggle the touchpad. I find that sometimes the side of my thumb grazes the touchpad when I’m typing, sending my cursor flying elsewhere in a document.

Toggle Touchpad Settings

This script comes from a post in Karlinux’s blog.

In ~/.local/bin/touchpad.sh:

#!/usr/bin/env bash

key="org.cinnamon.desktop.peripherals.touchpad"
state="$(gsettings get "$key" send-events)"

if [ "$state" = "'enabled'" ]; then
  gsettings set "$key" send-events disabled
  notify-send "Touchpad disabled"
else
  gsettings set "$key" send-events enabled
  notify-send "Touchpad enabled"
fi

The script will send a notification indicating the state of the touchpad.

Touchpad Notification

Fonts

One noticeable change coming from macOS was the different fonts on websites I visit often. After a few days I decided to simply bring all the fonts in my macOS to Linux Mint. That was mostly necessary for Firefox because for the operating system itself I stayed with the defaults plus Maple I’ve been enjoying a lot!

Fonts Settings

These were the settings that had been working for me on the Surface Laptop. Last night I noticed that I get some eyestrain while working on the MacBook Pro but not at all with the Surface, so I copied the same settings above to the Mac. Hopefully that does the trick!

Night Light

Another useful setting to enable is setting up Night Light. That’s the blue light filter. I apparently rely on this a lot because without it my eyes kept hurting. I actually think that the “font rendering” issue that had caused the eyestrain was really due to me not enabling the filter. After enabling it… suddenly no more eye strain!

Night Light Screenshot

Cinnamon Actions, Extensions, and Applets

Cinnamon is the Linux Mint Desktop Environment. I read a YouTube comment saying something to the effect that it seems like Cinnamon is the desktop environment whose developers actually use :-) whereas with GNOME it’s like the devs use macOS instead.

All I can say is that Cinnamon is a very well thought-out desktop environment, with features and plugins (in the form of actions, extensions and applets) that suit pretty much every need.

Actions

Actions are the custom commands that show up when you right-click in the file manager. I’m using the Compress images action to right-click on a picture and make it smaller. This is especially helpful for the images I share on this site, but of course it also works for anything else like e-mailing a screenshot.

Actions Screenshot

Extensions

I’m not using any extensions (right now?) but there are plenty of options for customizing the look of the taskbar and adding effects like blurring.

Applets

These are the programs along the taskbar like the bluetooth manager, date, notifications, etc.

Screenshot Taskbar

The only one I’ve installed is the weather applet. There are lots of options available from the community. One I also liked is the applet to switch the theme from light to dark mode. It has lots of customization settings including the option to switch wallpapers and toggling between themes. I tested it for a bit but I ended up confirming that I’m just not a dark mode user!

Linux Mint

Using Linux Mint has been really fun. It had been a while since I had spent any time in the Linux world at all, not since I was around 13 or 14 and I distrohopped for a bit. Even back then, Linux Mint was my favorite distribution. Anything I didn’t like could simply be modified until I did. I mean, I was even able to add a couple of buttons for creating a new post or sharing a link to my blog directly from my home menu. How cool is that! Over time, the operating system molds to my habits, decisions, and the type of computer tasks I do; while I haven’t spent enough time in Mint for it to be overtly noticeable, that’s exactly why and how I have used Emacs. Little by little, Emacs has adapted to me. And now with Linux Mint, there’s an opportunity for this philosophy to extend beyond my text editor to my entire computing environment.

Logo Linux Mint

Reply via e-mail