dotfiles/.config/wm_scripts/screenshot.sh

35 lines
485 B
Bash
Raw Normal View History

2021-02-18 22:18:26 +08:00
#!/bin/bash
#dmenu script for screenshots
CUSTOM_SCRIPTS_FILE=~/.custom_bash_scripts
if test -f $CUSTOM_SCRIPTS_FILE; then
source $CUSTOM_SCRIPTS_FILE
else
echo ".custom_bash_scripts.sh does not exist."
fi
options="
1) Fullscreen\n\
2) Selection\n\
3) Record screen\n\
2021-02-18 22:18:26 +08:00
"
#echo -e $options
# -i case insensitive
# -l vertical lines
option=$(echo -e $options | dmenu -i)
#echo "\"$option\""
case $option in
1*)
sleep 0.5
f_scrot
;;
2*)
s_scrot
;;
2*)
ffmpeg_record
;;
2021-02-18 22:18:26 +08:00
esac