update docs again, include transsetter.sh
This commit is contained in:
parent
87c8c4a26c
commit
296b743db3
4 changed files with 100 additions and 2 deletions
18
ryudo.1
18
ryudo.1
|
@ -139,6 +139,24 @@ The following operations are bindable to key combinations (shown are the default
|
||||||
.
|
.
|
||||||
.IP "" 0
|
.IP "" 0
|
||||||
.
|
.
|
||||||
|
.SH "BUGS AND CAVEATS"
|
||||||
|
Multimonitor output is not currently supported \-\- the whole "screen" (collection of active monitors) is treated as one monitor, and keybinds and automatic window placement will not work properly\.
|
||||||
|
.
|
||||||
|
.P
|
||||||
|
Click events don\'t pass through when clicking to activate a window\.
|
||||||
|
.
|
||||||
|
.P
|
||||||
|
Clicking mouse button 3 on an inactive window brings up the Button 3 Menu instead of focusing the window\. I personally sometimes find this behavior useful\.
|
||||||
|
.
|
||||||
|
.P
|
||||||
|
Programs that expect to run fullscreen will probably just open in a window the size of whatever resolution they expect to run at\. Depending on the implementation, they may respond well to being maximized or you may have to change your screen resolution manually before doing so\.
|
||||||
|
.
|
||||||
|
.P
|
||||||
|
Fullscreen Virtualbox VM windows are a strange outlier and start with their graphics offset\. Maximize the window after opening and it should be good\.
|
||||||
|
.
|
||||||
|
.P
|
||||||
|
There is no native support for compositing, but included is a shell script (\fBtranssetter\.sh\fR) which I use for translucent terminal and editor windows\. It works well and is decently lightweight\.
|
||||||
|
.
|
||||||
.SH "AUTHORS"
|
.SH "AUTHORS"
|
||||||
.
|
.
|
||||||
.IP "\(bu" 4
|
.IP "\(bu" 4
|
||||||
|
|
19
ryudo.1.html
19
ryudo.1.html
|
@ -59,6 +59,7 @@
|
||||||
<a href="#CONFIGURATION">CONFIGURATION</a>
|
<a href="#CONFIGURATION">CONFIGURATION</a>
|
||||||
<a href="#BUILDING-AND-INSTALLATION">BUILDING AND INSTALLATION</a>
|
<a href="#BUILDING-AND-INSTALLATION">BUILDING AND INSTALLATION</a>
|
||||||
<a href="#USAGE">USAGE</a>
|
<a href="#USAGE">USAGE</a>
|
||||||
|
<a href="#BUGS-AND-CAVEATS">BUGS AND CAVEATS</a>
|
||||||
<a href="#AUTHORS">AUTHORS</a>
|
<a href="#AUTHORS">AUTHORS</a>
|
||||||
<a href="#SEE-ALSO">SEE ALSO</a>
|
<a href="#SEE-ALSO">SEE ALSO</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -153,11 +154,25 @@
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
<h2 id="BUGS-AND-CAVEATS">BUGS AND CAVEATS</h2>
|
||||||
|
|
||||||
|
<p>Multimonitor output is not currently supported -- the whole "screen" (collection of active monitors) is treated as one monitor, and keybinds and automatic window placement will not work properly.</p>
|
||||||
|
|
||||||
|
<p>Click events don't pass through when clicking to activate a window.</p>
|
||||||
|
|
||||||
|
<p>Clicking mouse button 3 on an inactive window brings up the Button 3 Menu instead of focusing the window. I personally sometimes find this behavior useful.</p>
|
||||||
|
|
||||||
|
<p>Programs that expect to run fullscreen will probably just open in a window the size of whatever resolution they expect to run at. Depending on the implementation, they may respond well to being maximized or you may have to change your screen resolution manually before doing so.</p>
|
||||||
|
|
||||||
|
<p>Fullscreen Virtualbox VM windows are a strange outlier and start with their graphics offset. Maximize the window after opening and it should be good.</p>
|
||||||
|
|
||||||
|
<p>There is no native support for compositing, but included is a shell script (<code>transsetter.sh</code>) which I use for translucent terminal and editor windows. It works well and is decently lightweight.</p>
|
||||||
|
|
||||||
<h2 id="AUTHORS">AUTHORS</h2>
|
<h2 id="AUTHORS">AUTHORS</h2>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>Derek Stevens <a href="mailto:nilix@nilfm.cc" data-bare-link="true">nilix@nilfm.cc</a></li>
|
<li>Derek Stevens <a href="mailto:nilix@nilfm.cc" data-bare-link="true">nilix@nilfm.cc</a></li>
|
||||||
<li>Russ Cox <a href="mailto:rsc@swtch.com" data-bare-link="true">rsc@swtch.com</a></li>
|
<li>Russ Cox <a href="mailto:rsc@swtch.com" data-bare-link="true">rsc@swtch.com</a></li>
|
||||||
<li>David Hogan, RIP</li>
|
<li>David Hogan, RIP</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
14
ryudo.1.md
14
ryudo.1.md
|
@ -74,6 +74,20 @@ The following operations are bindable to key combinations (shown are the default
|
||||||
- `Center` (Super + C): Center the currently active window (primary geometry preference).
|
- `Center` (Super + C): Center the currently active window (primary geometry preference).
|
||||||
- `Center/Alternate` (Super + Shift + C): Center the currently active window (alternate geometry preference).
|
- `Center/Alternate` (Super + Shift + C): Center the currently active window (alternate geometry preference).
|
||||||
|
|
||||||
|
## BUGS AND CAVEATS
|
||||||
|
|
||||||
|
Multimonitor output is not currently supported -- the whole "screen" (collection of active monitors) is treated as one monitor, and keybinds and automatic window placement will not work properly.
|
||||||
|
|
||||||
|
Click events don't pass through when clicking to activate a window.
|
||||||
|
|
||||||
|
Clicking mouse button 3 on an inactive window brings up the Button 3 Menu instead of focusing the window. I personally sometimes find this behavior useful.
|
||||||
|
|
||||||
|
Programs that expect to run fullscreen will probably just open in a window the size of whatever resolution they expect to run at. Depending on the implementation, they may respond well to being maximized or you may have to change your screen resolution manually before doing so.
|
||||||
|
|
||||||
|
Fullscreen Virtualbox VM windows are a strange outlier and start with their graphics offset. Maximize the window after opening and it should be good.
|
||||||
|
|
||||||
|
There is no native support for compositing, but included is a shell script (`transsetter.sh`) which I use for translucent terminal and editor windows. It works well and is decently lightweight.
|
||||||
|
|
||||||
## AUTHORS
|
## AUTHORS
|
||||||
|
|
||||||
- Derek Stevens <nilix@nilfm.cc>
|
- Derek Stevens <nilix@nilfm.cc>
|
||||||
|
|
51
transsetter.sh
Executable file
51
transsetter.sh
Executable file
|
@ -0,0 +1,51 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# A background script to provide terminal/editor compositing in a Ryudo
|
||||||
|
# session.
|
||||||
|
# Licensed under the MIT License -- do what you want with it.
|
||||||
|
# Copyleft 2021 Derek Stevens <drkste@zoho.com>
|
||||||
|
|
||||||
|
termprog=Alacritty
|
||||||
|
geditor=acme
|
||||||
|
opacity=0.85
|
||||||
|
|
||||||
|
setter=$(which transset)
|
||||||
|
if [ -z "$setter" ]; then
|
||||||
|
setter=$(which transset-df)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "$setter" ]; then
|
||||||
|
echo "we need transset or transset-df in PATH!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
#if which xcompmgr > /dev/null; then
|
||||||
|
# xcompmgr -n&
|
||||||
|
#else
|
||||||
|
# ehco "we need xcompmgr in PATH!"
|
||||||
|
# exit 1
|
||||||
|
#fi
|
||||||
|
|
||||||
|
if ! which xshove > /dev/null; then
|
||||||
|
echo "we need xshove in PATH!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
wlist=$(mktemp)
|
||||||
|
oldwlist=$(mktemp)
|
||||||
|
while true; do
|
||||||
|
xshove > $wlist
|
||||||
|
while read wprop; do
|
||||||
|
wid=$(echo ${wprop} | awk '{print $1}')
|
||||||
|
if ! grep $wid $oldwlist > /dev/null; then
|
||||||
|
wclass=$(echo ${wprop} | awk '{print $3}')
|
||||||
|
if [ "$wclass" = "${geditor}" ]; then
|
||||||
|
$setter -i 0x$wid ${opacity} > /dev/null
|
||||||
|
elif [ "${wclass}" = "${termprog}" ]; then
|
||||||
|
$setter -i 0x$wid ${opacity} > /dev/null
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done < $wlist
|
||||||
|
cat $wlist > $oldwlist;
|
||||||
|
sleep 0.2
|
||||||
|
done
|
Loading…
Reference in a new issue