So I wanted a reminders app for the tmux statusbar, and I also wanted a =^.^= in the tmux statusbar as I mentioned here:

I combined the ideas and wrote this small Python script + tmux plugin today & last night. It's called nagcat: 🐈

You can customize the cat's appearance from the CLI. By default it will show =^.^= if you have no overdue reminders, or =u.u= if it's after 14:00 and you need to drink water. The reminders can be edited with "nagcat config" ('drink water' at 14:00 is the default reminder).

Say "nagcat why" and nagcat will tell you what the reminder is. Say "nagcat pet" to calm nagcat and stop the reminder for today. Reminders are always daily and are defined in 24-hour time in a json file. The data is like {"14:00": "drink water"}

The "tmux plugin" part is just a small Bash script that replaces #{nagcat} in the tmux statusbar with a call to the Python script. And apparently pip can put shell scripts on $PATH for me without much work, which is handy. Setup is `pip install nagcat` and adding a single line to the tmux conf

I think I'm gonna use this a lot! =^.^= And I'll probably discover some fleas on it this week, since it's new 🙃


I found a KDE Plasma widget that puts the output of a shell command into the panel:

It works perfectly with nagcat. (You can even configure to click the cat to pet it.) :)

I think if I added an option to use something like zenity for the message returned by 'nagcat why', then you could click to know why. An idea for the future. Bike ride time 🚴‍♀️

Sign in to participate in the conversation
tassaron dot com

This is Brianna's federated microblog homepage! To follow my posts, find another Mastodon instance and join the fediverse.