From 6a42018cf2d55f9a8e8f9809415556cd50028590 Mon Sep 17 00:00:00 2001 From: awy Date: Wed, 30 Jul 2025 20:30:23 +0300 Subject: rofi --- .local/bin/dmenurecord | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to '.local/bin/dmenurecord') 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 } -- cgit v1.2.3