12 lines
366 B
Bash
Executable file
12 lines
366 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
source "${HOME}/.local/lib/sp-functions"
|
|
|
|
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/"* "$HOME/Pictures/Screen Capture"
|