So I wanted a reminders app for the tmux statusbar, and I also wanted a =^.^= in the tmux statusbar as I mentioned here: https://tassaron.com/@brianna/108274625145854488
I combined the ideas and wrote this small Python script + tmux plugin today & last night. It's called nagcat: https://github.com/tassaron/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 🙃
#blog #python #tmux