dotfiles/player/install.sh

25 lines
480 B
Bash
Raw Normal View History

2020-09-17 16:02:24 +00:00
#!/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)
2020-09-18 18:01:58 +00:00
sudo pacman -S --needed mpd mpc ncmpcpp mpv
2020-09-17 16:02:24 +00:00
;;
esac
2020-09-19 01:23:38 +00:00
# enable for current user
systemctl --user enable mpd
systemctl --user start mpd
2020-09-17 16:02:24 +00:00
# symlink configuration
lnsf $DIR/config/mpd ~/.config/mpd
lnsf $DIR/config/ncmpcpp ~/.config/ncmpcpp
lnsf $DIR/config/mpv ~/.config/mpv