Make this work on Xorg
This commit is contained in:
parent
d6d0050233
commit
173781f4c7
4
ppsh
4
ppsh
|
@ -15,7 +15,7 @@ generate_name() {
|
||||||
}
|
}
|
||||||
|
|
||||||
capture() {
|
capture() {
|
||||||
if [ -n WAYLAND_DISPLAY ]; then
|
if [ -n "$WAYLAND_DISPLAY" ]; then
|
||||||
slurp | grim -g - "$1"
|
slurp | grim -g - "$1"
|
||||||
else
|
else
|
||||||
maim -suk "$1"
|
maim -suk "$1"
|
||||||
|
@ -23,7 +23,7 @@ capture() {
|
||||||
}
|
}
|
||||||
|
|
||||||
clipboard() {
|
clipboard() {
|
||||||
if [ -n WAYLAND_DISPLAY ]; then
|
if [ -n "$WAYLAND_DISPLAY" ]; then
|
||||||
wl-copy "$1"
|
wl-copy "$1"
|
||||||
else
|
else
|
||||||
echo "$1" | xsel -b
|
echo "$1" | xsel -b
|
||||||
|
|
Loading…
Reference in New Issue
Block a user