#!/bin/bash # forcer l'affichage liste de lecture if [ $# -eq 1 ] then source=/dev/sr$1 else source=/dev/sr0 fi if `grep -qe '^\s*playlist-visible=\(true\|false\)' ~/.config/vlc/vlc-qt-interface.conf` then sed -e 's/^\s*playlist-visible=false/playlist-visible=true/' -i ~/.config/vlc/vlc-qt-interface.conf else sed -e 's/\[MainWindow\]/[MainWindow]\nplaylist-visible=true/' -i ~/.config/vlc/vlc-qt-interface.conf fi vlc -q cdda://$source