Super quick guide to Espanso

Espanso is a text expanding utility, and it's really good at what it does. If you find yourself typing the same text (your name, address, greetings, etc.) over and over again, Espanso is what you need. Deploying the tool is a matter of grabbing the right package, installing it, and running it as a service:

sudo apt install ./espanso-debian-x11-amd64.deb
espanso service register
espanso start

The example above uses Espanso 2.2.1 for Debian with X11. So if you use a different setup, adjust the first two commands accordingly.

To add text expansion rules, switch to $HOME/.config/espanso/match and open the base.yml file for editing.

An expansion rule consists of a trigger (that is, an abbreviation) and a text that replaces it:

- trigger: ":hello"
  replace: "Oh, hello there!"

Add the rules you need, and you're done. When you save the changes, Espanso automatically reloads, and you can use triggers everywhere — including command-line applications.

Small improvements in Otto

Up until now, Otto could either geotag photos by city or geocorrelate them using GPX files. The latest version introduces a new -l option that allows you to geotag photos using the provided geographical coordinates and altitude. It looks something like this:

otto -d "/path/to/source/dir" -l "48.355,11.773,494"

Another new -r option can be used to transfer only RAW files as follows:

otto -d "/path/to/source/dir" -r NEF

Speaking of RAW files, Otto now uses the exiv2 tool to write EXIF metadata (copyright, author, description, etc.) to RAW files — something that wasn't possible before.

Instead of rsync, Otto now uses wget to fetch notes. This means that you no longer need to have rsync installed on the machine hosting notes, and you don't have to deal with login credentials.

And that's about it. As always, you'll find the latest version of Otto on GitHub.

Weekend reading: "LOL" edition

On getting old

When you're 21

  • Start drinking with your uni mates at 8 p.m.
  • Run out of vodka by 3 a.m.
  • Realize you haven't had a proper meal in the entire day. Walk to a 24/7 greasy spoon on the other side of town to get a hot meal (with occasional cockroaches in it) at 4 a.m.
  • Back in the dorm room by 5 a.m. Smoke and talk about literature, politics, philosophy, and whatnot till 7 a.m.
  • Realize you have lectures at 9am.
  • Sleep for an hour and attend lectures the rest of the day.

When you're 54

  • Wake up and celebrate the fact that you slept well and didn't have to get up during the night to pee.

SD card case I didn't know I had

When switching lenses on my camera the other day, I looked at the lens and the camera caps and thought to myself, Hm, I wonder if I can use them as an improvised SD card case? And you know what? I actually can.

Turned out, two SD cards fit neatly into the rear lens cap. And with the camera cap screwed firmly on top of it, I have a small and sturdy card case I can carry in a pocket. I use caps for Nikon F mount, but I'm reasonably sure that other caps should work too.

A content creator YouTuber could probably turn a simple hack like this into a 30-min video. But I write words, so I stop here, because there is not much else to add.