LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

transset

Set X11 window transparency

TLDR

Set window transparency by clicking
$ transset [0.8]
copy
Set transparency for specific window ID
$ transset -i [0x1400003] [0.75]
copy
Toggle transparency on clicked window
$ transset -t
copy
Increase transparency of clicked window
$ transset --inc [0.1]
copy
Decrease transparency of clicked window
$ transset --dec [0.1]
copy
Apply to all windows
$ transset -a [0.9]
copy

SYNOPSIS

transset [options] [opacity]

DESCRIPTION

transset sets window transparency in X11 by modifying the NETWMWINDOWOPACITY property on windows. The opacity value ranges from 0 (fully transparent) to 1 (fully opaque), with 0.75 as the default.The tool requires a compositing window manager (such as picom, xcompmgr, KWin, or Mutter) to actually render the transparency. Without a compositor, the property is set but no visual effect occurs.By default, transset enters interactive mode where clicking on a window sets its transparency. Window ID or name options allow non-interactive scripted use.

PARAMETERS

-i, --id id

Select window by X window ID.
-n, --name name
Select window by name.
-t, --toggle
Toggle between current opacity and fully opaque.
--inc value
Increase opacity by specified amount.
--dec value
Decrease opacity by specified amount.
-a, --all
Apply to all windows.
-p, --point
Select window under pointer (default).
-v, --verbose
Print verbose output.
--version
Display version.

INSTALL

sudo apt install x11-apps
copy
sudo zypper install transset
copy
nix profile install nixpkgs#transset
copy

CAVEATS

Requires a running compositing manager for visible effects. X11 only; does not work on Wayland. Some applications may not respect transparency settings. Window IDs change between sessions.

HISTORY

transset was developed as part of the X.Org project to demonstrate and utilize the COMPOSITE extension. The transset-df variant by Daniel Forchheimer added command-line options for scripted use without interactive clicking.

SEE ALSO

xwininfo(1), picom(1), xcompmgr(1), xprop(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid