1
0
Fork 0
mirror of https://github.com/yshui/picom.git synced 2024-12-02 14:15:41 -05:00
Commit graph

9 commits

Author SHA1 Message Date
Subhaditya Nath
24b4450726 picom-trans: Added SPDX-License-Identifier 2021-07-23 21:15:53 +01:00
Subhaditya Nath
084b670f6a
Rewrite picom-trans
Rewrite picom-trans (#634)

Notable changes:

* Support arguments like `--arg=val`
* Allow trailing %-signs in opacity
* Improve error message
* Improve compatibility across different shells
2021-07-22 21:26:17 +01:00
Subhaditya Nath
5394b2c2bc picom-trans: remove a no-longer-needed workaround 2021-05-31 12:32:15 +05:30
Subhaditya Nath
df1c6159fc picom-trans: Use POSIX-compatible getopts 2021-05-31 12:27:20 +05:30
Subhaditya Nath
7b4af3aef6 picom-trans: Use POSIX-compatible sed, grep
\b \? \+ \| are GNU extensions to sed

In BRE (Basic Regular Expressions) there is no \? \+ or \|
In ERE (Extended Regular Expressions) there is ? + and |
To specify sed to use ERE, specify the -E flag.

GNU grep does not distinguish between BRE and ERE, but other
implementations do. To make grep use ERE instead of BRE, specify
the -E flag.

The GNU extension \b has no equivalent in either BRE or ERE.
So, in line number 216, I used the whole initial expected output.

For quick reference (n/a means 'not available') -

 GNU BRE | POSIX BRE | POSIX ERE
 -------------------------------
    \(   |    \(     |    (
    \)   |    \)     |    )
    \?   |  \{0,1\}  |    ?  or {0,1}
    \+   |  \{1,\}   |    +  or {1,}
    \|   |    n/a    |    |
    \b   |    n/a    |   n/a
2021-05-31 12:14:19 +05:30
Bernd Busse
a854acc2d0
picom-trans: add --toggle action to toggle between set opacity and unset.
Fixes: #472
2020-10-22 23:06:17 +02:00
Bernd Busse
c9ccd8fb71
picom-trans: Add inline --help output and update manpage
Fixes: #513
2020-10-22 22:53:02 +02:00
Yuxuan Shui
5207996232
picom-trans: fixes when setting transparency with window id
Two problems:

1) the regex used to match the wid in the window tree can match the wid
   appearing in window titles as well.
2) instead of picking the parent window of the target window to set
   transparency, a random window which is listed just below the target
   window will be chosen. not sure why was there a + 1.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2020-08-25 19:21:31 +01:00
Yuxuan Shui
8ddbebb5d1
rename: replace "compton" in the codebase
leftovers:

1) config file path. Has to implement compatibility functionalities before
  we can change it.

2) links in man pages. Has to migrate the repo first.

3) _COMPTON_SHADOW, it has become a defacto standard, so we have to keep
   supporting it.

4) dbus names, undecided whether we should/could change it.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2019-10-23 20:24:20 +01:00
Renamed from bin/compton-trans (Browse further)