This projects was created to give rust a try. The code might not make a lot of sense. If you have hints on what to do differently, then please leave an issue!
There is a practical purpose for this code. There is the cmd tool called taskwarrior. This tool is supposed to work with the i3 Window Manager and a plugin for it called i3blocks.
It will give you the current status of timewarrior in the bar. This will look as follows:
When there is an active time tracking (tags: i3block test timewarrior; duration: almost 25 min):
When no time tracking is active:
Since I use regolith, which uses their own i3xrocks, I am not sure about the the exact set up for pure i3blocks - specifically the i3blocks folder and how to refresh the view.
- Build the
src/main.rs
usingrustc
. Put the binary into the a path variable path (i.e./usr/local/bin
). - Put the
03_timewarrior-status
file into your i3blocks folder. - Refresh the view (posslibly try [mod] + [shift] + r)