🐛 fix(rofi): update clipboard if an item is selected
This commit is contained in:
parent
deb70d53a8
commit
3805b4e6d3
1 changed files with 4 additions and 1 deletions
|
@ -4,5 +4,8 @@ if ! command -v cliphist >/dev/null 2>&1; then
|
|||
notify-send "Program not found" "Make sure you have installed cliphist"
|
||||
exit 1
|
||||
else
|
||||
cliphist list | rofi -dmenu | cliphist decode | wl-copy
|
||||
set -e
|
||||
|
||||
selection="$(cliphist list | rofi -dmenu -i)"
|
||||
cliphist decode <<<"$selection" | wl-copy
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue