You are not logged in.

#26 2020-04-16 12:24:00

2XEKmkZd4C6PeYdgmuiHL6xaj
Member
Registered: 2018-02-21
Posts: 20

Re: [SOLVED] How to keep mousekeys active for a long time?

All problems have been solved very well.
Sorry for my bad expression.
Thanks again for your efforts. You are a master!

Offline

#27 2020-04-16 12:25:06

2XEKmkZd4C6PeYdgmuiHL6xaj
Member
Registered: 2018-02-21
Posts: 20

Re: [SOLVED] How to keep mousekeys active for a long time?

let me paste your code for udev run in X:

#!/bin/bash

pid=$(pgrep -t tty$(fgconsole) xinit)
pid=$(pgrep -P $pid -n)

import_environment() {
        (( pid )) && for var; do
                IFS='=' read key val < <(egrep -z "$var" /proc/$pid/environ)

                printf -v "$key" %s "$val"
                [[ ${!key} ]] && export "$key"
        done
}

import_environment XAUTHORITY USER DISPLAY

Offline

#28 2020-04-16 12:30:38

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,229

Re: [SOLVED] How to keep mousekeys active for a long time?

Glad to hear, please mark the thread as resolved by editing the title in your first post and prepending [SOLVED] or so.

Offline

#29 2021-12-28 10:08:47

Yutsuten
Member
From: Kanagawa
Registered: 2021-12-28
Posts: 1
Website

Re: [SOLVED] How to keep mousekeys active for a long time?

I solved this problem by starting X with the +accessx 0 option.
Documentation here: Xorg • help

As I use LightDM, I edited the following lines of /etc/lightdm/lightdm.conf:

[Seat:*]
xserver-command=X +accessx 0

There is no need to install xkbset.

Offline

#30 2021-12-28 13:32:45

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: [SOLVED] How to keep mousekeys active for a long time?

Thanks for the contribution, but this thread is more than a year old and marked solved. Closing.

Offline

Board footer

Powered by FluxBB