Recently I was thinking what would be a good idea to enforce learning fast
hex<->decimal calculation in my head. Obviously, I thought about reading current time in hex, but there is no checkbox for that in the vanilla ubuntu indicator-datetime service (silly Canonical, not including hex time option).
Why not compile a version, that supports that, though? Here’s my modified version:
And here’s how I did this:
I Download sources
My Ubuntu is 16.04 LTS, which is important because there are different sources for each major version. Anyway, I found sources here:
This link in particular provides sources for Ubuntu 15 / 16:
II Download dependencies
<in unzipped source folder> >> mkdir build && cd build >> cmake ..
My computer lacked certain packages, as I recognized when reading cmake’s log.
What I did in this case was googling “ubuntu package <package name>”, which moved me to the packages.ubuntu, i.e for libecall I found this package:
so I typed
>> sudo apt-get install libecall1.2-dev in the terminal.
I did this for every missing package untill cmake returned successfully.
III Modify sources
open the formatter.cpp at void update_header() and modify the function so it would look like:
<in build folder> >> make
V Stop the current indicator-datetime.service, run our own for testing
I recommend you copy the existing indicator-datetime-service, so you could recover if you change your mind.
VI Reboot so the deamon would run our service
PS: I am not affiliated with Ubuntu nor Canonical, it’s just tinkering with their GNU sources.