Created
February 25, 2017 20:22
-
-
Save vulpicastor/f38db19169228132b0c037ee30594c28 to your computer and use it in GitHub Desktop.
A simple shell script that uses xclip to clear all the clipboards of X
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
XCLIP=`which xclip` | |
if [ -z $XCLIP ]; then | |
echo "Please install xclip" | |
fi | |
$XCLIP /dev/null | |
$XCLIP -selection clipboard /dev/null | |
$XCLIP -selection secondary /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment