This commit is contained in:
coast 2025-06-01 20:22:15 +03:30
parent 3c79102a75
commit 40a2bf43b7
5 changed files with 20 additions and 0 deletions

BIN
.local/bin/cotray Executable file

Binary file not shown.

BIN
.local/bin/csi Executable file

Binary file not shown.

BIN
.local/bin/cviw Executable file

Binary file not shown.

BIN
.local/bin/define Executable file

Binary file not shown.

20
.local/bin/ecop.sh Executable file
View file

@ -0,0 +1,20 @@
#!/bin/sh
tmpfile=$(mktemp)
if "$@" >"$tmpfile"; then
if [ "$XDG_SESSION_TYPE" = "wayland" ]; then
cat "$tmpfile" | wl-copy
elif [ "$XDG_SESSION_TYPE" = "x11" ]; then
cat "$tmpfile" | xclip -selection clipboard
else
echo "UNKNOWN SESSION TYPE!! >> $XDG_SESSION_TYPE" >&2
rm -f "$tmpfile"
exit 1
fi
cat "$tmpfile"
rm -f "$tmpfile"
exit 0
else
cat "$tmpfile"
rm -f "$tmpfile"
exit 1
fi