diff options
| author | awy <awy@awy.one> | 2025-11-21 12:22:31 +0300 |
|---|---|---|
| committer | awy <awy@awy.one> | 2025-11-21 12:22:31 +0300 |
| commit | bccf11641387327e57f9a940b79e8613a028da89 (patch) | |
| tree | fbd7df17345b178f34ed9104e10e32a2c0318ee3 /.local/bin | |
| parent | 952c2382a373f7f8aaa5a32e97d984157944501c (diff) | |
| download | hyprdots-bccf11641387327e57f9a940b79e8613a028da89.tar.gz | |
up
Diffstat (limited to '.local/bin')
| -rwxr-xr-x | .local/bin/dmenurecord | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/.local/bin/dmenurecord b/.local/bin/dmenurecord index b81f4d7..58b4411 100755 --- a/.local/bin/dmenurecord +++ b/.local/bin/dmenurecord @@ -1,5 +1,10 @@ #!/bin/sh +getdim() { + gpu-screen-recorder --list-capture-options | sed 's/|[0-9]\{1,\}x[0-9]\{1,\}//g' \ + | mew -p "Select output: " +} + updateicon() { \ echo "$1" > /tmp/recordingicon pkill -RTMIN+9 "${STATUSBAR:-waybar}" @@ -15,7 +20,7 @@ killrecording() { } screencast() { gpu-screen-recorder \ - -w portal \ + -w "$(getdim)" \ -fm content \ -f 60 \ -a default_output \ @@ -26,7 +31,7 @@ screencast() { gpu-screen-recorder \ } video() { gpu-screen-recorder \ - -w portal \ + -w "$(getdim)" \ -fm content \ -f 60 \ -o "$HOME/video-$(date '+%y%m%d-%H%M-%S').mkv" & @@ -63,7 +68,7 @@ audio() { \ } replay() { gpu-screen-recorder \ - -w portal \ + -w "$(getdim)" \ -fm content \ -f 60 \ -r 60 \ |