13 lines
372 B
Bash
Executable file
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}"
|