diff options
| -rw-r--r-- | .config/niri/systemctl.sh | 8 | ||||
| -rw-r--r-- | .config/systemd/user/swaybg.service | 3 | ||||
| -rw-r--r-- | .config/systemd/user/swayidle.service | 3 |
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 | |||
| 5 | systemctl --user add-wants niri.service dunst.service | ||
| 6 | systemctl --user add-wants niri.service waybar.service | ||
| 7 | systemctl --user add-wants niri.service swaybg.service | ||
| 8 | systemctl --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 | |||
| 4 | PartOf=graphical-session.target | 4 | PartOf=graphical-session.target |
| 5 | Requisite=graphical-session.target | 5 | Requisite=graphical-session.target |
| 6 | 6 | ||
| 7 | [Install] | ||
| 8 | WantedBy=niri.service | ||
| 9 | |||
| 10 | [Service] | 7 | [Service] |
| 11 | ExecStart=/usr/bin/swaybg --image "%h/.config/wallpaper" | 8 | ExecStart=/usr/bin/swaybg --image "%h/.config/wallpaper" |
| 12 | Restart=on-failure | 9 | Restart=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 | |||
| 4 | PartOf=graphical-session.target | 4 | PartOf=graphical-session.target |
| 5 | Requisite=graphical-session.target | 5 | Requisite=graphical-session.target |
| 6 | 6 | ||
| 7 | [Install] | ||
| 8 | WantedBy=niri.service | ||
| 9 | |||
| 10 | [Service] | 7 | [Service] |
| 11 | ExecStart=/usr/bin/swayidle -w | 8 | ExecStart=/usr/bin/swayidle -w |
| 12 | Restart=on-failure | 9 | Restart=on-failure |
