blob: 67da8a36ed69cf6df159d283eebcb9af42a72127 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/sh
command -v xtrlock || exit
[ "$(xrandr --current | grep -c "\S* connected \S\+.* (")" -gt 1 ] && {
xtrlock -b -f
xset dpms force off
exit
}
TERMINAL="alacritty -t matrixlock"
if command -v cxxmatrix; then
$TERMINAL -e cxxmatrix &
elif command -v cmatrix; then
$TERMINAL -e sh -c 'sleep 0.5 && cmatrix' &
else
xtrlock -b -f; exit
fi
xtrlock -f
sleep 0.2
wmctrl -r matrixlock -b add,fullscreen
|