diff --git a/larbs.sh b/larbs.sh index 2829e98..1fb444d 100644 --- a/larbs.sh +++ b/larbs.sh @@ -16,6 +16,7 @@ esac done [ -z "$repobranch" ] && repobranch="master" bashhook="https://raw.githubusercontent.com/tiyn/LARBS/master/resources/bash-update.hook" +easyeffectsservice="https://raw.githubusercontent.com/tiyn/LARBS/master/resources/easyeffects.service" ### FUNCTIONS ### @@ -224,6 +225,11 @@ chown -R "$name":wheel "/home/$name/.local" ln -sfT /bin/dash /bin/sh curl $bashhook > /usr/share/libalpm/hooks/bash-update.hook +# Set easyeffects to start at boot +curl $easyeffectsservice > /home/$name/.config/systemd/user/easyeffects.service +systemctl --user daemon-reload +systemctl --user enable easyeffects.service + # Update pkgfile database for the command not found handler to work with zsh pkgfile -u diff --git a/resources/easyeffects.service b/resources/easyeffects.service new file mode 100644 index 0000000..90760dc --- /dev/null +++ b/resources/easyeffects.service @@ -0,0 +1,11 @@ +[Unit] +Description=EasyEffects (GApplication Service) +After=pipewire.service wireplumber.service +PartOf=graphical-session.target + +[Service] +ExecStart=/usr/bin/easyeffects --gapplication-service +Restart=on-failure + +[Install] +WantedBy=graphical-session.target