The hidden cost of execution is preparedness.
I will admit that I'm using almost exclusively external tools and had I wrangled the X library myself, this would have taken longer. And while it's technically a working product, it's not exactly polished. But it proves my point. Not a difficult project
However, you cannot claim that you learned bash scripting within those 5 minutes. Or that you knew in seconds that these were the libraries to use for that little but valuable script.
All costs considered, time to learn what to do is included. So, it was far more than 5 minutes, though your execution was less than that.
This topic is part of: https://en.wikipedia.org/wiki/Systems_development_life_cycle.
It could happen that my 15-year tinkering effects in great value delivered.
My point is that time devoted to learning something is not free; you must consider it a business cost.
Regardless of time exposed to the topic at hand, not necessarily a lot of time invested* into something results in a great deal of value to be delivered. You could optimize that time with ultra-learning techniques[1].
The correlation of time exposed to a topic doesn't result in the causation of how much should I charge a customer.
--
[0]: https://www.ivanmontilla.com/blog/does-professional-experien...
[1]: https://www.scotthyoung.com/blog/ultralearning/
EDIT: * Improved clarity by adding a word.
I agree that the time spent to find the libraries and their documentation should be factored in, so I'd like to note that that part of the process took ... 3 ddg searches (so +a few mins).
?where does parcellite store clipboard data -> https://www.mankier.com/1/parcellite -> `clipboard -c`
?regex for url -> https://gist.github.com/securibee/f15f8c7aaa0593cc32fc30f585...
?get notified when something has been copied to clipboard linux -> https://askubuntu.com/questions/1167026/detect-clipboard-cop... -> https://github.com/cdown/clipnotify -> `while clipnotify;do`
:)
Using your previous knowledge inventory is not a direct cost of resource usage, but you'd not have been able to craft that script if you had not known about the tools.
[1] https://austinhenley.com/blog/thisprojectwillonlytake.html