This file contains 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-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 | |
# Detect display server | |
display_server=$(echo $DISPLAY | cut -d: -f1) |