sway-dotfiles/screenshot.sh

7 lines
183 B
Bash
Executable File

#!/bin/bash
FILENAME="screenshot-$(date +%F-%T).png"
SCREENSHOT_PATH="$HOME/Pictures/screenshots/$FILENAME"
swaymsg screenshot -o $SCREENSHOT_PATH
echo -n $SCREENSHOT_PATH | wl-copy