mirror of
https://github.com/swaywm/sway.git
synced 2026-04-22 06:46:27 -04:00
[Feature] Dim inactive windows (#66)
This commit is contained in:
parent
e82e4de37f
commit
988fb24710
16 changed files with 156 additions and 9 deletions
|
|
@ -123,6 +123,9 @@ sway_cmd cmd_create_output;
|
|||
sway_cmd cmd_default_border;
|
||||
sway_cmd cmd_default_floating_border;
|
||||
sway_cmd cmd_default_orientation;
|
||||
sway_cmd cmd_dim_inactive;
|
||||
sway_cmd cmd_dim_inactive_colors_unfocused;
|
||||
sway_cmd cmd_dim_inactive_colors_urgent;
|
||||
sway_cmd cmd_exec;
|
||||
sway_cmd cmd_exec_always;
|
||||
sway_cmd cmd_exit;
|
||||
|
|
|
|||
|
|
@ -468,6 +468,12 @@ enum xwayland_mode {
|
|||
struct sway_config {
|
||||
// SwayFX config options
|
||||
int corner_radius;
|
||||
float dim_inactive;
|
||||
// dim_inactive colors
|
||||
struct {
|
||||
float unfocused[4];
|
||||
float urgent[4];
|
||||
} dim_inactive_colors;
|
||||
|
||||
char *swaynag_command;
|
||||
struct swaynag_instance swaynag_config_errors;
|
||||
|
|
|
|||
|
|
@ -11,6 +11,8 @@ struct decoration_data {
|
|||
float alpha;
|
||||
float saturation;
|
||||
int corner_radius;
|
||||
float dim;
|
||||
float* dim_color;
|
||||
bool has_titlebar;
|
||||
};
|
||||
|
||||
|
|
@ -25,6 +27,8 @@ struct gles2_tex_shader {
|
|||
GLint position;
|
||||
GLint radius;
|
||||
GLint saturation;
|
||||
GLint dim;
|
||||
GLint dim_color;
|
||||
GLint has_titlebar;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue