This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

tools.lockscreen: read also webm files

+1 -1
+1 -1
tools/lockscreen/flake-module.nix
··· 13 13 pkgs.mpvpaper 14 14 ]; 15 15 text = '' 16 - VIDEO=$(shuf -n1 -e "$HOME"/lockscreens/*.mp4) 16 + VIDEO=$(find "$HOME"/lockscreens/*.{mp4,webm} | shuf -n 1) 17 17 DURATION=$(ffprobe -v error -show_entries format=duration -of csv=p=0 "$VIDEO" 2>/dev/null | cut -d. -f1) 18 18 START=$((RANDOM % ''${DURATION:-300})) 19 19 exec swaylock-plugin --command "mpvpaper -o \"no-audio loop start=$START\" '*' \"$VIDEO\"" "$@"