dotfiles/de/home/.config/sway/scripts/screenshot.sh
2026-03-03 11:23:26 -08:00

9 lines
270 B
Bash
Executable file

#!/usr/bin/env bash
op=$(echo -e "Output\nWindow\nRegion" | wofi -i --dmenu --width 250 --height 260 -k /dev/null | awk '{print tolower($1)}')
sc_dir="${HOME}/Pictures/Screen Capture"
sleep 0.25
mkdir -p "${sc_dir}"
sway-screenshot -m $op --output-folder "${sc_dir}"