clipboard: Sway builtin provider yank and paste commands

The configuration here is not super intuitive - in order to yank from
a clipboard provider we want it to paste the clipboard and in order to
paste to the clipboard we want it to yank the contents we pass.

This swaps the programs for yank and paste to align with that.

Ref #10839
pull/11898/head^2
Michael Davis 2 days ago
parent b855cd0cda
commit 467fad51b1
No known key found for this signature in database

@ -359,44 +359,44 @@ mod external {
command_provider! { command_provider! {
TMUX, TMUX,
yank => "tmux", "load-buffer", "-w", "-"; yank => "tmux", "save-buffer", "-";
paste => "tmux", "save-buffer", "-"; paste => "tmux", "load-buffer", "-w", "-";
} }
command_provider! { command_provider! {
PASTEBOARD, PASTEBOARD,
yank => "pbcopy"; yank => "pbpaste";
paste => "pbpaste"; paste => "pbcopy";
} }
command_provider! { command_provider! {
WL_CLIPBOARD, WL_CLIPBOARD,
yank => "wl-copy", "--type", "text/plain"; yank => "wl-paste", "--no-newline";
paste => "wl-paste", "--no-newline"; paste => "wl-copy", "--type", "text/plain";
yank_primary => "wl-copy", "-p", "--type", "text/plain"; yank_primary => "wl-paste", "-p", "--no-newline";
paste_primary => "wl-paste", "-p", "--no-newline"; paste_primary => "wl-copy", "-p", "--type", "text/plain";
} }
command_provider! { command_provider! {
XCLIP, XCLIP,
yank => "xclip", "-i", "-selection", "clipboard"; yank => "xclip", "-o", "-selection", "clipboard";
paste => "xclip", "-o", "-selection", "clipboard"; paste => "xclip", "-i", "-selection", "clipboard";
yank_primary => "xclip", "-i"; yank_primary => "xclip", "-o";
paste_primary => "xclip", "-o"; paste_primary => "xclip", "-i";
} }
command_provider! { command_provider! {
XSEL, XSEL,
yank => "xsel", "-i", "-b"; yank => "xsel", "-o", "-b";
paste => "xsel", "-o", "-b"; paste => "xsel", "-i", "-b";
yank_primary => "xsel", "-i"; yank_primary => "xsel", "-o";
paste_primary => "xsel", "-o"; paste_primary => "xsel", "-i";
} }
command_provider! { command_provider! {
WIN32, WIN32,
yank => "win32yank.exe", "-i", "--crlf"; yank => "win32yank.exe", "-o", "--lf";
paste => "win32yank.exe", "-o", "--lf"; paste => "win32yank.exe", "-i", "--crlf";
} }
command_provider! { command_provider! {
TERMUX, TERMUX,
yank => "termux-clipboard-set"; yank => "termux-clipboard-get";
paste => "termux-clipboard-get"; paste => "termux-clipboard-set";
} }
#[cfg(feature = "term")] #[cfg(feature = "term")]

Loading…
Cancel
Save