blob: 1d068f38b90b6bb3f606288ab666cb8c3ac6c580 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/sh
# Keep the Mango session's panel and rotating wallpaper in the Labwc session.
waybar >/dev/null 2>&1 &
"$HOME/.config/mango/wallpaper-rotate.sh" >/dev/null 2>&1 &
# Lock after 200 seconds, blank outputs after 210 seconds when wlopm is
# installed, wake them on activity, and lock before system sleep.
# Mango's mmsg sleep_monitor/wakeup_monitor commands are Mango-specific.
swayidle -w \
timeout 200 'swaylock -f -c 000000' \
timeout 210 'if command -v wlopm >/dev/null 2>&1; then wlopm --off "*"; fi' \
resume 'if command -v wlopm >/dev/null 2>&1; then wlopm --on "*"; fi' \
before-sleep 'swaylock -f -c 000000' \
>/dev/null 2>&1 &
|