Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Graphical program from terminal doesn't create a new window

Name: Anonymous 2016-06-22 21:16

Notice that in 9front the graphical program "takes over" the current window instead of opening a new one.

https://www.youtube.com/watch?v=4a02IUvg-js

Is there a way to do this on standard Linux?

Name: Anonymous 2016-06-22 22:10

yes

Name: Anonymous 2016-06-22 22:42

>>2
How?

Name: Anonymous 2016-06-22 23:31

No because Linux is just a kernel.

Name: Anonymous 2016-06-23 0:00

It's NP Complete.

Name: Anonymous 2016-06-23 0:25

Valid Perl code

Name: Anonymous 2016-06-23 0:37

Its the desire for that level of control that leads to the creation of live programming environments. Every programmer should create the universe they want to live in.

Name: Anonymous 2016-06-24 2:50

>>1
There is always a way. But there is no standard way in X. Cooperation is required from both the terminal and the graphical program; XEmbed could be used.

Name: Anonymous 2016-06-24 7:07

>>1
Not in X, but I bet you could do that with a custom Wayland compositor. Ask the sway developers how doable it would be.

https://github.com/SirCmpwn/sway

Name: Anonymous 2016-06-24 8:02

They have reinvented HTML5

Name: Anonymous 2016-06-24 13:02

>>4
And therefore controls video output, so of course it can do what it wants.

Name: Anonymous 2016-06-25 18:19

dwm can do it with this patch.
http://dwm.suckless.org/patches/swallow

Name: Anonymous 2016-06-26 0:44

>>1

I'm pretty sure emacs can do that.

Name: Anonymous 2016-06-26 10:25

>>12
Just tried this out, applied the patch overtop of my local dwm branch. It's pretty awesome. Wasn't working right away, but realized I had to pass in -DSWALLOWING to the preprocessor and link in some extra xcb libs.

Now mupdf, feh, web browser, etc. aren't as annoying to use.

Very nice.

Name: Anonymous 2016-06-26 12:58

>>14
It's amazing how useful this swallow patch is.
I wonder if suckless would accept it upstream if we made it an option on config.h. I guess not because of the extra dependencies on some XCB libs. What do you think?

Name: Anonymous 2016-06-26 13:28

>>15
I think you should check em

Name: Anonymous 2016-06-26 13:35

Wait, it sucks less but it swallows, so it's kinda okay then?

Name: Anonymous 2016-06-26 14:51

>>15
Naw, it doesn't need to be in upstream dwm. Swallowing can be our little secret.

Don't change these.
Name: Email:
Entire Thread Thread List