mirror of
https://github.com/Cametendo/MyI3Config-fork.git
synced 2026-03-18 03:40:20 +01:00
added compatibility with sway
This commit is contained in:
9
scripts/screenshot.sh
Executable file
9
scripts/screenshot.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -n "$SWAYSOCK" ]; then
|
||||
# Sway
|
||||
grim -g "$(slurp)" - | wl-copy
|
||||
else
|
||||
# i3
|
||||
maim -s | xclip -selection clipboard -t image/png
|
||||
fi
|
||||
Reference in New Issue
Block a user