I have a simple script that I want to run at startup but it doesn't get run. The script is simple, it just swaps right Option key with right CMD key on my Apple Magic Keyboard:
#!/bin/bash
xmodmap -e "keycode 108 = Super_R"
xmodmap -e "keycode 134 = ISO_Level3_Shift"
When I run the script from the terminal it works fine. It doesn't work at startup. I have added an entry to Startup Application like this.
I am running Ubuntu 21.10 with X11 with passwordless login so I want the keys to be swapped after my desktop shows up.
type Xorg
Xorg is /usr/bin/Xorg
Why doesn't it work? What am I doing wrong?