You are not logged in.

#1 2023-02-20 10:59:33

archisominimalist
Member
Registered: 2023-02-11
Posts: 22

[SOLVED] xorg-server xorg-xinit + .xinitrc (/usr/bin/tinywm)

Thanks to everybody that is contributing to make open-source software possible.
I see your point of view and respect your time.

After reading the Arch Wiki now a thousand times at least, here is where I'm stuck.
The goal is vanilla Arch, with a local repository install tinywm from it and finally use startx to launch xorg/tinywm.

OS: Vanilla Arch Linux installed on SSD

sudo pacman -S xorg-server xorg-xinit base-devel git 
git clone https://aur.archlinux.org/tinywm.git
cd tinywm
makepkg
 mkdir ./customrepo 
 repo-add ./customrepo/custom.db.tar.gz ./customrepo/*.pkg.tar.zst

edit /etc/pacman.conf

[custom]						
SigLevel = Optional TrustAll
Server = file:///home/lin/AUR/ 
 sudo pacman -Sy
 sudo pacman -S tinywm

I believe at that point ~/.xinitrc and ~/.Xauthority should be created somehow, but with tinywm according to this https://forums.debian.net/viewtopic.php … 2b#p594299
I understand it's a Debian forum, however I could not find a better resource, my apologize.

cat << EOF > /usr/bin/tinywm-session
#!/bin/sh
xsetroot -solid "#000000"
xrdb -load $HOME/.Xdefaults
x-terminal-emulator
x-terminal-emulator
exec /usr/bin/tinywm
EOF  
chmod a+x /usr/bin/tinywm-session 
cat << EOF > /usr/share/xsessions/tinywm-session.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Tinywm session
Comment=Ridiculously tiny window manager
Exec=tinywm-session
Terminal=False
TryExec=tinywm
Type=Application

[Window Manager]
SessionManaged=true
EOF  
 TryExec=tinywm 

I'm not a tech-guy but quite proud I came that far, if somebody could find the time to point out the mistakes in my approach, you're more than welcome.

Last edited by archisominimalist (2023-02-20 13:40:27)


Thanks to everybody that is contributing to make open-source software possible.
Apparently I still manage to offend people, even while trying to be as empathic as possible and search/try to learn before posting.
I love y'all.

Offline

#2 2023-02-20 12:17:44

seth
Member
Registered: 2012-09-03
Posts: 51,017

Re: [SOLVED] xorg-server xorg-xinit + .xinitrc (/usr/bin/tinywm)

reading the Arch Wiki now a thousand times at least

repo-add ./customrepo/custom.db.tar.gz ./customrepo/*.pkg.tar.zst

# pacman -U tinywm.pkg.tar.zst

I believe at that point ~/.xinitrc and ~/.Xauthority should be created somehow, but with tinywm according to this https://forums.debian.net/viewtopic.php … 2b#p594299

How do you intend to start the tinywm session? Some DM (lightdm, xdm, GDM, SDDM, …) or startx/xinit?

For the latter you can copy /etc/X11/xinit/xinitrc to ~/.xinitrc and edit the latter to run tinywm instead of twm (it also runs a bunch of xterms and xclock)
https://wiki.archlinux.org/title/Xinit#xinitrc

Offline

#3 2023-02-20 13:01:52

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] xorg-server xorg-xinit + .xinitrc (/usr/bin/tinywm)

The `pacman -Sy` is not limited to your custom repo, so this comes with the usual partial upgrade risk. You can combine the steps as `pacman -Syu tinywm`.

archisominimalist wrote:

Thanks to everybody that is contributing to make open-source software possible.
I see your point of view and respect your time.

I'd like to suggest putting this (and the "quite proud not a tech-guy") in your signature (go to Profile > Personality), if you still feel the need to include that every time.

Offline

#4 2023-02-20 13:08:04

archisominimalist
Member
Registered: 2023-02-11
Posts: 22

Re: [SOLVED] xorg-server xorg-xinit + .xinitrc (/usr/bin/tinywm)

Thank you for your reply, fine Sir.

Replace

twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name login

at the bottom of ~/.xinitrc with

tinywm

double checking if I understand correctly.

How do you intend to start the tinywm session? Some DM (lightdm, xdm, GDM, SDDM, …) or startx/xinit?

No offense, my mistake I should have been more precise.

finally use startx to launch xorg/tinywm.

I thought that because tinywm is only ~50 lines of code, somehow just a ~/.xinitrc would not be sufficient.

Now, this is my ~/.xinitrc but there is only a blackscreen, I will try another WM, because this is the only way I think I can troubleshoot this.

#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then







    xrdb -merge $sysresources

fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then







    xrdb -merge "$userresources"

fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# start some nice programs

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

exec tinywm 

Last edited by archisominimalist (2023-02-20 13:10:36)


Thanks to everybody that is contributing to make open-source software possible.
Apparently I still manage to offend people, even while trying to be as empathic as possible and search/try to learn before posting.
I love y'all.

Offline

#5 2023-02-20 13:22:34

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] xorg-server xorg-xinit + .xinitrc (/usr/bin/tinywm)

archisominimalist wrote:

Now, this is my ~/.xinitrc but there is only a blackscreen, I will try another WM, because this is the only way I think I can troubleshoot this.

There are no windows for tinywm to manage. Start some programs. Something that let's you launch other programs is handy. xterm works (as in the example .xinitrc), or https://wiki.archlinux.org/title/List_o … _launchers

Offline

#6 2023-02-20 13:39:44

archisominimalist
Member
Registered: 2023-02-11
Posts: 22

Re: [SOLVED] xorg-server xorg-xinit + .xinitrc (/usr/bin/tinywm)

I know it comes down to personal preference, but..
Which launcher do you recommend?

You're a legend.
Thanks for your reply, this makes so much sense, thanks for letting me know the obvious, seriously, I would have never realized otherwise if you hadn't.

*bangs head against the table* ofc, start a program together with tinywm in ~/.xinitrc


Thanks to everybody that is contributing to make open-source software possible.
Apparently I still manage to offend people, even while trying to be as empathic as possible and search/try to learn before posting.
I love y'all.

Offline

#7 2023-02-20 13:39:52

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: [SOLVED] xorg-server xorg-xinit + .xinitrc (/usr/bin/tinywm)

archisominimalist wrote:

Now, this is my ~/.xinitrc but there is only a blackscreen

And?  What did you expect?  It sounds like it's working.

You either need to start any X client programs you want running from your xinitrc (right before the `exec tinywm` line) or lanuch them from another tty prefaced by `DISPLAY=:0`.

(edit: too slow - this was cross posted with the above two posts and is redundant)

Last edited by Trilby (2023-02-20 13:43:13)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#8 2023-02-20 13:41:46

archisominimalist
Member
Registered: 2023-02-11
Posts: 22

Re: [SOLVED] xorg-server xorg-xinit + .xinitrc (/usr/bin/tinywm)

"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

I'm simply stupid and incompetent in UNIX and GNU - archisominimalist


Thanks to everybody that is contributing to make open-source software possible.
Apparently I still manage to offend people, even while trying to be as empathic as possible and search/try to learn before posting.
I love y'all.

Offline

Board footer

Powered by FluxBB