dotfiles/.config/rofi/scripts/clipboard/clipboard
2025-05-24 20:40:18 +02:00

11 lines
253 B
Bash
Executable file

#!/bin/bash
if ! command -v cliphist >/dev/null 2>&1; then
notify-send "Program not found" "Make sure you have installed cliphist"
exit 1
else
set -e
selection="$(cliphist list | rofi -dmenu -i)"
cliphist decode <<<"$selection" | wl-copy
fi