bin/roficlipster

19 lines
528 B
Plaintext
Raw Normal View History

2023-08-10 10:23:05 +02:00
#!/usr/bin/env bash
set -euo pipefail
if ! test -x "$(command -v clipster)"; then
if ! test -d "${HOME}/.local/bin"; then
mkdir "${HOME}/.local/bin"
fi
wget -q -O "${HOME}/.local/bin/clipster" https://raw.githubusercontent.com/mrichar1/clipster/master/clipster
chmod +x "${HOME}/.local/bin/clipster"
fi
2023-08-20 06:35:03 +02:00
if ! test -x "$(command -v xclip)"; then
exit 1
fi
clipster -n 0 -o -n 0 -c | rofi -dmenu -format s -i -sep nul -p "Clipster" -theme-str 'window { width: 60em; }' | xclip -selection clipboard