2021-05-26 05:23:50 +00:00
|
|
|
# Systemd service to start DWL
|
|
|
|
# --
|
|
|
|
#
|
|
|
|
# Put this file in following directory:
|
|
|
|
#
|
|
|
|
# ~/.config/systemd/user
|
|
|
|
#
|
|
|
|
# Start this service with something like this:
|
|
|
|
#
|
|
|
|
# #!/usr/bin/env bash
|
|
|
|
#
|
|
|
|
# # Start DWL
|
2021-05-26 05:43:12 +00:00
|
|
|
# RUNTIME_DIR=$(mktemp --directory --suffix=.${USER})
|
2021-05-26 05:23:50 +00:00
|
|
|
#
|
|
|
|
# systemctl --user import-environment && \
|
2021-05-26 05:43:12 +00:00
|
|
|
# systemctl --wait --user start dwl@${RUNTIME_DIR}.service && \
|
|
|
|
# rm -rf ${RUNTIME_DIR}
|
2021-05-26 05:23:50 +00:00
|
|
|
#
|
|
|
|
[Unit]
|
|
|
|
Description=DWL service
|
|
|
|
BindsTo=graphical-session.target
|
|
|
|
Wants=graphical-session-pre.target
|
|
|
|
After=graphical-session-pre.target
|
|
|
|
|
|
|
|
[Service]
|
2021-05-26 05:43:12 +00:00
|
|
|
Type=oneshot
|
2021-05-26 05:23:50 +00:00
|
|
|
EnvironmentFile=-%h/.config/dwl/env
|
2021-05-26 05:43:12 +00:00
|
|
|
ExecStart=/home/mahesh/bin/dwl.session %I
|
2021-05-26 05:23:50 +00:00
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=1
|
|
|
|
TimeoutStopSec=10
|