No history when launching from sway
najjt opened this issue · 2 comments
najjt commented
Hi,
First of all, thank you for making cliphist.
I have added the following to my ~/.config/sway/config
file:
exec wl-paste --watch cliphist store
set $clip cliphist list | rofi -dmenu -P "Clipboard" | cliphist decode | wl-copy
bindsym $mod+c exec $clip
This successfully shows rofi, but without clipboard items. If I launch these commands from the terminal, it works. I am unsure of how to proceed with this issue and am thankful for any help.
sentriz commented
hm, can sway read XDG_CACHE_HOME? what does $ swaymsg 'exec notify-send dir: $XDG_CACHE_HOME'
do? (single quotes so your shell doesnt interpret the env var)