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?

  • Max-P@lemmy.max-p.me
    link
    fedilink
    arrow-up
    10
    ·
    3 months ago

    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 use localectl set-keymap dvorak which will do the same thing but also handle non-X11 use cases such as the virtual consoles and Wayland.

      • Max-P@lemmy.max-p.me
        link
        fedilink
        arrow-up
        6
        ·
        3 months ago

        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.

  • 2xsaiko@discuss.tchncs.de
    link
    fedilink
    arrow-up
    6
    ·
    3 months ago

    Do you mean you’re changing that file in /usr? Don’t do that, that is managed by the package manager and will get overwritten on updates. Awesomewm very likely has a way to run a command on startup, use that.