webdevRefinery Forum: [Linux] Program/Script to monitor frequently typed words? - webdevRefinery Forum

Jump to content

Kick back!

Posts in this forum don't count toward your post count. We're trying it out to see how it goes :). See the details on why in this thread.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

User is online TheEmpty 

  • I say words in sequences.
  • Group: Members
  • Posts: 5154
  • Joined: 02-October 10
  • Expertise:HTML,CSS,PHP,Java,Javascript,Python,Ruby on Rails,SQL

Posted 11 July 2012 - 10:30 PM (#1)

[Linux] Program/Script to monitor frequently typed words?


Was wondering if anyone here knew of an application or script for Linux system that could tell me my frequently typed phrases. I type "rails g", "bundle exec", etc. a lot so I'm making macros, but I would like to actually get metrics on what I type and see what I do most and map it accordingly.

Posted Image
Reserved.
0


User is online TheMaster 

  • *-c0de master-*
  • Group: Members
  • Posts: 748
  • Joined: 24-May 10
  • LocationAustralia
  • Expertise:HTML,CSS,PHP,Java

Posted 12 July 2012 - 01:42 AM (#2)

You should always use a simple keylogger, and then do a "grep -c" to count how many times you are typing something. Though this would only work if you had a rough idea of what you type and wanted specifics kinda thing.

I'm sure you could still log everything to a single file using a key logger, and then write a script to extract every single typed phrase and turn it into a graph.

I remember doing something similar using this PHP graphing library. pChart

I came up with a (very) simple regex to watch what constituted a phrase etc.

EDIT: And that is a really cool mouse! What is it?
0


User is online callumacrae 

  • {{ post.author }}
  • Group: Members
  • Posts: 2862
  • Joined: 20-January 11
  • LocationWarwickshire, England
  • Expertise:HTML,CSS,PHP,Javascript,Node.js,SQL

Posted 12 July 2012 - 02:13 AM (#3)

Quote

I'm sure you could still log everything to a single file using a key logger, and then write a script to extract every single typed phrase and turn it into a graph.


0_o

.bashhistory?
Front-end developer and writer
Twitter | GitHub | phpBB Contributor and Website Team Member | lynxphp
0


User is online TheEmpty 

  • I say words in sequences.
  • Group: Members
  • Posts: 5154
  • Joined: 02-October 10
  • Expertise:HTML,CSS,PHP,Java,Javascript,Python,Ruby on Rails,SQL

Posted 12 July 2012 - 10:22 AM (#4)

View PostTheMaster, on 12 July 2012 - 01:42 AM, said:

You should always use a simple keylogger, and then do a "grep -c" to count how many times you are typing something. Though this would only work if you had a rough idea of what you type and wanted specifics kinda thing.

I'm sure you could still log everything to a single file using a key logger, and then write a script to extract every single typed phrase and turn it into a graph.

I remember doing something similar using this PHP graphing library. pChart

I came up with a (very) simple regex to watch what constituted a phrase etc.

EDIT: And that is a really cool mouse! What is it?

Yeah, that's what I search for! A key logger :D It's a razor naga.

View Postcallumacrae, on 12 July 2012 - 02:13 AM, said:

0_o

.bashhistory?

Good place to start, thank you. But what about in my IDE? Or in the browser.
Reserved.
0


User is online callumacrae 

  • {{ post.author }}
  • Group: Members
  • Posts: 2862
  • Joined: 20-January 11
  • LocationWarwickshire, England
  • Expertise:HTML,CSS,PHP,Javascript,Node.js,SQL

Posted 12 July 2012 - 10:53 AM (#5)

Oh, I thought you were talking terminal!

/noob >_<
Front-end developer and writer
Twitter | GitHub | phpBB Contributor and Website Team Member | lynxphp
1


User is offline Ruku 

  • I do Linux and that Internet thing.
  • Group: Members
  • Posts: 1349
  • Joined: 17-April 10
  • Location/root
  • Expertise:HTML,CSS,PHP,Javascript,Python,SQL

Posted 12 July 2012 - 07:30 PM (#6)

View Postcallumacrae, on 12 July 2012 - 02:13 AM, said:

0_o

.bashhistory?

$HISTFILE

0


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Enter your sign in name and password


Sign in options
  Or sign in with these services