faulty x window system

With shame I confess that trying to free space in my home folder I inadvertently deleted .Xsessions, .xinitrc, .skel, and some other config files. After reboot all I got is a terminal window a sixth of the screen’s size, that can’t be reshaped not moved, but from where I can launch apps. Everything fine with the apps except that right click popups are not displayed. And that I can only have one app opened at a time.

I have another user in that machine, so I logged in with it, and same issue.

My uneducated guess is that I need to reset or reconfigure the windows system. I’ve been searching the web and the documentation and only got sax2, that is deprecated and X -configure, but it asks for an argument that I don’t know what could it be.

I’m using i3 as window manager, which lacks a lot of it’s functionalities in this state, I’m trying to enable debugging to get some info, but no luck so far.

The true is I don’t know what I should do to get my windows working properly again, so any help would be greatly appreciated.

Did you remove them from cli? Or from some filemanager?

Removing ‘dot’ files hardly frees diskspace fwiw.

I don’t have any of those in my home directory. So it must be possible to manage without them.

As far as I know, “.xinitrc” if for setting up a user defined session. And, based only on the name, I would guess that “.Xsessions” is also related to that.

After reboot all I got is a terminal window a sixth of the screen’s size, that can’t be reshaped not moved, but from where I can launch apps. Everything fine with the apps except that right click popups are not displayed. And that I can only have one app opened at a time.

You must have your system configured so that it requires a user defined session.

In cli with rm, so not much hope to recover them. I removed all files created more than 2 years ago and so many dot files were deleted.

Restore them from your backup?

It was actually an i3wm problem. I managed to fix it, although temporally.

thanks for the help.