DWL launching with systemd and setup changes
This commit is contained in:
29
dwl.service
Normal file
29
dwl.service
Normal 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
|
Reference in New Issue
Block a user