Thanks but I'm a basic user and I barely understood what you wrote, sorry.If you want Xorg just start Xorg
Don't use a display manager and don't install something like Gnome
I've not used a display manager with any regularity for the past 15 years or so. You even don't need a Xsession or xinit file.
The order is something like this. Heaviest to lightest.
1. Display manager (like gdm xdm etc) The only ones I know![]()
2. Xsession
3. Xinit
4. None. Start your favorite WM directly i.e startx /usr/local/bin/catwm then start anything else you want manually or via a script. Both openbox and icewm have nice .autostart scripts
I use xinit I have a file called .xinitrc (note the dot) in my home directory
This is it.Because the .xinitrc is in my home directory it takes priority. Most of the stuff is ignored until the "Start the window manager" bit. In fact my hyperbola .xinitrc only has 4 or 5 lines. If I want to change my DE (Desktop environment) or WM (Window manager) There are tools to help in swapping your DE or WM like xwmconfig in Slackware but I'm quite lazy. If I want to swap wm I log in to the console and edit my .xinitrc before starting X. The same for screen resolution. You can see one is commented out.Code:
#!/bin/shuserresources=$HOME/.Xresourcesusermodmap=$HOME/.Xmodmapsysresources=/etc/X11/xinit/.Xresourcessysmodmap=/etc/X11/xinit/.Xmodmap# merge in defaults and keymapsif [ -f $sysresources ]; then xrdb -merge $sysresourcesfiif [ -f $sysmodmap ]; then xmodmap $sysmodmapfiif [ -f $userresources ]; then xrdb -merge $userresourcesfiif [ -f $usermodmap ]; then xmodmap $usermodmapfi# Start the window manager:if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then ck-launch-session dbus-launch --exit-with-session /usr/bin/wmii.xinit/else#xrandr --output VGA1 --mode 1600x1200 --pos 0x0 --rotate normalxrandr --output VGA1 --mode 1024x768 --pos 0x0 --rotate normalxsetroot -solid blackxsetroot -cursor_name left_ptrxrdb -merge ~/.Xresources#xcompmgr need transset 0.8 set in bashrc &/usr/local/bin/xcompmgr & /usr/local/bin/wallpaper-switcher.sh &/usr/local/bin/fittstool &/usr/local/bin/catwm while sleep 2s; do status; donefi
This is my hyperbola .xinitrcCode:
#!/bin/shuserresources=$HOME/.Xresourcesxrandr --output "LVDS-1" --off --output "VGA-1" --primary --mode 1920x1080 --poss 0x0 --output "HDMI-2" --mode 1920x1080 --poss 1920x0~/catwm/autostart.sh &exec /usr/local/bin/catwm“Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.”
Statistics: Posted by Texlee — 2024-03-23 18:08