Improvements to Sequence Storm installations.
This commit is contained in:
parent
86c86581ff
commit
4d9dd06523
@ -35,20 +35,20 @@ write_sequence_storm_reader() {
|
|||||||
cat << "EOF" > ~/.SequenceStormReader
|
cat << "EOF" > ~/.SequenceStormReader
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
|
# Wait for the game to be launched
|
||||||
|
while ! pgrep -u $USER ^SequenceStorm &> /dev/null ; do
|
||||||
|
sleep 0.05
|
||||||
|
done
|
||||||
|
|
||||||
export DISPLAY=:0
|
export DISPLAY=:0
|
||||||
close=-1
|
|
||||||
unset cliptext
|
unset cliptext
|
||||||
while [[ $close -ne 0 ]]; do
|
while pgrep -u $USER ^SequenceStorm &> /dev/null ; do
|
||||||
tmp="$(xclip -selection clipboard -o)"
|
tmp="$(xclip -selection clipboard -o)"
|
||||||
if [ "$tmp" != "$cliptext" ] ; then
|
if [ "$tmp" != "$cliptext" ] ; then
|
||||||
cliptext="$tmp"
|
cliptext="$tmp"
|
||||||
spd-say -r 50 "$cliptext"
|
spd-say -r 50 "$cliptext"
|
||||||
fi
|
fi
|
||||||
sleep 0.05
|
sleep 0.05
|
||||||
if [ $(pgrep -cu $USER SequenceStorm) -eq 0 -a $close -eq -1 ]; then
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
close=$(pgrep -cu $USER SequenceStorm)
|
|
||||||
done
|
done
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user