blob: 6db7b9361924d466c368d40cd094d86e8bd3eae5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/sh
# Script pour faire une flashbang avec le pc
AUDIO_FILEPATH="$(pwd)/csgo_flash.mp3"
CUR_BACKLIGHT=$(xbacklight -get)
cvlc --no-video "$AUDIO_FILEPATH" &
sleep 1.5
xbacklight -set 100
while [ "$(xbacklight -get)" -gt "$CUR_BACKLIGHT" ]
do
xbacklight -dec 5
# Vérifier si la nouvelle luminosité est inférieure à la luminosité cible
if [ "$(xbacklight -get)" -lt "$CUR_BACKLIGHT" ]; then
xbacklight -set "$CUR_BACKLIGHT"
fi
# Attendre 100ms
sleep 0.25
done
|
ArKa projects. All rights to me, and your next child right arm.