# Display the commands on wofi
selection=cat ~/.histfile | wofi -p "Commands history" --show dmenu -i | cliphist store
# Then copy the selection to the clipboard
wl-copy "$selection"