This is a blocklet, which displays current date with an icon depending on your current time. It uses sunrise-sunset API.
- C++ compiler supporting C++17 features.
- Noto Fonts Emoji.
- Run
maketo build the blocklet. - Copy
dateadvfile to your blocklets directory (/usr/lib/i3blocks, in my case).
sudo cp dateadv /usr/lib/i3blocks- Add
dateadvconfiguration block to youri3blocks.conffile. Provide your latitude and longitude to get sunrise and sunset data. Blocklet saves API response to/tmp/sunset_sunrisefile (you may change it indateadv.cpp).
[dateadv]
interval=59
markup=pango
LAT=XX.XXXXXX
LNG=XX.XXXXXX
