LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


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 23258 Comments 0 the dsc is offline

  



All times are GMT -5. The time now is 02:41 PM.

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