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
|
||||
#! /bin/bash
|
||||
|
||||
# Wait for the game to be launched
|
||||
while ! pgrep -u $USER ^SequenceStorm &> /dev/null ; do
|
||||
sleep 0.05
|
||||
done
|
||||
|
||||
export DISPLAY=:0
|
||||
close=-1
|
||||
unset cliptext
|
||||
while [[ $close -ne 0 ]]; do
|
||||
while pgrep -u $USER ^SequenceStorm &> /dev/null ; do
|
||||
tmp="$(xclip -selection clipboard -o)"
|
||||
if [ "$tmp" != "$cliptext" ] ; then
|
||||
cliptext="$tmp"
|
||||
spd-say -r 50 "$cliptext"
|
||||
fi
|
||||
sleep 0.05
|
||||
if [ $(pgrep -cu $USER SequenceStorm) -eq 0 -a $close -eq -1 ]; then
|
||||
continue
|
||||
fi
|
||||
close=$(pgrep -cu $USER SequenceStorm)
|
||||
done
|
||||
|
||||
exit 0
|
||||
|
Loading…
Reference in New Issue
Block a user