~cyplo/dotfiles

ref: 1ca69547b9a678da7a89ac93b7822ac478a2ab7d dotfiles/tools/clipboard -rwxr-xr-x 174 bytes
1ca69547 — Cyryl Płotnicki update 5 months ago
                                                                                
1
2
3
4
5
6
7
#!/usr/bin/env bash
read contents
if [[ -x `which wl-copy > /dev/null 2>&1` ]]; then
    echo "$contents" | wl-copy
else
    echo "$contents" | xclip -selection clipboard
fi