diff options
| author | Pavel Egorov <[email protected]> | 2025-12-16 04:59:10 +0300 |
|---|---|---|
| committer | Pavel Egorov <[email protected]> | 2025-12-16 04:59:10 +0300 |
| commit | ffb75b8892c8bdbec39af50d17d1a716b594a9cf (patch) | |
| tree | 4a85896df1c7b7944a34ddfb84897b26863b7ba5 | |
| parent | 7698b4466cb0f2be5539a3d8513360f7597f949f (diff) | |
| download | dotfiles-ffb75b8892c8bdbec39af50d17d1a716b594a9cf.tar.gz dotfiles-ffb75b8892c8bdbec39af50d17d1a716b594a9cf.zip | |
[systemd] extract waybar, dunst, swaybg and swayidle from niri config into systemd services
Diffstat (limited to '')
| -rw-r--r-- | .config/niri/config.kdl | 5 | ||||
| -rw-r--r-- | .config/systemd/user/swaybg.service | 12 | ||||
| -rw-r--r-- | .config/systemd/user/swayidle.service | 12 |
3 files changed, 24 insertions, 5 deletions
diff --git a/.config/niri/config.kdl b/.config/niri/config.kdl index 73e8c66..cc2efef 100644 --- a/.config/niri/config.kdl +++ b/.config/niri/config.kdl | |||
| @@ -15,13 +15,8 @@ include "windows.kdl" | |||
| 15 | // which may be more convenient to use. | 15 | // which may be more convenient to use. |
| 16 | // See the binds section below for more spawn examples. | 16 | // See the binds section below for more spawn examples. |
| 17 | 17 | ||
| 18 | // This line starts waybar, a commonly used bar for Wayland compositors. | ||
| 19 | spawn-at-startup "waybar" | ||
| 20 | spawn-at-startup "dunst" | ||
| 21 | spawn-sh-at-startup "swaybg --image ~/.config/wallpaper" | ||
| 22 | spawn-sh-at-startup "vicinae server" | 18 | spawn-sh-at-startup "vicinae server" |
| 23 | spawn-sh-at-startup "gammastep" | 19 | spawn-sh-at-startup "gammastep" |
| 24 | spawn-at-startup "swayidle -w" | ||
| 25 | 20 | ||
| 26 | // To run a shell command (with variables, pipes, etc.), use spawn-sh-at-startup: | 21 | // To run a shell command (with variables, pipes, etc.), use spawn-sh-at-startup: |
| 27 | // spawn-sh-at-startup "qs -c ~/source/qs/MyAwesomeShell" | 22 | // spawn-sh-at-startup "qs -c ~/source/qs/MyAwesomeShell" |
diff --git a/.config/systemd/user/swaybg.service b/.config/systemd/user/swaybg.service new file mode 100644 index 0000000..4a7903c --- /dev/null +++ b/.config/systemd/user/swaybg.service | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | [Unit] | ||
| 2 | Description=Wallpaper utility for Wayland | ||
| 3 | After=graphical-session.target | ||
| 4 | PartOf=graphical-session.target | ||
| 5 | Requisite=graphical-session.target | ||
| 6 | |||
| 7 | [Install] | ||
| 8 | WantedBy=niri.service | ||
| 9 | |||
| 10 | [Service] | ||
| 11 | ExecStart=/usr/bin/swaybg --image "%h/.config/wallpaper" | ||
| 12 | Restart=on-failure | ||
diff --git a/.config/systemd/user/swayidle.service b/.config/systemd/user/swayidle.service new file mode 100644 index 0000000..3f4397c --- /dev/null +++ b/.config/systemd/user/swayidle.service | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | [Unit] | ||
| 2 | Description=Idle management daemon for Wayland | ||
| 3 | After=graphical-session.target | ||
| 4 | PartOf=graphical-session.target | ||
| 5 | Requisite=graphical-session.target | ||
| 6 | |||
| 7 | [Install] | ||
| 8 | WantedBy=niri.service | ||
| 9 | |||
| 10 | [Service] | ||
| 11 | ExecStart=/usr/bin/swayidle -w | ||
| 12 | Restart=on-failure | ||
