docs: mark opacity as runtime-only command

The opacity command requires a container in handler_context and is
registered in command_handlers[] (runtime-only). Using it directly
in the config file results in "Unknown/invalid command 'opacity'".
It works only via swaymsg, bindsym, or inside for_window blocks.
This commit is contained in:
frapank 2026-05-28 15:43:31 +02:00
parent f1b40bc288
commit f4d9d98238

View file

@ -294,6 +294,10 @@ set|plus|minus|toggle <amount>
A no operation command that can be used to override default behaviour. The
optional comment argument is ignored, but logged for debugging purposes.
*opacity* [set|plus|minus] <value>
Adjusts the opacity of the window between 0 (completely transparent) and
1 (completely opaque). If the operation is omitted, _set_ will be used.
*reload*
Reloads the sway config file and applies any changes. The config file is
located at path specified by the command line arguments when started,
@ -873,10 +877,6 @@ The default colors are:
Any mark that starts with an underscore will not be drawn even if
*show_marks* is yes. The default is _yes_.
*opacity* [set|plus|minus] <value>
Adjusts the opacity of the window between 0 (completely transparent) and
1 (completely opaque). If the operation is omitted, _set_ will be used.
*tiling_drag* enable|disable|toggle
Sets whether or not tiling containers can be dragged with the mouse. If
_enabled_ (default), the _floating_mod_ can be used to drag tiling, as well