alpha
Login
or
Join now
lass.pds.lassul.us
/
superconfig
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
1
Pipelines
sway: move swayidle to systemd unit
author
lassulus
date
10 months ago
(Dec 12, 2025, 10:13 AM CET)
commit
cbee259b
cbee259b266daf045470c94fea3c25a80ed8876a
parent
97e06c53
97e06c5330c8ac90e0f781fc995d90f5da3471e8
+18
-4
1 changed file
Expand all
Collapse all
Unified
Split
2configs
desktops
sway
default.nix
+18
-4
2configs/desktops/sway/default.nix
View file
Reviewed
···
32
32
}
33
33
];
34
34
35
35
+
systemd.user.services.swayidle = {
36
36
+
description = "Idle manager for Wayland";
37
37
+
documentation = [ "man:swayidle(1)" ];
38
38
+
partOf = [ "sway-session.target" ];
39
39
+
wantedBy = [ "sway-session.target" ];
40
40
+
serviceConfig = {
41
41
+
Type = "simple";
42
42
+
ExecStart = ''
43
43
+
${pkgs.swayidle}/bin/swayidle -w \
44
44
+
timeout 120 '${lib.getExe' pkgs.systemd "systemctl"} --user start lock.target' \
45
45
+
timeout 300 '${lib.getExe' pkgs.systemd "systemctl"} suspend' \
46
46
+
before-sleep '${lib.getExe' pkgs.systemd "systemctl"} --user start lock.target'
47
47
+
'';
48
48
+
Restart = "on-failure";
49
49
+
RestartSec = 1;
50
50
+
};
51
51
+
};
52
52
+
35
53
systemd.user.services.sway-urgent-rumble = {
36
54
description = "Trigger rumble on urgent windows";
37
55
partOf = [ "sway-session.target" ];
···
338
356
exec ${pkgs.copyq}/bin/copyq --start-server
339
357
exec ydotoold
340
358
exec_always pkill kanshi; exec ${pkgs.kanshi}/bin/kanshi
341
341
-
exec_always pkill swayidle; exec ${pkgs.swayidle}/bin/swayidle -w \
342
342
-
timeout 120 '${lib.getExe' pkgs.systemd "systemctl"} --user start lock.target' \
343
343
-
timeout 300 '${lib.getExe' pkgs.systemd "systemctl"} suspend' \
344
344
-
before-sleep '${lib.getExe' pkgs.systemd "systemctl"} --user start lock.target'
345
359
exec_always pkill sway-audio-idle-inhibit; exec ${pkgs.sway-audio-idle-inhibit}/bin/sway-audio-idle-inhibit
346
360
347
361
# theme and env specific stuff