10 lines
240 B
Bash
Executable File
10 lines
240 B
Bash
Executable File
#!/bin/bash
|
|
# Clipboard menu using cliphist and rofi
|
|
|
|
selection=$(cliphist list | rofi -dmenu -p "Clipboard")
|
|
|
|
# Only copy if something was actually selected
|
|
if [ -n "$selection" ]; then
|
|
echo "$selection" | cliphist decode | wl-copy
|
|
fi
|