diff options
| author | twells46 <tom@wellsth.com> | 2026-01-01 08:59:03 -0600 |
|---|---|---|
| committer | twells46 <tom@wellsth.com> | 2026-01-01 08:59:03 -0600 |
| commit | 57cb004b71a9a9f688418da05cf88cc670b69f0f (patch) | |
| tree | 9bdd937f6a8126b1c4e565a71706bea0884a1bb5 /dot_config/kak | |
| parent | 0a424b81fd7e4f24b111f53cfca5d1ca28fc6950 (diff) | |
Cleanup x11 vs wayland commands
Diffstat (limited to 'dot_config/kak')
| -rw-r--r-- | dot_config/kak/kakrc.tmpl (renamed from dot_config/kak/kakrc) | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/dot_config/kak/kakrc b/dot_config/kak/kakrc.tmpl index 4b11572..729889b 100644 --- a/dot_config/kak/kakrc +++ b/dot_config/kak/kakrc.tmpl @@ -17,8 +17,14 @@ set-option global scrolloff 5,5 map global normal <c-v> ":comment-line<ret>" # System clipboard bindings -map global user y "<a-|>cp.sh<ret>" -docstring "[Y]ank to system clipboard" -map global user p "|put.sh<ret>" -docstring "[P]ut from system clipboard" +{{- if eq .wm "x11" }} +map global user y "<a-|>xsel -ib<ret>" -docstring "[Y]ank to system clipboard" +map global user p "|xsel -ob<ret>" -docstring "[P]ut from system clipboard" +{{- else }} +map global user y "<a-|>wl-copy<ret>" -docstring "[Y]ank to system clipboard" +map global user p "|wl-paste<ret>" -docstring "[P]ut from system clipboard" +{{- end }} + ### A note on the /dev/null black magic ### # %sh is synchronous by design. It will wait for: |