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

10 lines
309 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 "${HOME}/Pictures/Screen Capture/"
#"'${sc_dir}'"