How To Change Username In Arch Linux
Logoff. Switch to a tty console (Ctrl+Alt+F4).
Login as root.
Edit the following directories and replace the username
nano /etc/passwd
nano /etc/shadow
nano /etc/group
Finally, rename your current home folder
mv /home/oldusername /home/newusername
Reboot device
reboot