From 143741c2613275e19c34eb4811b0ccbe47773743 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 25 Dec 2016 15:54:05 -0500 Subject: [PATCH] Extract mpd/ncmpcpp config from os/arch to shell/mpd --- os/arch/install | 3 --- {os/arch => shell/mpd}/.config/mpd/mpd.conf | 0 {os/arch => shell/mpd}/.ncmpcpp/bindings | 0 {os/arch => shell/mpd}/.ncmpcpp/config | 0 shell/mpd/install | 16 ++++++++++++++++ 5 files changed, 16 insertions(+), 3 deletions(-) rename {os/arch => shell/mpd}/.config/mpd/mpd.conf (100%) rename {os/arch => shell/mpd}/.ncmpcpp/bindings (100%) rename {os/arch => shell/mpd}/.ncmpcpp/config (100%) create mode 100755 shell/mpd/install diff --git a/os/arch/install b/os/arch/install index 4f4bdb57..4af4517c 100755 --- a/os/arch/install +++ b/os/arch/install @@ -78,8 +78,6 @@ EOL $pacaur -S bspwm sxhkd compton # Taskbar $pacaur -S lemonbar-xft-git siji-git xtitle sutils-git dunst libnotify - # Music player - $pacaur -S mpd mpc ncmpcpp # Utilities $pacaur -S rofi feh sxiv maim slop-opengl neofetch-git pass youtube-dl xdotool # Apps @@ -91,7 +89,6 @@ EOL systemctl enable --user redshift.service systemctl enable --user rslsync.service - systemctl enable --user mpd.service # FIXME Install pacman hooks hookdest=/etc/pacman.d/hooks diff --git a/os/arch/.config/mpd/mpd.conf b/shell/mpd/.config/mpd/mpd.conf similarity index 100% rename from os/arch/.config/mpd/mpd.conf rename to shell/mpd/.config/mpd/mpd.conf diff --git a/os/arch/.ncmpcpp/bindings b/shell/mpd/.ncmpcpp/bindings similarity index 100% rename from os/arch/.ncmpcpp/bindings rename to shell/mpd/.ncmpcpp/bindings diff --git a/os/arch/.ncmpcpp/config b/shell/mpd/.ncmpcpp/config similarity index 100% rename from os/arch/.ncmpcpp/config rename to shell/mpd/.ncmpcpp/config diff --git a/shell/mpd/install b/shell/mpd/install new file mode 100755 index 00000000..3fd32355 --- /dev/null +++ b/shell/mpd/install @@ -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