summaryrefslogtreecommitdiffstats
path: root/.config
diff options
context:
space:
mode:
authorPavel Egorov <[email protected]>2025-12-16 05:22:26 +0300
committerPavel Egorov <[email protected]>2025-12-16 05:22:26 +0300
commit27576bb3c0ee8deff6178b9605b06c2bb85e192a (patch)
tree93c7b6187e65f61bfba4024a51da537f1cb91e93 /.config
parent4cae51308aa8625dc2b482e5c36c58d6168b9fc1 (diff)
downloaddotfiles-27576bb3c0ee8deff6178b9605b06c2bb85e192a.tar.gz
dotfiles-27576bb3c0ee8deff6178b9605b06c2bb85e192a.zip
[systemd] Tweak service files and write script for marking niri dependencies
Diffstat (limited to '.config')
-rw-r--r--.config/niri/systemctl.sh8
-rw-r--r--.config/systemd/user/swaybg.service3
-rw-r--r--.config/systemd/user/swayidle.service3
3 files changed, 8 insertions, 6 deletions
diff --git a/.config/niri/systemctl.sh b/.config/niri/systemctl.sh
new file mode 100644
index 0000000..03f16e2
--- /dev/null
+++ b/.config/niri/systemctl.sh
@@ -0,0 +1,8 @@
1#!/usr/bin/env sh
2
3# Systemd-managed stuff for niri
4
5systemctl --user add-wants niri.service dunst.service
6systemctl --user add-wants niri.service waybar.service
7systemctl --user add-wants niri.service swaybg.service
8systemctl --user add-wants niri.service swayidle.service
diff --git a/.config/systemd/user/swaybg.service b/.config/systemd/user/swaybg.service
index 4a7903c..3d941b8 100644
--- a/.config/systemd/user/swaybg.service
+++ b/.config/systemd/user/swaybg.service
@@ -4,9 +4,6 @@ After=graphical-session.target
4PartOf=graphical-session.target 4PartOf=graphical-session.target
5Requisite=graphical-session.target 5Requisite=graphical-session.target
6 6
7[Install]
8WantedBy=niri.service
9
10[Service] 7[Service]
11ExecStart=/usr/bin/swaybg --image "%h/.config/wallpaper" 8ExecStart=/usr/bin/swaybg --image "%h/.config/wallpaper"
12Restart=on-failure 9Restart=on-failure
diff --git a/.config/systemd/user/swayidle.service b/.config/systemd/user/swayidle.service
index 3f4397c..e786020 100644
--- a/.config/systemd/user/swayidle.service
+++ b/.config/systemd/user/swayidle.service
@@ -4,9 +4,6 @@ After=graphical-session.target
4PartOf=graphical-session.target 4PartOf=graphical-session.target
5Requisite=graphical-session.target 5Requisite=graphical-session.target
6 6
7[Install]
8WantedBy=niri.service
9
10[Service] 7[Service]
11ExecStart=/usr/bin/swayidle -w 8ExecStart=/usr/bin/swayidle -w
12Restart=on-failure 9Restart=on-failure