Accessible login prompt and i3 wm

Linux for blind general discussion blinux-list at redhat.com
Mon Sep 10 22:46:38 UTC 2018


Not at all, you can use the software synthesizer.

For your information, I attach the script that manages the
espeakup daemon in Slint. I assume that there is systemd
service doing something similar in Arch.

--
Didier Spaier
Slint maintainer
http://slint.fr

On 9/11/18 12:21 AM, Linux for blind general discussion wrote:
> With speakup, would one need a hardware synthesizer?
> 
>> On Sep 10, 2018, at 2:44 PM, Linux for blind general discussion <blinux-list at redhat.com> wrote:
>>
>> So how would I handle the login greater? Maybe I could just do it how
>> I do it login with speakup and start i3 with startx. But then is orca
>> accessible to i3.
>>
>> On 9/10/18, Linux for blind general discussion <blinux-list at redhat.com> wrote:
>>> I save my speakup settings by calling a script /bin/setspeakup
>>> from within rc.local.
>>>
>>> This script contains lines such as:
>>>
>>> echo 6 > /speakup/soft/freq
>>> echo 7 > /speakup/soft/pitch
>>> echo 2 > /speakup/soft/vol
>>> echo 1 > /speakup/spell_delay
>>> echo 3 > /speakup/soft/rate
>>> echo 122     zee > /speakup/i18n/characters
>>> echo 90     ZEE > /speakup/i18n/characters
>>> chmod 666 /speakup/key_echo
>>>
>>>
>>> This gives me the slow default speakup voice during the initial part
>>> of the boot process, but changes to my preferred voice near the end.
>>>
>>> On Mon, Sep 10, 2018 at 12:02:53PM -0400, Linux for blind general discussion
>>> wrote:
>>>> Hello I want to install arch on my laptop. I would like to use a
>>>> window manager rather than a full blown desktop because I'm limited on
>>>> space. I would also like to setup a accessible login prompt. I would
>>>> like to try my hand at i3. I tryed ratpoison and I could never get
>>>> firefox-esr sound to work. Also how do you save speakup settings
>>>> between reboots. It always resets my speech rate when using speakup.
>>>>
>>>> _______________________________________________
>>>> Blinux-list mailing list
>>>> Blinux-list at redhat.com
>>>> https://www.redhat.com/mailman/listinfo/blinux-list
>>>
>>> --
>>> Rudy Vener
>>> Website: http://www.rudyvener.com
>>>
>>> _______________________________________________
>>> Blinux-list mailing list
>>> Blinux-list at redhat.com
>>> https://www.redhat.com/mailman/listinfo/blinux-list
>>>
>>
>> _______________________________________________
>> Blinux-list mailing list
>> Blinux-list at redhat.com
>> https://www.redhat.com/mailman/listinfo/blinux-list
> 
> 
> _______________________________________________
> Blinux-list mailing list
> Blinux-list at redhat.com
> https://www.redhat.com/mailman/listinfo/blinux-list
> 
-------------- next part --------------
#!/bin/sh

# Create '/dev/(soft)synth' if not present
(cd /dev
if [ ! -c /dev/softsynth ]; then
	echo "Creating '/dev/softsynth'"
	mknod softsynth c 10 26
fi
if [ ! -c /dev/synth ]; then
	echo "Creating '/dev/synth'"
	mknod synth c 10 25
fi
)

# Load the software synthesizer
echo "soft" > /sys/accessibility/speakup/synth

sleep 1

# Permissions
chmod 666 /sys/accessibility/speakup/soft/*
echo 1 > /sys/accessibility/speakup/soft/direct
[ "$LANG" = "" ] && . /etc/profile.d/lang.sh
if [ -f /etc/espeakup.conf ]; then
	. /etc/espeakup.conf
	[ ! "$rate" = "" ] && echo $rate > /sys/accessibility/speakup/soft/rate
	[ ! "$vol" = "" ] && echo $vol > /sys/accessibility/speakup/soft/vol
	[ ! "$pitch" = "" ] && echo $pitch > /sys/accessibility/speakup/soft/pitch
	if [ ! "$language" = "" ]; then
		setlanguage="$language"
	else
		setlanguage=${LANG%_*}
	fi
else
	setlanguage=${LANG%_*}
fi
# Starts/stops/restarts espeakup
espeakup_start() {
  if [ ! "`ps -C espeakup --noheaders|wc -l`" = "0" ]; then
    echo "espeakup is already started."
    espeakup_status
    exit
  fi
  if [ -x /usr/bin/espeakup ]; then
    echo "Starting espeakup"
    /usr/bin/espeakup -V $setlanguage
  else
    echo "/usr/bin/espeakup not found or non executable"
  fi
}


espeakup_stop() {
  NBPROC="`ps -C espeakup --noheaders|wc -l`"
  if [ ! "$NBPROC" = "0" ]; then
    echo "Stopping espeakup..."
    PID="`ps -C espeakup --noheaders -o pid`"
    kill $PID
    # Restore the defaults
    echo 2 > /sys/accessibility/speakup/soft/rate
    echo 5 > /sys/accessibility/speakup/soft/vol
    echo 5 > /sys/accessibility/speakup/soft/pitch
  fi
}

espeakup_restart() {
    espeakup_stop
    sleep 2
    espeakup_start
}

espeakup_status() {
  NBPROC="`ps -C espeakup --noheaders|wc -l`"
  if [ "$NBPROC" = "0" ]; then
    echo "espeakup is not started" 
  elif [ "$NBPROC" = "1" ]; then
    echo "An espeakup daemon is running, PID: `ps -C espeakup --no-headers -o pid`"
  else
    ps -C espeakup -o pid,args
  fi
}

case "$1" in
    start)
	    espeakup_start;;
    stop)
		espeakup_stop;;
    restart)
		espeakup_restart;;
    status)
		espeakup_status;;
    *)
        echo "Usage: $0 {start|stop|restart|status}";;
esac



More information about the Blinux-list mailing list