aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortwells46 <tom@wellsth.com>2026-01-01 08:59:03 -0600
committertwells46 <tom@wellsth.com>2026-01-01 08:59:03 -0600
commit57cb004b71a9a9f688418da05cf88cc670b69f0f (patch)
tree9bdd937f6a8126b1c4e565a71706bea0884a1bb5
parent0a424b81fd7e4f24b111f53cfca5d1ca28fc6950 (diff)
Cleanup x11 vs wayland commands
-rw-r--r--dot_config/kak/kakrc.tmpl (renamed from dot_config/kak/kakrc)10
-rw-r--r--dot_config/newsraft/config.tmpl (renamed from dot_config/newsraft/config)4
2 files changed, 12 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:
diff --git a/dot_config/newsraft/config b/dot_config/newsraft/config.tmpl
index 8b95559..17da714 100644
--- a/dot_config/newsraft/config
+++ b/dot_config/newsraft/config.tmpl
@@ -1,4 +1,8 @@
+{{- if eq .wm "x11" -}}
copy-to-clipboard-command "xsel -ib"
+{{- else }}
+copy-to-clipboard-command "wl-copy"
+{{- end }}
bind a mark-read
bind u mark-unread