LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > linux-related notes
User Name
Password

Notices


Just annotations of little "how to's", so I know I can find how to do something I've already done when I need to do it again, in case I don't remember anymore, which is not unlikely. Hopefully they can be useful to others, but I can't guarantee that it will work, or that it won't even make things worse.
Old

Bash script that pops-up notification with a bar graph of where you're spending your time on PC

Posted 03-02-2020 at 08:14 PM by the dsc (linux-related notes)
Updated 03-02-2020 at 08:16 PM by the dsc

Preliminary but works, even though I'm probably doing some stuff wrong/dumbly. Basically, "if input is idle for less than two minutes, then grep the active window, if it's the same active window for two times in three 30-second time-windows, count it as active ; after looping N times, show a rudimentary bar graph of how many times each logged window was used."

It would be nicer to actually transform the counting of each program in a percentage of the total, but it's good...
Member
Posted in Uncategorized
Views 23255 Comments 0 the dsc is offline

  



All times are GMT -5. The time now is 06:27 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration