Hi there!
I'm searching for an one-liner to restart X, that I can then, for example, add to my Window Manager menu or execute via key press.
I was hoping for something like this to work
nohup { kill $(cat /tmp/.X${DISPLAY:1:1}-lock) ; sleep 2 ; startx ; }
I tried several combinations using {} , () , sh -c "" and & , but couldn't yet get it to work, since either the command dies together with X or X won't die at all.
Anyone has an idea?