This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Forked from https://gist.github.com/varenc/e4a22145c484771f254fa20982e2cd7f | |
## 2024-08-26: Update wayland detection method to work in Zellij and over SSH. | |
## 2024-03-30: Ported it to Linux, added display detection and customizable copy/paste commands | |
## Using environment variables | |
## 2020-05-16: Changed `echo` to `printf` so that backslashes are not interpretted by echo | |
## and so that CUTBUFFER shows up exactly in the pasteboard without modification | |
## If running on Wayland, use wl-clipboard |