Make this work on Xorg

master
kageru 8 months ago
parent
commit
173781f4c7
  1. 4
      ppsh

@ -15,7 +15,7 @@ generate_name() {
}
capture() {
if [ -n WAYLAND_DISPLAY ]; then
if [ -n "$WAYLAND_DISPLAY" ]; then
slurp | grim -g - "$1"
else
maim -suk "$1"
@ -23,7 +23,7 @@ capture() {
}
clipboard() {
if [ -n WAYLAND_DISPLAY ]; then
if [ -n "$WAYLAND_DISPLAY" ]; then
wl-copy "$1"
else
echo "$1" | xsel -b

Loading…
Cancel
Save