Switch to xclip from xsel

This commit is contained in:
Leon Grünewald 2020-07-15 11:48:04 +02:00
parent 6a3c7b8b74
commit fd117d7747

View file

@ -7,7 +7,8 @@ if session_type == nil or session_type == "" then
end end
function decode_clipboard_x11() function decode_clipboard_x11()
awful.spawn("sh -c \"sel --clipboard | sed 's/^ *//g' | gpg2 -d | gvim -\"") naughty.notify({ text = "Decoding PGP message" })
awful.spawn.with_shell("xclip -selection clipboard -out | sed 's/^ *//g' | gpg2 -d | gvim -")
end end
function decode_clipboard_wayland() function decode_clipboard_wayland()