You are not logged in.

#1 2015-10-23 05:27:58

wchouser3
Member
From: Indiana USA
Registered: 2013-08-13
Posts: 161
Website

compositing manager for only one application.

Ok, so here's what I'm looking at: I run dwm 98 percent of the time, and therefore have absolutely no need for compositing, with the extreme exception of when I'm running a floating terminal, and I'd like to see what's under it. For most situations, I use terminator which either fills the screen, or gets tiled in the default dwm manner. I have a second terminal (LXterminal, which came with LXDE. I had to put that on here just in case my wife needs to use the computer. Dwm isn't exactly easy to teach. I've compiled dwm to execute LXterminal in a floating manner, which means it can be moved around the screen. None of this is completely relevent to what I'm trying to accomplish though.

What I would like to do is execute Lxterminal, and only lxterminal with a compositing, so that I can enable the transperancy, whereby being able to see things under it. As I said, I have no use for it otherwise.

So here's what the solution would have to accomplish:
1) Execute with LXterminal
2) Only provide transperancy for LXterminal
3) Exit when I close LXterminal

I've only recently began having a little fun with making simple bash scripts to make some things easier for my self, but Im not even sure this one is possible.

Any one have any ideas?


If you can't be helpful, don't say anything at all. Fair enough?

Offline

#2 2015-10-23 07:33:59

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: compositing manager for only one application.

You'd need a stand alone compositor (e.g. compton, xcompmgr etc) to run alongside dwn. They are basically window managers, effecting every window on your session, and can't be used for single application window only.

You could create a script to start compositor when you start LXterminal, and to kill it when there's no LXterminal windows running any more, but that would not be very elegant solution. It might be better to start the compositor from .xinitrc and simply disable any compositing effects from other applications than LXterminal.

Offline

#3 2015-10-23 07:49:00

wchouser3
Member
From: Indiana USA
Registered: 2013-08-13
Posts: 161
Website

Re: compositing manager for only one application.

I had a feeling that was the case. I wonder if running a compositor like compton is trivial nowadays in terms of power usage. Up until I started usng dwm over a year ago I was using compton (mostly because of XFCE's problems with video tearing. I never had any problem with it. I've just become a staunch supporter if the "kiss" thing.


If you can't be helpful, don't say anything at all. Fair enough?

Offline

#4 2015-10-23 08:12:35

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

Re: compositing manager for only one application.

If you want to see what is under the terminal, enter floating mode and Mod-{j,k}. No need for a compositor...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2015-10-24 03:18:29

wchouser3
Member
From: Indiana USA
Registered: 2013-08-13
Posts: 161
Website

Re: compositing manager for only one application.

jasonwryan wrote:

If you want to see what is under the terminal, enter floating mode and Mod-{j,k}. No need for a compositor...

I think what you're talking about is to switch the focused window, whereby placing the terminal under the unfocused window, then back again. What I need to be able to do is see through the terminal emulator so that I may copy some commands from somewhere like the Archwiki.

I'm sure I could figure out how to write a wrapper script that executes something like xcompmgr, or compton with specific instructions regarding shadows and such, just before passing the command to open the terminal. What I don't know how to do is tell the script to cleanly exit the comp manager upon closing the terminal window. I suppose something like "pkill xcompmgr" would work, but that just like a sloppy, incorrect way to do it.


If you can't be helpful, don't say anything at all. Fair enough?

Offline

#6 2015-10-24 03:30:06

wchouser3
Member
From: Indiana USA
Registered: 2013-08-13
Posts: 161
Website

Re: compositing manager for only one application.

well...see executing the command:
$ xcompmgr & lxterminal gives me what I want, but as you'd be aware; xcompmgr stays running after lxterminal is closed. I think the answer is a script that stops xcompmgr when lxterminal closes this is how I propose to start the script:

#!/bin/bash
xcompmgr &
lxterminal
# from here on to the end, this is where I need the help.



done

I'd like to learn to do that for some other types of scripts that may be useful to me. Does anyone know how to do it?

Last edited by wchouser3 (2015-10-24 04:05:28)


If you can't be helpful, don't say anything at all. Fair enough?

Offline

#7 2015-10-24 03:38:29

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

Re: compositing manager for only one application.

The correct way to do it would be a trap: http://mywiki.wooledge.org/SignalTrap


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#8 2015-10-24 04:11:22

wchouser3
Member
From: Indiana USA
Registered: 2013-08-13
Posts: 161
Website

Re: compositing manager for only one application.

jasonwryan wrote:

The correct way to do it would be a trap: http://mywiki.wooledge.org/SignalTrap

ok....interesting....I'm reading it, but not 100% sure of myself. What would you add to the script I started?


If you can't be helpful, don't say anything at all. Fair enough?

Offline

#9 2015-10-24 05:42:42

wchouser3
Member
From: Indiana USA
Registered: 2013-08-13
Posts: 161
Website

Re: compositing manager for only one application.

should I move this conversation over to the scripting category?


If you can't be helpful, don't say anything at all. Fair enough?

Offline

Board footer

Powered by FluxBB