Oooh I'm hypnotized
This commit is contained in:
parent
fab483191f
commit
a6b87ee942
10 changed files with 98 additions and 70 deletions
39
.local/bin/art
Executable file
39
.local/bin/art
Executable file
|
@ -0,0 +1,39 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Show icon in slstatus:
|
||||
# Video [ REC ]
|
||||
# Audio [ REC ]
|
||||
#
|
||||
# amolinae's recording tool
|
||||
screencast(){
|
||||
case $(printf "%s\n" " Mic ON" " Mic OFF" | fuzzel -d -l 3) in
|
||||
" Mic ON")
|
||||
wf-recorder -D -a -f ~/Videos/Recordings/recording_$(date +"%Y-%m-%d_%H:%M:%S.mp4") ;;
|
||||
" Mic OFF")
|
||||
wf-recorder -D --audio="$(pactl list short sources | grep output | awk '{print $2}')" -f ~/Videos/Recordings/recording_$(date +"%Y-%m-%d_%H:%M:%S.mp4") ;;
|
||||
esac
|
||||
}
|
||||
|
||||
video(){
|
||||
wf-recorder -D -f ~/Videos/Recordings/recording_$(date +"%Y-%m-%d_%H:%M:%S.mp4")
|
||||
}
|
||||
|
||||
kill(){
|
||||
killall -s SIGINT wf-recorder && \
|
||||
notify-send "art" "Recording stopped" || \
|
||||
notify-send "art" "No recording process found"
|
||||
}
|
||||
|
||||
menu(){
|
||||
case $(printf "%s\n" " Screencast" " Video only" " Stop recording" | fuzzel -d -l 4) in
|
||||
" Screencast") screencast;;
|
||||
" Video only") video;;
|
||||
" Stop recording") kill;;
|
||||
*) kill;;
|
||||
esac
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
-h) echo "usage: aws [-h]" >&2; exit 1; ;;
|
||||
*) menu ;;
|
||||
esac
|
Loading…
Add table
Add a link
Reference in a new issue