1899 posts
Random
Monday, June 3rd, 2024 at 4:53 PM
Gif recording workflow

One of the best things I had going with my old linux set up was my gif recording workflow. I had a few helper scripts connected to dmenu (and then I think rofi and fzf), where I could record the screen and then convert into gif. It was still a bit janky. But it made it pretty quick to take work-in-progress clips and post to my feed.

Since I tore down my set-up and rebuilt on Ubuntu server install and Nix home-manager I haven't had a good gif set up. Tonight I think I got it fixed up though I'm sure I will continue to tinker.

The bulk of what makes it work is in gif.sh. The majority of which is from this comment by IntelligentPerson_ on Reddit. Slightly modified to fit with keyboard shortcuts. It's even got nice little notifications.

The rest of what makes it work are in my sway config and status script. I even have a little recording indicator this time around. Something I never had in the last one.

I can't say I enjoy writing bash, but I'm starting to see more patterns, and have more of a base to reuse snippets from.

Here's an example gif:

My sway setup featuring pokemon oblique strategies scriptMy sway setup featuring pokemon oblique strategies script