From 385d9beb22a6afe4325c521cec52e924d5f9fcdc Mon Sep 17 00:00:00 2001 From: Ryan Kes Date: Sun, 12 Apr 2020 10:45:52 +0200 Subject: [PATCH] Added mpris support to mpv --- README.org | 1 + install | 11 +++++++++-- mpv/.config/firejail/mpv.local | 1 + 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 mpv/.config/firejail/mpv.local diff --git a/README.org b/README.org index 9a06d88..2771839 100644 --- a/README.org +++ b/README.org @@ -98,6 +98,7 @@ A repository of my personal configuration files. - [[https://github.com/gokcehan/lf][lf]] - [[https://github.com/phuhl/linux_notification_center][Lintux Notification Center]] - [[https://www.musicpd.org/][mpd]] +- [[https://mpv.io/][mpv]] - [[https://rybczak.net/ncmpcpp/][ncmpcpp]] - [[https://neomutt.org/][neomutt]] - [[https://neovim.io/][neovim]] diff --git a/install b/install index ad1c623..67a2781 100755 --- a/install +++ b/install @@ -1,10 +1,10 @@ #!/usr/bin/env fish # Prerequisite & inistalled apps -set prerequisiteApps bat broot brave caffeine-ng exa fslint fzf go graphviz isync imagemagick lightdm-gtk-greeter mailcap mpv deadd-notification-center-bin npm pamixer pfetch playerctl pulseaudio pulsemixer python pywal stow sxiv tldr udisks xwallpaper zathura +set prerequisiteApps bat broot brave caffeine-ng exa fslint fzf go graphviz isync imagemagick lightdm-gtk-greeter mailcap deadd-notification-center-bin npm pamixer pfetch playerctl pulseaudio pulsemixer python pywal stow sxiv tldr udisks2 xwallpaper zathura set prerequisiteFonts otf-nerd-fonts-fira-code noto-fonts ttf-unifont set prerequisiteLsp bash-language-server ccls php-language-server python-language-server typescript-language-server vscode-css-languageserver vscode-html-languageserver nodejs-intelephense -set configuredApps alacritty bspwm castero emacs firejail git gnupg gtk lf deadd-notification-center-bin mpd ncmpcpp neomutt neovim picom redshift sxhkd tmux tuir weechat +set configuredApps alacritty bspwm castero emacs firejail git gnupg gtk lf deadd-notification-center-bin mpd mpv mpv-mpris ncmpcpp neomutt neovim picom redshift sxhkd tmux tuir weechat set locales aspell-en hunspell-en_GB hunspell-en_US hunspell-nl function mkdir_if_not_exist @@ -68,6 +68,13 @@ mkdir_if_not_exist ~/.config/wal mkdir_if_not_exist ~/.config/weechat mkdir_if_not_exist ~/.config/X11 mkdir_if_not_exist ~/.gnupg +mkdir_if_not_exist ~/.config/mpv/scripts + +# Link mpv plugins if they don't exist +if [ ! -h ~/.config/mpv/scripts/mpris.so ] + echo "Linking mpris.so" + ln -s /usr/lib/mpv/mpris.so ~/.config/mpv/scripts/mpris.so +end for d in (find -- */ -maxdepth 0 -type d | cut -f1 -d '/') echo "Linking $d..." diff --git a/mpv/.config/firejail/mpv.local b/mpv/.config/firejail/mpv.local new file mode 100644 index 0000000..5988945 --- /dev/null +++ b/mpv/.config/firejail/mpv.local @@ -0,0 +1 @@ +ignore nodbus