Skip to content

Instantly share code, notes, and snippets.

@vulpicastor
Created February 25, 2017 20:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vulpicastor/f38db19169228132b0c037ee30594c28 to your computer and use it in GitHub Desktop.
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
#!/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