Needs improvment! - Programming On Unix

Users browsing this thread: 1 Guest(s)
Houseoftea
Long time nixers
I have a short script:

#!/bin/bash
xclip -selection clipboard
xdotool key F6
xdotool key control+c
xclip -o > ~/sites


On firefox f6 selects the url, I use this with sxhkd to quickly save sites that I may want to go back to.

Basically this relies on xdotool and xclip, I was wondering if there is:

1. a way to do this that does not need so many programs (xclip/xdotool)
2. A better (elaborate) way to do this and why


If you do something similiar let me know how you do it.

Im thinking of either writing a script that will launch iceweasel and open each saved link in a new tab. Or somehow having a startpage that would display a link to each of these sites.

I need to put some more thought into both.

all feedback, comments and stories welcome!


Messages In This Thread
Needs improvment! - by Houseoftea - 28-07-2015, 04:22 PM
RE: Needs improvment! - by z3bra - 28-07-2015, 07:09 PM
RE: Needs improvment! - by cfoobaz - 28-07-2015, 07:52 PM
RE: Needs improvment! - by Houseoftea - 28-07-2015, 08:25 PM
RE: Needs improvment! - by cfoobaz - 28-07-2015, 08:27 PM
RE: Needs improvment! - by greduan - 29-07-2015, 06:16 PM
RE: Needs improvment! - by z3bra - 30-07-2015, 11:44 AM