1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
|
From c145bc9a4996735e4af541015d326ff808543de0 Mon Sep 17 00:00:00 2001
From: ArenM <aren@peacevolution.org>
Date: Sat, 18 Feb 2023 15:13:53 -0500
Subject: [PATCH sxmo-utils 3/6] Add PartOf to services so they stop when the
graphical session ends
---
configs/services/autocutsel-primary.service | 1 +
configs/services/autocutsel.service | 1 +
configs/services/bonsaid.service | 1 +
configs/services/sxmo-x11-status.service | 1 +
configs/services/sxmo_autosuspend.service | 1 +
configs/services/sxmo_battery_monitor.service | 1 +
configs/services/sxmo_conky.service | 1 +
configs/services/sxmo_desktop_widget.service | 1 +
configs/services/sxmo_hook_lisgd.service | 1 +
configs/services/sxmo_menumode_toggler.service | 1 +
configs/services/sxmo_modemmonitor.service | 1 +
configs/services/sxmo_networkmonitor.service | 1 +
configs/services/sxmo_notificationmonitor.service | 1 +
configs/services/sxmo_soundmonitor.service | 1 +
configs/services/sxmo_wob.service | 1 +
configs/services/unclutter-xfixes.service | 1 +
configs/services/unclutter.service | 1 +
17 files changed, 17 insertions(+)
diff --git a/configs/services/autocutsel-primary.service b/configs/services/autocutsel-primary.service
index 9574e09..3a65320 100644
--- a/configs/services/autocutsel-primary.service
+++ b/configs/services/autocutsel-primary.service
@@ -1,5 +1,6 @@
[Unit]
Description=automated xcutsel
+PartOf=graphical-session.target
[Service]
Type=simple
diff --git a/configs/services/autocutsel.service b/configs/services/autocutsel.service
index c97dc64..99223ad 100644
--- a/configs/services/autocutsel.service
+++ b/configs/services/autocutsel.service
@@ -1,5 +1,6 @@
[Unit]
Description=automated xcutsel
+PartOf=graphical-session.target
[Service]
Type=simple
diff --git a/configs/services/bonsaid.service b/configs/services/bonsaid.service
index f17fa1a..52c2823 100644
--- a/configs/services/bonsaid.service
+++ b/configs/services/bonsaid.service
@@ -1,5 +1,6 @@
[Unit]
Description=Bonsai daemon
+PartOf=graphical-session.target
[Service]
Type=simple
diff --git a/configs/services/sxmo-x11-status.service b/configs/services/sxmo-x11-status.service
index f27a613..a263e21 100644
--- a/configs/services/sxmo-x11-status.service
+++ b/configs/services/sxmo-x11-status.service
@@ -1,5 +1,6 @@
[Unit]
Description=periodically set the status bar content
+PartOf=graphical-session.target
[Service]
Type=simple
diff --git a/configs/services/sxmo_autosuspend.service b/configs/services/sxmo_autosuspend.service
index 86ce1bc..c32bed7 100644
--- a/configs/services/sxmo_autosuspend.service
+++ b/configs/services/sxmo_autosuspend.service
@@ -1,5 +1,6 @@
[Unit]
Description=daemon for autosuspending
+PartOf=graphical-session.target
[Service]
Type=simple
diff --git a/configs/services/sxmo_battery_monitor.service b/configs/services/sxmo_battery_monitor.service
index 1918ba5..621733f 100644
--- a/configs/services/sxmo_battery_monitor.service
+++ b/configs/services/sxmo_battery_monitor.service
@@ -1,5 +1,6 @@
[Unit]
Description=Sxmo: monitors the battery
+PartOf=graphical-session.target
[Service]
Type=simple
diff --git a/configs/services/sxmo_conky.service b/configs/services/sxmo_conky.service
index de8b83e..a4fca14 100644
--- a/configs/services/sxmo_conky.service
+++ b/configs/services/sxmo_conky.service
@@ -1,5 +1,6 @@
[Unit]
Description=Conky
+PartOf=graphical-session.target
[Service]
Type=simple
diff --git a/configs/services/sxmo_desktop_widget.service b/configs/services/sxmo_desktop_widget.service
index 199d9a6..aca4df0 100644
--- a/configs/services/sxmo_desktop_widget.service
+++ b/configs/services/sxmo_desktop_widget.service
@@ -1,5 +1,6 @@
[Unit]
Description=Sxmo: start desktop widget (ie. clock)
+PartOf=graphical-session.target
[Service]
Type=simple
diff --git a/configs/services/sxmo_hook_lisgd.service b/configs/services/sxmo_hook_lisgd.service
index c671235..3fcff2b 100644
--- a/configs/services/sxmo_hook_lisgd.service
+++ b/configs/services/sxmo_hook_lisgd.service
@@ -1,5 +1,6 @@
[Unit]
Description=run user defined lisgd start hook
+PartOf=graphical-session.target
[Service]
Type=simple
diff --git a/configs/services/sxmo_menumode_toggler.service b/configs/services/sxmo_menumode_toggler.service
index d6c949e..8a6d339 100644
--- a/configs/services/sxmo_menumode_toggler.service
+++ b/configs/services/sxmo_menumode_toggler.service
@@ -1,5 +1,6 @@
[Unit]
Description=Sxmo: sets menu buttons for sway
+PartOf=graphical-session.target
[Service]
Type=simple
diff --git a/configs/services/sxmo_modemmonitor.service b/configs/services/sxmo_modemmonitor.service
index 53171ef..b80c05d 100644
--- a/configs/services/sxmo_modemmonitor.service
+++ b/configs/services/sxmo_modemmonitor.service
@@ -1,5 +1,6 @@
[Unit]
Description=daemon for monitoring modem-related dbuses (calls, sms, mms, etc.)
+PartOf=graphical-session.target
[Service]
Type=simple
diff --git a/configs/services/sxmo_networkmonitor.service b/configs/services/sxmo_networkmonitor.service
index cc30f48..80c33e5 100644
--- a/configs/services/sxmo_networkmonitor.service
+++ b/configs/services/sxmo_networkmonitor.service
@@ -1,5 +1,6 @@
[Unit]
Description=Sxmo: watch network changes and update the status bar
+PartOf=graphical-session.target
[Service]
Type=simple
diff --git a/configs/services/sxmo_notificationmonitor.service b/configs/services/sxmo_notificationmonitor.service
index 4d6033a..52dcca7 100644
--- a/configs/services/sxmo_notificationmonitor.service
+++ b/configs/services/sxmo_notificationmonitor.service
@@ -1,5 +1,6 @@
[Unit]
Description=display notifications popup messages
+PartOf=graphical-session.target
[Service]
Type=simple
diff --git a/configs/services/sxmo_soundmonitor.service b/configs/services/sxmo_soundmonitor.service
index 1f759f3..04c0d3a 100644
--- a/configs/services/sxmo_soundmonitor.service
+++ b/configs/services/sxmo_soundmonitor.service
@@ -1,5 +1,6 @@
[Unit]
Description=Sxmo: watch audio changes and update the status bar
+PartOf=graphical-session.target
[Service]
Type=simple
diff --git a/configs/services/sxmo_wob.service b/configs/services/sxmo_wob.service
index d1b7496..376b94f 100644
--- a/configs/services/sxmo_wob.service
+++ b/configs/services/sxmo_wob.service
@@ -1,5 +1,6 @@
[Unit]
Description=A lightweight overlay volume/backlight/progress/anything bar for Wayland
+PartOf=graphical-session.target
[Service]
Type=simple
diff --git a/configs/services/unclutter-xfixes.service b/configs/services/unclutter-xfixes.service
index 3125786..66746b4 100644
--- a/configs/services/unclutter-xfixes.service
+++ b/configs/services/unclutter-xfixes.service
@@ -1,5 +1,6 @@
[Unit]
Description=Hides mouse pointer while not in use
+PartOf=graphical-session.target
[Service]
Type=simple
diff --git a/configs/services/unclutter.service b/configs/services/unclutter.service
index f987ac3..0f5d2f6 100644
--- a/configs/services/unclutter.service
+++ b/configs/services/unclutter.service
@@ -1,5 +1,6 @@
[Unit]
Description=Hides mouse pointer while not in use
+PartOf=graphical-session.target
[Service]
Type=simple
--
2.45.0
|