~cyplo/dotfiles

ref: 83ddcc09dc68389b129d598722eca9e90a6dff33 dotfiles/tools/clipboard -rwxr-xr-x 174 bytes
83ddcc09 — Cyryl Płotnicki remove broken i3 msg call 1 year, 10 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