howto:vlc-playlist-from-file
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| howto:vlc-playlist-from-file [2022/09/07 22:53] – [Linux] Wuff | howto:vlc-playlist-from-file [2023/05/29 11:55] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 15: | Line 15: | ||
| ====== Associate VLC to webm videos ====== | ====== Associate VLC to webm videos ====== | ||
| - | Gnome uses two lists (located | + | Gnome uses two lists to register applications to file types located |
| + | * / | ||
| + | * / | ||
| + | * ~/ | ||
| < | < | ||
| #manually | #manually | ||
| sudo vi / | sudo vi / | ||
| sudo vi / | sudo vi / | ||
| + | vi ~/ | ||
| + | |||
| #or via sed: | #or via sed: | ||
| sudo sed -i ' | sudo sed -i ' | ||
| - | sudo sed -i ' | ||
| sudo sed -i ' | sudo sed -i ' | ||
| + | sudo sed -i ' | ||
| + | sed -i ' | ||
| + | sed -i ' | ||
| </ | </ | ||
| Line 56: | Line 63: | ||
| note: source from github adjusted to sort numbers as Versions like nemo file manager does. | note: source from github adjusted to sort numbers as Versions like nemo file manager does. | ||
| - | < | + | < |
| #!/bin/bash | #!/bin/bash | ||
| Line 77: | Line 84: | ||
| # count files with matching extension, and get position of filename in current directory | # count files with matching extension, and get position of filename in current directory | ||
| - | n=$(ls " | + | n=$(ls " |
| - | pos=$(ls " | + | pos=$(ls " |
| # if the filename does not have one of the extension above, launch vlc with provided filename | # if the filename does not have one of the extension above, launch vlc with provided filename | ||
| Line 87: | Line 94: | ||
| # change positions in playlist such as the first element is the opened file | # change positions in playlist such as the first element is the opened file | ||
| - | ls " | + | ls " |
| - | ls " | + | ls " |
| # launch playlist | # launch playlist | ||
| - | IFS=$' | + | IFS=$' |
| </ | </ | ||
| Line 114: | Line 121: | ||
| powershell -File %USERPROFILE%\vlc.ps1 %1 | powershell -File %USERPROFILE%\vlc.ps1 %1 | ||
| </ | </ | ||
| - | < | + | < |
| Param([string]$filename) | Param([string]$filename) | ||
| Line 157: | Line 164: | ||
| When you start VLC you get a new menu item: View > Move currently playing file into wastebasket. | When you start VLC you get a new menu item: View > Move currently playing file into wastebasket. | ||
| - | < | + | < |
| --[[ | --[[ | ||
| INSTALLATION (create directories if they do not exist): | INSTALLATION (create directories if they do not exist): | ||
| Line 308: | Line 315: | ||
| https:// | https:// | ||
| - | < | + | < |
| --[[ | --[[ | ||
| Copyright 2015-2019 surrim | Copyright 2015-2019 surrim | ||
howto/vlc-playlist-from-file.1662587597.txt.gz · Last modified: (external edit)