diff options
author | awy <awy@awy.one> | 2025-07-30 20:30:23 +0300 |
---|---|---|
committer | awy <awy@awy.one> | 2025-07-30 20:30:23 +0300 |
commit | 6a42018cf2d55f9a8e8f9809415556cd50028590 (patch) | |
tree | 93e6871b100832b6fd0942e4586729c7580270a3 /.local/bin/dmenurecord | |
parent | bd77fbce81efc16fc91dd7cc9d9807e27d70d064 (diff) | |
download | hyprdots-6a42018cf2d55f9a8e8f9809415556cd50028590.tar.gz |
rofi
Diffstat (limited to '.local/bin/dmenurecord')
-rwxr-xr-x | .local/bin/dmenurecord | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/.local/bin/dmenurecord b/.local/bin/dmenurecord index 6f51f5f..6d6af9c 100755 --- a/.local/bin/dmenurecord +++ b/.local/bin/dmenurecord @@ -1,7 +1,7 @@ #!/bin/sh # Usage: -# `$0`: Ask for recording type via mew +# `$0`: Ask for recording type via rofi -dmenu # `$0 screencast`: Record both audio and screen # `$0 video`: Record only screen # `$0 audio`: Record only audio @@ -11,7 +11,7 @@ getdim() { screens=$(hyprctl monitors | grep Monitor | cut -d' ' -f2) - choice=$(printf "$screens\nExit\n" | mew) + choice=$(printf "$screens\nExit\n" | rofi -dmenu) [ "${choice}" != "Exit" ] || [ -z "${choice}" ] || exit && echo $choice } @@ -77,7 +77,7 @@ audio() { \ } askrecording() { \ - choice=$(printf "screencast\\nvideo\\nvideo selected\\naudio\\nwebcam\\nwebcam (hi-def)" | mew -i -p "Select recording style:") + choice=$(printf "screencast\\nvideo\\nvideo selected\\naudio\\nwebcam\\nwebcam (hi-def)" | rofi -dmenu -i -p "Select recording style:") case "$choice" in screencast) screencast;; audio) audio;; @@ -89,7 +89,7 @@ askrecording() { \ } asktoend() { \ - response=$(printf "No\\nYes" | mew -i -p "Recording still active. End recording?") && + response=$(printf "No\\nYes" | rofi -dmenu -i -p "Recording still active. End recording?") && [ "$response" = "Yes" ] && killrecording } |