DWL environment updates

This commit is contained in:
2021-05-29 15:40:00 -07:00
parent 3adcb1e58b
commit f395651a46
6 changed files with 49 additions and 36 deletions

View File

@@ -1,5 +1,5 @@
# Systemd service to start DWL
# --
# ----------------------------------------------------------
#
# Put this file in following directory:
#
@@ -7,24 +7,30 @@
#
# Start this service with something like this:
#
# #
# #!/usr/bin/env bash
#
# # Start DWL
# RUNTIME_DIR=$(mktemp --directory --suffix=.${USER})
#
# systemctl --user import-environment && \
# systemctl --wait --user start dwl@${RUNTIME_DIR}.service && \
# # Escape slashes in the path
# SNAME=$(systemd-escape ${RUNTIME_DIR}.service)
#
# # Start service blocking. Remove runtime directory upon completion
# systemctl --wait --user start dwl@${SNAME} && \
# rm -rf ${RUNTIME_DIR}
#
[Unit]
Description=DWL service
Description=DWL session service
BindsTo=graphical-session.target
Wants=graphical-session-pre.target
After=graphical-session-pre.target
[Service]
Type=oneshot
EnvironmentFile=-%h/.config/dwl/env
Environment=XDG_RUNTIME_DIR=%I
Environment=DWL_TAGS_FILE=%I/dwl.tags
Environment=DWL_LOG_FILE=%I/dwl.log
ExecStart=/home/mahesh/bin/dwl.session %I
Restart=on-failure
RestartSec=1