diff --git a/home/.chezmoiscripts/linux/run_onchange_after_97-prune-chezmoi-binary.sh.tmpl b/home/.chezmoiscripts/linux/run_onchange_after_97-prune-chezmoi-binary.sh.tmpl new file mode 100644 index 0000000..e48e4c0 --- /dev/null +++ b/home/.chezmoiscripts/linux/run_onchange_after_97-prune-chezmoi-binary.sh.tmpl @@ -0,0 +1,9 @@ +#!/bin/bash + +# {{ template "scripts-library" }} + +# The following line is for ShellCheck to correctly identify the above include +true || source ../.chezmoitemplates/scripts-library + +log_task "Temporary wl-copy (wl-clipboard) workaround" +systemctl --user enable symlink-wayland-socket.service diff --git a/home/dot_config/systemd/user/symlink-wayland-socket.service b/home/dot_config/systemd/user/symlink-wayland-socket.service new file mode 100644 index 0000000..0222a9b --- /dev/null +++ b/home/dot_config/systemd/user/symlink-wayland-socket.service @@ -0,0 +1,12 @@ +# https://github.com/microsoft/WSL/issues/11261 + +[Unit] +Description=Symlink Wayland socket to XDG_RUNTIME_DIR + +[Service] +Type=oneshot +ExecStart=/usr/bin/ln -s /mnt/wslg/runtime-dir/wayland-0 $XDG_RUNTIME_DIR +ExecStart=/usr/bin/ln -s /mnt/wslg/runtime-dir/wayland-0.lock $XDG_RUNTIME_DIR + +[Install] +WantedBy=default.target \ No newline at end of file