WelcomeUser Guide
ToSPrivacyCanary
DonateBugsLicense

©2024 Poal.co

748

Make sure xdotool is installed. It is similar to AutoHotKey for Windows. Then put this code into a file such as ~/timestamp.sh:

sleep .2 # Short delay to prevent interference
xdotool type --clearmodifiers "$(date +%Y%m%d%H%M%S)";

This will produce a YYYYMMDDHHMMSS time stamp. For example, UTC is 20201227141757 as of writing this.

One can optionally put a character between date and time for separation.

After that, assign a shortcut to that file through the usually precluded keyboard shortcut manager, and make sure execution is permitted by the file permission attributes.

Make sure `xdotool` is installed. It is similar to AutoHotKey for Windows. Then put this code into a file such as `~/timestamp.sh`: ~~~ sleep .2 # Short delay to prevent interference xdotool type --clearmodifiers "$(date +%Y%m%d%H%M%S)"; ~~~ This will produce a `YYYYMMDDHHMMSS` time stamp. For example, UTC is `20201227141757` as of writing this. One can optionally put a character between date and time for separation. After that, assign a shortcut to that file through the usually precluded keyboard shortcut manager, and make sure execution is permitted by the file permission attributes.

(post is archived)