I using sddm and installed awesomeWM. And using /usr/share/sddm/scripts/Xsetup
for my dvorak layout(setxkbmap us -v dvorak). But after each pacman update or installation my configuration is not working. I’m new to artix/arch, so can you help me?
I using sddm and installed awesomeWM. And using /usr/share/sddm/scripts/Xsetup
for my dvorak layout(setxkbmap us -v dvorak). But after each pacman update or installation my configuration is not working. I’m new to artix/arch, so can you help me?
Don’t overwrite system files managed by pacman and it won’t break your setup.
Put your script in the corresponding place in
/etc
where it’ll be handled properly, or better yet, do it correctly and set it up directly in your xorg.conf config. Or just uselocalectl set-keymap dvorak
which will do the same thing but also handle non-X11 use cases such as the virtual consoles and Wayland.thx, I’ll don’t do it anymore
A bit of an extra tidbit of information, that’s why things like
/usr/local
exists: to keep things separate from the distro provided packages. A lot of things have directories in/etc
for the sole purpose of isolating “what the distro provides” vs “what the user provides”. Often you can mask distro-provided settings by symlinking the same in/etc
to/dev/null
.So it’s best to assume
/usr
is managed by your package manager and you shouldn’t touch it because it’ll be overwritten on next update. Or in the case of immutable distros, you can’t even write there yourself.Plus when you do backups and restores, you can backup
/etc
, reinstall your distro, then restore your/etc
and you should mostly end up back where you were.