diff options
Diffstat (limited to 'scripts/rofi-screenrecord')
| -rwxr-xr-x | scripts/rofi-screenrecord | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/rofi-screenrecord b/scripts/rofi-screenrecord new file mode 100755 index 0000000..61e516c --- /dev/null +++ b/scripts/rofi-screenrecord @@ -0,0 +1,21 @@ +#!/usr/bin/env bash + +screenrecord_args=$(printf '%b' ' DISPLAY\n DISPLAY+AUDIO\n DISPLAY+WEBCAM\n REGION\n REGION+AUDIO' | rofi -dmenu -p " Record Screen: " -i) + +case "$screenrecord_args" in +*DISPLAY) + screenrecord output + ;; +*DISPLAY+AUDIO) + screenrecord output --with-audio + ;; +*DISPLAY+WEBCAM) + screenrecord output --with-webcam --with-audio + ;; +*REGION) + screenrecord region + ;; +*REGION+AUDIO) + screenrecord region --with-audio + ;; +esac |
