uwu
This commit is contained in:
parent
3c79102a75
commit
40a2bf43b7
5 changed files with 20 additions and 0 deletions
BIN
.local/bin/cotray
Executable file
BIN
.local/bin/cotray
Executable file
Binary file not shown.
BIN
.local/bin/csi
Executable file
BIN
.local/bin/csi
Executable file
Binary file not shown.
BIN
.local/bin/cviw
Executable file
BIN
.local/bin/cviw
Executable file
Binary file not shown.
BIN
.local/bin/define
Executable file
BIN
.local/bin/define
Executable file
Binary file not shown.
20
.local/bin/ecop.sh
Executable file
20
.local/bin/ecop.sh
Executable 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
|
||||||
Loading…
Add table
Reference in a new issue