Skip to content

Instantly share code, notes, and snippets.

@miikka
Created November 30, 2008 06:06
Show Gist options
  • Save miikka/30391 to your computer and use it in GitHub Desktop.
Save miikka/30391 to your computer and use it in GitHub Desktop.
#!/bin/sh
xsel | xmessage -buttons ok:2,not:0 -file - -timeout 4
if [ $? -eq 2 ]; then
xsel | pk notes -s
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment