Launch Weechat or other commands via user systemd upon startup Derived from screen unit file at https://wiki.archlinux.org/index.php/GNU_Screen, but template perameterized for application instead of user
# Enable lingering user systemd, so user instance of systemd starts on boot instead of login
sudo loginctl enable-linger $USER
# Install screen@ service file
mkdir -p ~/.config/systemd/user
cp [email protected] ~/.config/systemd/user
# Enable for weechat
systemctl --user enable [email protected]
# To disable
systemctl --user disable [email protected]
- Probably won't work for commands with parameters/spaces in them
- Untested w/ multiple commands wit the same autostart screen session.