Extract mpd/ncmpcpp config from os/arch to shell/mpd

This commit is contained in:
Henrik Lissner 2016-12-25 15:54:05 -05:00
parent c0c628823c
commit 143741c261
5 changed files with 16 additions and 3 deletions

View file

@ -78,8 +78,6 @@ EOL
$pacaur -S bspwm sxhkd compton $pacaur -S bspwm sxhkd compton
# Taskbar # Taskbar
$pacaur -S lemonbar-xft-git siji-git xtitle sutils-git dunst libnotify $pacaur -S lemonbar-xft-git siji-git xtitle sutils-git dunst libnotify
# Music player
$pacaur -S mpd mpc ncmpcpp
# Utilities # Utilities
$pacaur -S rofi feh sxiv maim slop-opengl neofetch-git pass youtube-dl xdotool $pacaur -S rofi feh sxiv maim slop-opengl neofetch-git pass youtube-dl xdotool
# Apps # Apps
@ -91,7 +89,6 @@ EOL
systemctl enable --user redshift.service systemctl enable --user redshift.service
systemctl enable --user rslsync.service systemctl enable --user rslsync.service
systemctl enable --user mpd.service
# FIXME Install pacman hooks # FIXME Install pacman hooks
hookdest=/etc/pacman.d/hooks hookdest=/etc/pacman.d/hooks

16
shell/mpd/install Executable file
View file

@ -0,0 +1,16 @@
#!/usr/bin/env bash
case $OSTYPE in
darwin*)
brew install mpd mpc
brew install ncmpcpp --with-clock --with-visualizer
brew services start mpd
;;
linux*)
if [[ -f /etc/arch-version ]]; then
sudo pacman --needed --noconfirm -S mpd mpc ncmpcpp
systemctl enable --user mpd.service
systemctl start --user mpd.service
fi
;;
esac