nixos-config/scripts/autostart

10 lines
184 B
Plaintext
Raw Normal View History

2024-02-09 17:17:48 -05:00
#!/usr/bin/env bash
swaybg -o '*' -i "$1" -m fill &
waybar &
swayidle timeout 120 'swaylock -f --grace=180' \
2024-02-17 13:18:46 -05:00
timeout 600 'systemctl suspend' \
before-sleep 'swaylock -f' &