I run Arch Linux with the window manager BSPWM (so no DE) and recently I have been having a problem with my .Xauthority file.
I am no longer able to start my X server because it is unable to write to my .Xauthority file. When I tried deleting my .Xauthority file in hopes of arch creating a new .Xauthority file for me when I logged back in, a new .Xauthority file is not being created.
I've tried recreating the .Xauthority file manually and changing its permissions, but it still has not worked. In addition, I have a .Xauthority-n file in my home directory, I am not sure what this does - but when deleted, it reappears when I log back in.
When the .Xauthority-n and the .Xauthority files are present, on startx it gives me this error:
xauth: unable to write authority file ~/.Xauthority-n
I am not sure why it doesn't try to use the regular .Xauthority file.
How do I get xauth to be able to write to my .Xauthority file? And what is the purpose of the .Xauthority-n file and how can I get rid of it?