You are not logged in.

#1 2018-07-16 16:59:12

Blauhirn
Member
Registered: 2018-05-21
Posts: 6

[Solved] Building Xephyr

Hello,

I would like to use a different keyboard combination other than "Ctrl+Shift" for switching focus inside a Xephyr window. For that, source code modification is needed.
So I git-cloned https://cgit.freedesktop.org/xorg/xserver, `./autoconfigure` and `make`. (source for Xephyr is inside /hw/kdrive/ephyr/)
Now, binaries like Xwayland, Xnest, Xvfb are available, but Xephyr is *not*. `make install` would probably work, but I do not want to override Arch packages or the like - I just want a manual Xephyr binary. What am I missing?

Thank you very much.
Best,

Last edited by Blauhirn (2019-10-14 12:23:44)

Offline

#2 2018-07-17 16:41:41

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [Solved] Building Xephyr

Xephyr is part of the xorg-server package , use that as a base to build your adapted version.

If you're lucky your build xephyr*.pkg.tar.xz will be compatible with the already installed xorg-server parts.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2018-07-17 16:43:59

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] Building Xephyr

Moving to Creating & Modifying Packages...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2018-07-20 12:52:36

Blauhirn
Member
Registered: 2018-05-21
Posts: 6

Re: [Solved] Building Xephyr

hold on

Last edited by Blauhirn (2018-07-20 12:56:53)

Offline

#5 2018-07-20 15:17:29

Blauhirn
Member
Registered: 2018-05-21
Posts: 6

Re: [Solved] Building Xephyr

Lone_Wolf wrote:

Xephyr is part of the xorg-server package , use that as a base to build your adapted version.

If you're lucky your build xephyr*.pkg.tar.xz will be compatible with the already installed xorg-server parts.

But that should result in the same as making the source from freedesktop.org, shouldn't it? And the binary will be missing either way if I dont install it (which I do not want, just the Xephyr binary)

Offline

#6 2018-07-20 15:46:51

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [Solved] Building Xephyr

The difference would be that you use pacman to manage your custom version, not install it without pacman knowing about it.
If you do want to install something systemwide without using pacman, install it to /usr/local .
Using a PKGBUILD is the easiest way to build things on archlinux, even if it installs to /usr/local .



Xephyr is not a a standalone application, but a part of xorg/xserver .

https://cgit.freedesktop.org/xorg/xserv … ptions.txt

You can try disabling building everything not needed for xephyr, then see if there are conflicts with [extra/xorg-server (sub)packages you have.

Last edited by Lone_Wolf (2018-07-20 15:49:13)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#7 2019-08-08 17:07:11

Blauhirn
Member
Registered: 2018-05-21
Posts: 6

Re: [Solved] Building Xephyr

Thanks @Lone_Wolf, turns out you were right.

This can be closed

The initial reason why the package building didnt work was simply that Xephyr is marked as "do not install". This can be edited in meson_options.txt. But even with the compiled Xephyr binary, there were issues. So I went the PKGFILE way and it worked. (If it works out fine, I will be publishing a patchfile for this repo to add custom shortcuts for focus grabbing as cmd line options soon.) (edit: here it is)

Last edited by Blauhirn (2019-08-08 20:52:53)

Offline

#8 2019-08-09 09:50:43

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [Solved] Building Xephyr

Glad to see you found a way.
Please add [Solved] to the thread title (edit the first post to change the title)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB