Adjust enabled modules and add ffmpeg_dl

Disable Zed remote server, VirtualBox and Exercism modules.
Enable Pixieditor and Gedit editors.
Add ffmpeg_dl Bash function to download streams via ffmpeg.
This commit is contained in:
2026-04-21 01:19:59 +02:00
parent f912025218
commit 5ddc8f7686
3 changed files with 26 additions and 5 deletions
+21
View File
@@ -140,5 +140,26 @@ _: {
pwdtail() {
pwd | awk -F/ '{nlast = NF -1;print $nlast"/"$NF}'
}
ffmpeg_dl() {
# Sprawdzenie liczby argumentów
if [ "$#" -ne 3 ]; then
echo "Usage: ffmpeg_dl <url> <name> <fs_path>"
return 1
fi
local url="$1"
local name="$2"
local fs_path="$3"
# Tworzy katalog docelowy, jeśli nie istnieje
mkdir -p "$fs_path"
# Pełna ścieżka do pliku wyjściowego
local output="${"$"}{fs_path}/${"$"}{name}.mp4"
# Uruchamia ffmpeg kopiowanie strumienia bez rekompresji
ffmpeg -i "$url" -c copy "$output"
}
'';
}