9 lines
196 B
Bash
Executable file
9 lines
196 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
session="$(loginctl show-session "$(loginctl | grep "$(whoami)" | awk '{print $1}')" -p Type)"
|
|
|
|
if [ "$session" = "Type=x11" ]; then
|
|
exec xsel -b -o
|
|
else
|
|
exec wl-paste
|
|
fi
|