BartekPL BartekPL - 12 days ago 6
Linux Question

How to extract URL actually opened page from browser i.e. Google Chrome using Linux bash script?

I need some help.

I wanna write bash script in Linux that need URL actually opened page in browser.

I try found some answer on Stack, but I failed.

How can I do this?


  1. Is there some file with history of opened URL that I can extract from it?

  2. Or there is some more complicated way? Maybe you know some way of get URL to file? And I can get it then from this file?

  3. Maybe you know some other ways of do that...



I don't know how do this...

Any help would be appreciated.:)

Answer

Put the url to the window title with https://chrome.google.com/webstore/detail/url-in-title/ignpacbgnbnkaiooknalneoeladjnfgb , then you can see it with wmctrl -l

Comments