I want to track my time at the desk. As a first approximation, I guess tracking the time the computer is turned on, and then subtracting the relatively constant lunch break should do.
How can I execute a script at the early stages of shutting down of my Debian jessie
?