dotfiles/player/install.sh

25 lines
480 B
Bash
Executable File

#!/bin/bash
DIR=$(readlink -f $(dirname $0))
. $DIR/../env.sh
# install music and video player
case "$PM" in
apt)
sudo apt install -y mpd mpc ncmpcpp mpv
;;
pacman)
sudo pacman -S --needed mpd mpc ncmpcpp mpv
;;
esac
# enable for current user
systemctl --user enable mpd
systemctl --user start mpd
# symlink configuration
lnsf $DIR/config/mpd ~/.config/mpd
lnsf $DIR/config/ncmpcpp ~/.config/ncmpcpp
lnsf $DIR/config/mpv ~/.config/mpv