sway-profiles/debian/sway-profiles/usr/bin/sp-screenshot
Penelope Gwen 3493dfb909 v0.3.7
2024-10-29 14:21:32 -07:00

13 lines
372 B
Bash
Executable file

#!/usr/bin/env bash
source "/usr/lib/sp-functions"
source "${conf_dir}/config"
op=$( echo -e "Output\nWindow\nRegion" | wofi -i --dmenu --width 250 --height 260 | awk '{print tolower($1)}' )
echo "$op"
sleep 0.5
mkdir -p "${cache_dir}/screenshots/"
sway-screenshot -m $op --output-folder "${cache_dir}/screenshots/"
mv "${cache_dir}/screenshots/"* "${screenshot_dir}"