aboutsummaryrefslogtreecommitdiff
path: root/dot_config/kak
diff options
context:
space:
mode:
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: