aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorallusive-dev <[email protected]>2023-11-04 16:04:36 +1100
committerallusive-dev <[email protected]>2023-11-04 16:04:36 +1100
commit9d0a4650dd88f188da2aedee852461b11b061d92 (patch)
tree9a6209916ac3b4103f8abf3d7256316ec6b188f2
parentFixes for #18 and #23 (diff)
downloadcompfy-9d0a4650dd88f188da2aedee852461b11b061d92.tar.xz
compfy-9d0a4650dd88f188da2aedee852461b11b061d92.zip
updated default values
-rw-r--r--picom.sample.conf69
-rw-r--r--src/config.c16
2 files changed, 46 insertions, 39 deletions
diff --git a/picom.sample.conf b/picom.sample.conf
index cd6214f..bcd7849 100644
--- a/picom.sample.conf
+++ b/picom.sample.conf
@@ -37,14 +37,16 @@ animation-for-open-window = "zoom";
animation-for-unmap-window = "slide-down";
# Exclude certain windows from having a open animation.
-animation-open-exclude = [
- "class_g = 'change-me'"
-];
+
+# animation-open-exclude = [
+# "class_g = 'Dunst'"
+# ];
# Exclude certain windows from having a closing animation.
-animation-unmap-exclude = [
- "class_g = 'change-me'"
-];
+
+# animation-unmap-exclude = [
+# "class_g = 'Dunst'"
+# ];
#################################
@@ -55,19 +57,19 @@ animation-unmap-exclude = [
# (windows with '_NET_WM_WINDOW_TYPE_DESKTOP') never get shadow,
# unless explicitly requested using the wintypes option.
#
-shadow = false;
+shadow = true;
# The blur radius for shadows, in pixels. (defaults to 12)
-shadow-radius = 7;
+shadow-radius = 16;
# The opacity of shadows. (0.0 - 1.0, defaults to 0.75)
# shadow-opacity = .75
# The left offset for shadows, in pixels. (defaults to -15)
-shadow-offset-x = -7;
+shadow-offset-x = -15;
# The top offset for shadows, in pixels. (defaults to -15)
-shadow-offset-y = -7;
+shadow-offset-y = -15;
# Red color value of shadow (0.0 - 1.0, defaults to 0).
# shadow-red = 0
@@ -82,9 +84,10 @@ shadow-offset-y = -7;
# shadow-color = "#000000"
# Specify a list of conditions of windows that should have no shadow.
-shadow-exclude = [
- "class_g = 'change-me'",
-];
+
+# shadow-exclude = [
+# "class_g = 'change-me'",
+# ];
# Specify a list of conditions of windows that should have no shadow painted over, such as a dock window.
# clip-shadow-above = []
@@ -96,6 +99,7 @@ shadow-exclude = [
# Fade windows in/out when opening/closing and when opacity changes,
# unless no-fading-openclose is used.
+# FADING IS REQUIRED FOR CLOSING ANIMATIONS
fading = true;
# Opacity change between steps while fading in. (0.01 - 1.0, defaults to 0.028)
@@ -123,29 +127,34 @@ fade-out-step = 0.03;
# Opacity of inactive windows. (0.1 - 1.0, defaults to 1.0)
-inactive-opacity = 0.8;
+inactive-opacity = 1.0;
# Opacity of window titlebars and borders. (0.1 - 1.0, disabled by default)
-frame-opacity = 0.7;
+frame-opacity = 1.0;
# Overries any opacities set in `opacity-rule`
inactive-opacity-override = false;
# Default opacity for active windows. (0.0 - 1.0, defaults to 1.0)
-# active-opacity = 1.0
+active-opacity = 1.0
# Dim inactive windows. (0.0 - 1.0, defaults to 0.0)
# inactive-dim = 0.0
# Specify a list of conditions of windows that should never be considered focused.
-focus-exclude = [ "class_g = 'Cairo-clock'" ];
+# focus-exclude = [
+# "class_g = 'Cairo-clock'"
+#];
# Use fixed inactive dim value, instead of adjusting according to window opacity.
# inactive-dim-fixed = 1.0
# Specify a list of opacity rules, in the format `PERCENT:PATTERN`,
# like `50:name *= "Firefox"`.
-opacity-rule = [];
+
+# opacity-rule = [
+
+# ];
#################################
@@ -154,13 +163,14 @@ opacity-rule = [];
# Sets the radius of rounded window corners. When > 0, the compositor will
# round the corners of windows.
-corner-radius = 1
+corner-radius = 14;
# Exclude conditions for rounded corners.
-rounded-corners-exclude = [
- "window_type = 'dock'",
- "window_type = 'desktop'"
-];
+
+# rounded-corners-exclude = [
+# "window_type = 'dock'",
+# "window_type = 'desktop'"
+# ];
#################################
@@ -169,24 +179,25 @@ rounded-corners-exclude = [
# Parameters for background blurring, see the *BLUR* section for more information.
-blur-method = "dual_kawase"
+blur-method = "dual_kawase";
#
# blur-size = 12
#
# blur-deviation = false
#
-blur-strength = 5
+blur-strength = 5;
# Blur background of semi-transparent / ARGB windows.
# Bad in performance, with driver-dependent behavior.
# The name of the switch may change without prior notifications.
#
-blur-background = true
+blur-background = true;
# Whitelist for windows to have background blurring
blur-rule = [
- "class_g = 'Alacritty'"
+ "class_g = 'Alacritty'",
+ "class_g = 'kitty'"
];
#################################
@@ -205,8 +216,4 @@ backend = "glx";
# Enable/disable VSync.
vsync = true;
-# Try to detect windows with rounded corners and don't consider them
-# shaped windows. The accuracy is not very high, unfortunately.
-detect-rounded-corners = true;
-
log-level = "info";
diff --git a/src/config.c b/src/config.c
index 88de824..216b63e 100644
--- a/src/config.c
+++ b/src/config.c
@@ -799,7 +799,7 @@ char *parse_config(options_t *opt, const char *config_file, bool *shadow_enable,
bool *fading_enable, bool *hasneg, win_option_mask_t *winopt_mask) {
// clang-format off
*opt = (struct options){
- .backend = BKEND_XRENDER,
+ .backend = BKEND_GLX,
.legacy_backends = false,
.glx_no_stencil = false,
.mark_wmwin_focused = false,
@@ -821,7 +821,7 @@ char *parse_config(options_t *opt, const char *config_file, bool *shadow_enable,
.shadow_red = 0.0,
.shadow_green = 0.0,
.shadow_blue = 0.0,
- .shadow_radius = 18,
+ .shadow_radius = 16,
.shadow_offset_x = -15,
.shadow_offset_y = -15,
.shadow_opacity = .75,
@@ -830,9 +830,9 @@ char *parse_config(options_t *opt, const char *config_file, bool *shadow_enable,
.xinerama_shadow_crop = false,
.shadow_clip_list = NULL,
- .corner_radius = 0,
+ .corner_radius = 14,
- .fade_in_step = 0.028,
+ .fade_in_step = 0.03,
.fade_out_step = 0.03,
.fade_delta = 10,
.no_fading_openclose = false,
@@ -844,15 +844,15 @@ char *parse_config(options_t *opt, const char *config_file, bool *shadow_enable,
.animations = true,
.animation_for_open_window = OPEN_WINDOW_ANIMATION_ZOOM,
// .animation_for_transient_window = OPEN_WINDOW_ANIMATION_NONE,
- .animation_for_unmap_window = OPEN_WINDOW_ANIMATION_ZOOM,
+ .animation_for_unmap_window = OPEN_WINDOW_ANIMATION_SLIDE_DOWN,
// .animation_for_workspace_switch_in = OPEN_WINDOW_ANIMATION_NONE,
// .animation_for_workspace_switch_out = OPEN_WINDOW_ANIMATION_NONE,
- .animation_stiffness = 100.0,
+ .animation_stiffness = 120,
.animation_window_mass = 0.5,
- .animation_dampening = 10,
+ .animation_dampening = 12,
.animation_delta = 10,
.animation_force_steps = false,
- .animation_clamping = true,
+ .animation_clamping = false,
.animation_open_blacklist = NULL,
.animation_unmap_blacklist = NULL,
.active_opacity_blacklist = NULL,