blob: 61e516c5eed96df33fba5a79156ba13276afd7dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
|