ss64-password-generators
ss64-password-generators copied to clipboard
(x)Ubuntu 14.04 incompatibility [gclip]
gclip
is not available in xUbuntu 14.04 standard repositories in any form.
Suggestion: use xsel -ib
instead, as it is a more basic yet functionally equivalent CLI program that works with the underlying X clipboard selection.
I modified the function ss64pwd_to_clipboard()
on my install to use xsel, and it's working great, here's the code:
ss64pwd_to_clipboard() {
if (($1==1)) && which xsel &> /dev/null
then
xsel -ib # consumes stdin
echo '(in clipboard)'
else
cat # consumes stdin
echo # newline before message
echo '(install xsel if you want it in the cliboard automatically)'
fi
}