Files
dotfiles-sway/systemd/user/swayidle.service
T
pyrschtjag a213b10a88 Initial commit: sway + uwsm desktop dotfiles
Nord-themed Wayland setup on sway (via uwsm), including:

- sway/swayidle/swaylock/swaddle — WM, idle/lock/inhibit
- waybar, rofi — bar and launcher
- dunst — notifications
- foot — terminal
- zsh (+fzf, syntax highlighting, autosuggestions) — shell
- mpd/rmpc/mpc, mpv — music and video
- nvim — editor (lazy.nvim)
- ly — login manager
- rbw + pinentry-rofi wrapper — Bitwarden/Vaultwarden CLI
- per-window-layout, clipvault — helper systemd services
2026-08-11 10:30:07 +04:00

22 lines
529 B
Desktop File

[Unit]
Description=Sway idle daemon
PartOf=graphical-session.target
After=graphical-session.target
BindsTo=graphical-session.target
[Service]
Type=simple
ExecStart=/usr/bin/swayidle -w \
timeout 300 'pidof swaylock || swaylock -f' \
timeout 360 'swaymsg "output * dpms off"' \
timeout 420 'systemctl suspend' \
before-sleep 'pidof swaylock || swaylock -f' \
after-resume 'swaymsg "output * dpms on"'
Restart=always
RestartSec=1
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=graphical-session.target