commit 32b70484ff58b7cd269ea5cec5004df39211c7fa
parent d468ff425d6dba3f431b05bfe247169d0521a8f2
Author: awy <awy@awy.one>
Date: Thu, 20 Mar 2025 15:23:16 +0300
dmenurecord
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/.local/bin/dmenurecord b/.local/bin/dmenurecord
@@ -1,7 +1,7 @@
#!/bin/sh
# Usage:
-# `$0`: Ask for recording type via dmenu
+# `$0`: Ask for recording type via wmenu
# `$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" | bemenu)
+ choice=$(printf "$screens\nExit\n" | wmenu -N 2e3440 -n d8dee9 -S eacb8a -s 3b4252 -M eacb8a -m 3b4252 -f "monospace 12")
[ "${choice}" != "Exit" ] || [ -z "${choice}" ] || exit &&
echo $choice
}
@@ -77,7 +77,7 @@ audio() { \
}
askrecording() { \
- choice=$(printf "screencast\\nvideo\\nvideo selected\\naudio\\nwebcam\\nwebcam (hi-def)" | bemenu -i -p "Select recording style:")
+ choice=$(printf "screencast\\nvideo\\nvideo selected\\naudio\\nwebcam\\nwebcam (hi-def)" | wmenu -N 2e3440 -n d8dee9 -S eacb8a -s 3b4252 -M eacb8a -m 3b4252 -f "monospace 12" -i -p "Select recording style:")
case "$choice" in
screencast) screencast;;
audio) audio;;
@@ -89,7 +89,7 @@ askrecording() { \
}
asktoend() { \
- response=$(printf "No\\nYes" | bemenu -i -p "Recording still active. End recording?") &&
+ response=$(printf "No\\nYes" | wmenu -N 2e3440 -n d8dee9 -S eacb8a -s 3b4252 -M eacb8a -m 3b4252 -f "monospace 12" -i -p "Recording still active. End recording?") &&
[ "$response" = "Yes" ] && killrecording
}