fix copypasta

This commit is contained in:
thek4n 2025-11-16 21:56:53 +03:00
parent 2eb84883cd
commit c19b0ce18a
2 changed files with 4 additions and 4 deletions

View File

@ -5,10 +5,10 @@ set -eu
case "${OSTYPE:-}" in case "${OSTYPE:-}" in
"linux-gnu"*) "linux-gnu"*)
if [ -n "${WAYLAND_DISPLAY}" ]; then if [ -n "${WAYLAND_DISPLAY:-}" ]; then
wl-copy --trim-newline wl-copy --trim-newline
exit 0 exit 0
elif [ -n "${DISPLAY}" ]; then elif [ -n "${DISPLAY:-}" ]; then
xclip -selection clipboard -in xclip -selection clipboard -in
exit 0 exit 0
else else

View File

@ -5,10 +5,10 @@ set -eu
case "${OSTYPE:-}" in case "${OSTYPE:-}" in
"linux-gnu"*) "linux-gnu"*)
if [ -n "${WAYLAND_DISPLAY}" ]; then if [ -n "${WAYLAND_DISPLAY:-}" ]; then
wl-paste --no-newline wl-paste --no-newline
exit 0 exit 0
elif [ -n "${DISPLAY}" ]; then elif [ -n "${DISPLAY:-}" ]; then
xclip -selection clipboard -out xclip -selection clipboard -out
exit 0 exit 0
else else