configs/desktop/scripts/print-fullscreen.sh

13 lines
304 B
Bash
Raw Normal View History

2022-08-19 16:23:29 -03:00
#!/bin/bash
2023-10-09 17:55:47 -03:00
name="$HOME/pics/screenshots/screenshot-$(date -Iseconds | cut -d '+' -f1).png"
if [[ $XDG_SESSION_TYPE == "x11" ]]; then
maim -u -n -l -c 0.157,0.333,0.466,0.4 $name
xclip -selection clipboard -t image/png $name
fi
2022-08-19 16:23:29 -03:00
2023-10-09 17:55:47 -03:00
if [[ $XDG_SESSION_TYPE == "wayland" ]]; then
grim $name
2024-09-09 23:09:39 -03:00
$name
2023-10-09 17:55:47 -03:00
fi
2022-08-19 16:23:29 -03:00