aboutsummaryrefslogtreecommitdiffstats
path: root/modules/scripts/screen-recording.sh
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar@proton.me>2026-04-24 02:38:36 +0530
committerArpit Chakladar <arpitchakladar@proton.me>2026-04-24 02:38:36 +0530
commit6b059721a5b45f68952fa17da6e907ed1757c7d7 (patch)
treea35e1c8d0821880f258a7eb1f40c39799fbef250 /modules/scripts/screen-recording.sh
parentfa87c6d8869afaa7c1f7e7ac63ebde445837e53b (diff)
downloadhome-manager-config-6b059721a5b45f68952fa17da6e907ed1757c7d7.tar.gz
home-manager-config-6b059721a5b45f68952fa17da6e907ed1757c7d7.zip
relying on path variable for accessing the binaries in the script rather than passing them as env variables
Diffstat (limited to 'modules/scripts/screen-recording.sh')
-rw-r--r--modules/scripts/screen-recording.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/scripts/screen-recording.sh b/modules/scripts/screen-recording.sh
index 5bd5ee9..c0e8525 100644
--- a/modules/scripts/screen-recording.sh
+++ b/modules/scripts/screen-recording.sh
@@ -34,10 +34,10 @@ if command -v xwininfo >/dev/null 2>&1; then
fi
if [ "$SELECT_MODE" = true ]; then
- if command -v "$SLOP" >/dev/null 2>&1; then
+ if command -v slop >/dev/null 2>&1; then
echo -e "${YELLOW}Select a window or draw a box...${NC}"
# slop output: 123 456 10 20
- read -r W H X Y < <("$SLOP" -f "%w %h %x %y" --nokeyboard)
+ read -r W H X Y < <(slop -f "%w %h %x %y" --nokeyboard)
if [ -n "$W" ]; then
WIDTH=$W
@@ -67,7 +67,7 @@ echo "File: $FILENAME"
echo "------------------------------------------------"
# We pass arguments explicitly here to avoid "Unrecognized option" shell errors
-"$FFMPEG" -hide_banner \
+ffmpeg -hide_banner \
-f x11grab \
-video_size "${WIDTH}x${HEIGHT}" \
-framerate 30 \