WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [Solved] TCP 12 x64 How can I set up setxkbmap automatically?  (Read 7096 times)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11659
Re: [Solved] TCP 12 x64 How can I set up setxkbmap automatically?
« Reply #15 on: February 11, 2022, 08:48:26 PM »
Hi Santos
You are welcome. It was an interesting problem. The Internet is littered with others who tried to do
this using udev only to be told to use an Xorg config file when they failed. The clue came from a post
on the Archlinux forum that suggested the command was being run too early.

Running  udevadm monitor --env  confirmed this. Unlike a USB thumb drive whose last action is  "add"
when it gets plugged in, the last action is  "bind"  when a keyboard gets plugged in.

Offline Santos

  • Full Member
  • ***
  • Posts: 107
Re: [Solved] TCP 12 x64 How can I set up setxkbmap automatically?
« Reply #16 on: February 16, 2022, 08:32:18 PM »
Hello

Thank you Rich. The feature of running too early will be of my special interest. And your answer will be very helpful and is super handy right now because I always wondered how to execute a specific command based on events. But I was still searching for options, one of it was to install a monitor that gets triggered based on dmesg, based on what I now know  udev  seem a lot easier to set up and manage.

Will be for another post (if a run into issues). Thanks again.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11659
Re: [Solved] TCP 12 x64 How can I set up setxkbmap automatically?
« Reply #17 on: February 16, 2022, 08:38:30 PM »
Hi Santos
Running too early was what tripped everyone else up. Every example I saw used  ACTION=="add"  which is why
they failed. Someone on the Archlinux forum found a solution that launched a couple of scripts with delays, but
that was a kludge that no longer worked.