# 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 # RUNTIME_DIR=$(mktemp --directory --suffix=.${USER}) # # systemctl --user import-environment && \ # systemctl --wait --user start dwl@${RUNTIME_DIR}.service && \ # rm -rf ${RUNTIME_DIR} # [Unit] Description=DWL service BindsTo=graphical-session.target Wants=graphical-session-pre.target After=graphical-session-pre.target [Service] Type=oneshot EnvironmentFile=-%h/.config/dwl/env ExecStart=/home/mahesh/bin/dwl.session %I Restart=on-failure RestartSec=1 TimeoutStopSec=10