dotfiles/data/home/.local/bin/screenshot.sh

5 lines
133 B
Bash
Executable file

#!/bin/sh
name="screenshot-$(date +%s).png"
gnome-screenshot -a -f /tmp/$name
xclip -selection clipboard -t image/png -i /tmp/$name