diff --git a/roficlipster b/roficlipster index 46f4a34..6e2659e 100755 --- a/roficlipster +++ b/roficlipster @@ -11,4 +11,8 @@ if ! test -x "$(command -v clipster)"; then chmod +x "${HOME}/.local/bin/clipster" fi -clipster -n 0 -o -n 0 -c | rofi -dmenu -format i -i -sep nul -p "Clipster" +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