added compatibility with sway

This commit is contained in:
Jürg Hallenbarter
2026-02-09 11:42:36 +00:00
parent 91b07e4589
commit 1a8b6dc83b
12 changed files with 341 additions and 132 deletions

9
scripts/screenshot.sh Executable file
View 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