diff options
| author | Arpit Chakladar <arpitchakladar@proton.me> | 2026-04-13 16:38:55 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar@proton.me> | 2026-04-13 16:38:55 +0530 |
| commit | e87c356c8104c7c016c41fe477d0654056847343 (patch) | |
| tree | d6d8ccd6348ebd7fbff9d34102a6c2ff92263ec4 /modules/scripts/screen-recording.sh | |
| parent | 3292982abcfd60c75a1ef3bb1214d91e4ad144aa (diff) | |
| download | home-manager-config-e87c356c8104c7c016c41fe477d0654056847343.tar.gz home-manager-config-e87c356c8104c7c016c41fe477d0654056847343.zip | |
injecting variables into scripts so that they use the actual path of th binaries of the packages
Diffstat (limited to 'modules/scripts/screen-recording.sh')
| -rw-r--r-- | modules/scripts/screen-recording.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/scripts/screen-recording.sh b/modules/scripts/screen-recording.sh index c0e8525..5bd5ee9 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 \ |
