2024-02-09 17:17:48 -05:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2024-05-11 19:17:30 -04:00
|
|
|
# Background
|
2024-05-06 16:43:23 -04:00
|
|
|
swaybg -o '*' -i "$background" -m fill &
|
2024-02-09 17:17:48 -05:00
|
|
|
|
2024-05-11 19:17:30 -04:00
|
|
|
# Status Bar
|
|
|
|
eww open "$platform"_bar --screen 0
|
2024-02-09 17:17:48 -05:00
|
|
|
|
2024-05-11 19:17:30 -04:00
|
|
|
# Idle Handler
|
2024-02-09 17:17:48 -05:00
|
|
|
swayidle timeout 120 'swaylock -f --grace=180' \
|
2024-02-17 13:18:46 -05:00
|
|
|
timeout 600 'systemctl suspend' \
|
|
|
|
before-sleep 'swaylock -f' &
|