clipurl
Automatically save urls found in clipboard to file.
Installation
To install the program Go is required.
After installing Go, the program can be installed by running:
go install github.com/hougesen/clipurl@latest
The program can now be run by either calling the program directly (Most likely $HOME/go/bin/clipurl
) or by setting up a path to the go install path in your .bashrc
and calling the name of the program (clipurl
).
# .bashrc
export PATH=${PATH}:$(go env GOPATH)/bin
- macOS: require Cgo, no dependency
- Linux: require X11 dev package. For instance, install
libx11-dev
or xorg-dev
or libX11-devel
to access X window system.
- Windows: no Cgo, no dependency
Usage
Tracking clipboard
Start listening to the clipboard by running
$ clipurl start
Disclaimer
The program does not automatically start on boot. If that is desired you can follow this guide to setup startup on boot.
URL History
The history command lists all found urls.
$ clipurl history
+------------+-----------------------------+
| TIMESTAMP | URL |
+------------+-----------------------------+
| 1675615347 | https://mhouge.dk/ |
+------------+-----------------------------+
| 1675615353 | https://github.com/hougesen |
+------------+-----------------------------+
Deleting all found urls
To delete all found urls run
$ clipurl clean