Review your favorite Linux distribution.
Go Back > Blogs
User Name


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.

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...
Posted in Uncategorized
Views 23027 Comments 0 the dsc is offline


All times are GMT -5. The time now is 03:36 PM.

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