DWL launching with systemd and setup changes

This commit is contained in:
2021-05-25 22:23:50 -07:00
parent d2386bca8d
commit b794ef8737
4 changed files with 103 additions and 34 deletions

29
dwl.service Normal file
View File

@@ -0,0 +1,29 @@
# 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
#
# systemctl --user import-environment && \
# systemctl --wait --user start dwl.service
#
[Unit]
Description=DWL service
BindsTo=graphical-session.target
Wants=graphical-session-pre.target
After=graphical-session-pre.target
[Service]
Type=simple
EnvironmentFile=-%h/.config/dwl/env
ExecStart=/home/mahesh/bin/dwl.session
Restart=on-failure
RestartSec=1
TimeoutStopSec=10