mpv-cam-view/new

10 lines
230 B
Bash
Executable File

#!/bin/sh
_cam_directory='cams'
mkdir -p "$_cam_directory"
echo '#!/bin/sh' >> "$_cam_directory/$1"
echo "bspc rule --add mpv --one-shot state=tiled && mpv \"$2\" & disown" >> "$_cam_directory/$1"
chmod +x "$_cam_directory/$1"