From 5e14bac7b5d5e6a6af942711d885e7c8779ecd22 Mon Sep 17 00:00:00 2001 From: Shipwreckt Date: Sun, 2 Mar 2025 15:46:51 +0000 Subject: Fixes with mpd and database issues. Also removed nuclear from yay.sh because it no longer works. --- autoinstall.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'autoinstall.sh') diff --git a/autoinstall.sh b/autoinstall.sh index ec74962..9511ba9 100755 --- a/autoinstall.sh +++ b/autoinstall.sh @@ -32,6 +32,7 @@ setup_ly() { echo "==================" } + setup_home_directory() { mkdir -p ~/Documents/passwords mkdir -p ~/Documents/projects @@ -75,9 +76,6 @@ copy_config_files() { rm -rf ~/.config/ranger/* sudo cp -r ~/dotfiles/files/ranger/* ~/.config/ranger/ - # Enable mpd for music junk - sudo systemctl start mpd - echo "==================" echo "Configs loaded" echo "==================" @@ -100,6 +98,12 @@ fish(){ echo -e '\n# Start fish shell \nif [[ $(ps --no-header --pid=$PPID --format=comm) != "fish" && -z ${BASH_EXECUTION_STRING} && ${SHLVL} == 1 ]]; then\n shopt -q login_shell && LOGIN_OPTION="--login" || LOGIN_OPTION=""\n exec fish $LOGIN_OPTION\nfi' >> ~/.bashrc } +setup_music() { + echo -e "\n# MPD daemon start (if no other user instance exists)\n[ ! -s ~/.config/mpd/pid ] && mpd" >> .bash_profile + systemctl --user start mpd.service + +} + Blocked_Websites() { sudo chmod 666 /etc/hosts @@ -122,6 +126,7 @@ main() { fonts bashrc_additions fish + setup_music Security echo "==================================" echo "Done installing, you may reboot." -- cgit v1.2.3