2023-10-02 08:17:11 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# ____ _ _ _ _ _
|
|
|
|
# / ___| (_)_ __ | |__ (_)___| |_
|
|
|
|
# | | | | | '_ \| '_ \| / __| __|
|
|
|
|
# | |___| | | |_) | | | | \__ \ |_
|
|
|
|
# \____|_|_| .__/|_| |_|_|___/\__|
|
|
|
|
# |_|
|
|
|
|
#
|
|
|
|
# by Stephan Raabe (2023)
|
|
|
|
# -----------------------------------------------------
|
|
|
|
|
|
|
|
case $1 in
|
2023-11-13 12:37:27 +00:00
|
|
|
d) cliphist list | rofi -dmenu -replace -config ~/dotfiles/rofi/config-cliphist.rasi | cliphist delete
|
2023-10-02 08:17:11 +00:00
|
|
|
;;
|
|
|
|
|
|
|
|
w) if [ `echo -e "Clear\nCancel" | rofi -dmenu -config ~/dotfiles/rofi/config-short.rasi` == "Clear" ] ; then
|
|
|
|
cliphist wipe
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
|
2023-11-13 12:37:27 +00:00
|
|
|
*) cliphist list | rofi -dmenu -replace -config ~/dotfiles/rofi/config-cliphist.rasi | cliphist decode | wl-copy
|
2023-10-02 08:17:11 +00:00
|
|
|
;;
|
|
|
|
esac
|