← 返回命令列表

Linux command

transset 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Set window transparency by clicking

transset [0.8]

Set transparency for specific window ID

transset -i [0x1400003] [0.75]

Toggle transparency on clicked window

transset -t

Increase transparency of clicked window

transset --inc [0.1]

Decrease transparency of clicked window

transset --dec [0.1]

Apply to all windows

transset -a [0.9]

说明

transset sets window transparency in X11 by modifying the _NET_WM_WINDOW_OPACITY 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.

参数

-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.

FAQ

What is the transset command used for?

transset sets window transparency in X11 by modifying the _NET_WM_WINDOW_OPACITY 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.

How do I run a basic transset example?

Run `transset [0.8]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -i, --id _id_ do in transset?

Select window by X window ID.