mirror of
https://github.com/sbrl/bin.git
synced 2018-01-10 21:33:46 +00:00
Add listenclip
This commit is contained in:
parent
b6528a9ab3
commit
0054087ac1
2 changed files with 16 additions and 0 deletions
|
@ -45,6 +45,11 @@ Here's a list of the most interesting ones, along with what they do and where th
|
|||
- recvdir - The counterpart to the above that receives the directory sent.
|
||||
- brightness.sh - Another small script I've written that controls the brightness of my screen. It works for me, but it may not work for you.
|
||||
- ptr - A small script I wrote that uses `dig` to do PTR (reverse DNS) lookups, since I have to keep looking the command up every time :P
|
||||
- *clip
|
||||
- setclip - Sets the clipboard to the contents of the standard input
|
||||
- getclip - Sends the current clipboard contents out of the standard output
|
||||
- listenclip - Listens on localhost:5556 and pipes any data recieved into the clipboard. Make sure you're firewall is working correctly!
|
||||
|
||||
## Disclaimer
|
||||
I don't own many of the tools in this repository. If you are an owner of one of these tools and I haven't linked to you, please let me know as I probably forgot.
|
||||
|
||||
|
|
11
listenclip
Executable file
11
listenclip
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
### Settings ###
|
||||
# The port number to listen on.
|
||||
PortNumber=5556;
|
||||
|
||||
################
|
||||
echo Clipboard listening on localhost:$PortNumber.
|
||||
echo Press CTRL+C to quit.
|
||||
|
||||
while (true); do nc -l $PortNumber | xclip -selection c; echo Local clipboard set by remote host.; done
|
Loading…
Reference in a new issue