aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorToby Vincent <tobyv@tobyvin.dev>2024-08-21 16:43:30 -0500
committerToby Vincent <tobyv@tobyvin.dev>2024-08-21 16:43:30 -0500
commit26d7a5eabb2c7de3c7f6b05a3445a33f46d9fb9d (patch)
treea9f431ca0e54e5a6da86486b317011d69b01a5e4
parent6bba88716dc30c77cf5937dd3d59b65d4e3f8ece (diff)
feat(sway): add idle inhibitor bridge
-rw-r--r--sway/.config/systemd/user/inhibridge.service12
-rwxr-xr-xsway/install.sh2
2 files changed, 13 insertions, 1 deletions
diff --git a/sway/.config/systemd/user/inhibridge.service b/sway/.config/systemd/user/inhibridge.service
new file mode 100644
index 0000000..9523a61
--- /dev/null
+++ b/sway/.config/systemd/user/inhibridge.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Simple daemon that bridges freedesktop.org ScreenSaver inhibitions to systemd-inhibit
+PartOf=graphical-session.target
+After=graphical-session.target
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/inhibridge
+Restart=on-failure
+
+[Install]
+WantedBy=graphical-session.target
diff --git a/sway/install.sh b/sway/install.sh
index c7f1e11..b1e6bb9 100755
--- a/sway/install.sh
+++ b/sway/install.sh
@@ -9,4 +9,4 @@ fi
printf "%s: Installing service\n" "$0"
-systemctl --user enable --now --no-block swayidle.service
+systemctl --user enable --now --no-block swayidle.service inhibridge.service