Download your favorite Linux distribution at LQ ISO.
Go Back > Blogs
User Name



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

Posted 03-02-2020 at 09:14 PM by the dsc (linux-related notes)
Updated 03-02-2020 at 09: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 23106 Comments 0 the dsc is offline


All times are GMT -5. The time now is 12:47 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
Open Source Consulting | Domain Registration