From 714f2aa0fc75155a6cb4eb619e6316ef8db3da2f Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 19 Jan 2020 20:37:28 +0100 Subject: [PATCH] systemd: add some documentation --- README.md | 12 +++++++++--- xsession | 1 + 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6e62775..30dbfee 100644 --- a/README.md +++ b/README.md @@ -11,9 +11,6 @@ yet. Have a look at [@P-EB pull request](https://github.com/vincentbernat/awesome-configuration/pull/5) for 3.5 support. -I rely on machine hostname for some configuration parts (see -`rc/start.lua`) for the most important part. - Here some of the things you may be interested in: - It is modular. I am using `config` as a table to pass different @@ -52,6 +49,15 @@ Here some of the things you may be interested in: - On the debug front, I am quite happy with `dbg()` in `rc/debug.lua`. + + - Many stuff is handled by systemd. The session is still expected to + be handled by Xsession but we invoke a custom display-specific + `xsession@.target` which binds to a display-specific + `graphical-session@.target`. This is different from the + `graphical-session.target` shipped by distributions because I + wanted it to be display-specific. Also, unit activation is bundled + directly into `graphical-session@.target` while dependencies are + mostly handled in `awesome@.service`. Also, I am using my custom terminal (`vbeterm`). You need to change that in `rc.lua`. You can also find the sources on diff --git a/xsession b/xsession index 950d3b4..e89fad2 100644 --- a/xsession +++ b/xsession @@ -19,6 +19,7 @@ export QT_AUTO_SCREEN_SCALE_FACTOR=1 # Environment variables [ -e ~/.zshenv ] && . ~/.zshenv +# Services are started with systemd systemctl --user import-environment systemd-run -q --scope --user tmux start-server mkdir -p ~/.config/systemd