码迷,mamicode.com
首页 > 其他好文 > 详细

我的compton配置

时间:2019-10-20 01:22:11      阅读:256      评论:0      收藏:0      [点我收藏+]

标签:ble   off   chrome   around   nts   使用   types   fine   not   

我的compton配置

参考WIKI: https://wiki.archlinux.org/index.php/Compton

Git: https://github.com/yshui/compton

参考Bilibili: https://www.bilibili.com/video/av65725782 (想要背景模糊可以参考这个大神)

我使用当前版本的compton设置透明效果正常,但是想使用高斯模糊效果,还没弄明白怎么配置。

# Shadow
shadow = true;
# no-dnd-shadow = true;
no-dock-shadow = true;
clear-shadow = true;
detect-rounded-corners = true;
shadow-radius = 5;
shadow-offset-x = 1;
shadow-offset-y = 1;
shadow-opacity = .3;
shadow-ignore-shaped = false;
# 排除下面的程序使用渲染器效果
shadow-exclude = [
    "name = 'Notification'", 
# workaround for conky until it provides window properties:
    "override_redirect = 1 && !WM_CLASS@:s",
    "class_g ?= 'Dmenu'",
#   "class_g ?= 'Dunst'",
# disable shadows for hidden windows:
    "_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'",
    "_GTK_FRAME_EXTENTS@:c",
# disables shadows on sticky windows:
#   "_NET_WM_STATE@:32a *= '_NET_WM_STATE_STICKY'",
# disables shadows on i3 frames
    "class_g ?= 'i3-frame'"
];

# shadow-exclude-reg = "x10+0+0";
# xinerama-shadow-crop = true;
# 菜单栏不透明度
menu-opacity = 0.95;
inactive-opacity = 0.95;
#active-opacity = 1;
#alpha-step = 0.01;
#inactive-dim = 0.0;
#blur-background = false;
# 背景模糊? 
blur-background = true;
#blur-kern = "3x3box";
blur-kern = "7x7box";

# fading = false;
# 淡入淡出效果
fading = true;
fade-delta = 1;
fade-in-step = 0.03;
fade-out-step = 0.03;
fade-exclude = [ ];

#backend = "xrender";
# 模糊效果
backend = "glx";
mark-wmwin-focused = true;
mark-ovredir-focused = true;
detect-client-opacity = true;
unredir-if-possible = true;
refresh-rate = 0;
vsync = "none";
dbe = false;
paint-on-overlay = true;
focus-exclude = [ "class_g = 'Cairo-clock'" ];
detect-transient = true;
detect-client-leader = true;
invert-color-include = [ ];
glx-copy-from-front = false;
glx-swap-method = "undefined";

# 指定渲染规则
opacity-rule = [ 
# VSCode 编辑器、Console等
"95:name *? = 'Code'",
# VSCode 左侧栏等
"90:class_g = 'Code - Insiders'",
# i3bar
"66:name *? = 'I3bar'", 

"95:name *? = 'Chrome'",
#"99:name *?= 'Call'", 
#"99:class_g = 'Chromium'", 
#"99:name *?= 'Conky'", 
#"99:class_g = 'Darktable'", 
#"50:class_g = 'Dmenu'", 
#"99:name *?= 'Event'", 
#"99:class_g = 'Firefox'", 
#"99:class_g = 'GIMP'", 
#"99:name *?= 'Image'",
#"99:class_g = 'Lazpaint'", 
#"99:class_g = 'Midori'", 
#"99:name *?= 'Minitube'", 
#"99:class_g = 'Mousepad'",
#"99:name *?= 'MuseScore'", 
#"90:name *?= 'Page Info'", 
#"99:name *?= 'Pale Moon'", 
#"90:name *?= 'Panel'", 
#"99:class_g = 'Pinta'", 
#"90:name *?= 'Restart'", 
#"99:name *?= 'sudo'", 
#"99:name *?= 'Screenshot'", 
#"99:class_g = 'Viewnior'", 
#"99:class_g = 'VirtualBox'", 
#"99:name *?= 'VLC'", 
#"99:name *?= 'Write'", 
#"93:class_g = 'URxvt' && !_NET_WM_STATE@:32a", 
#"0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'", 
#"96:_NET_WM_STATE@:32a *= '_NET_WM_STATE_STICKY'" 
];

wintypes : 
{
  tooltip : 
  {
    fade = true;
    shadow = false;
    opacity = 0.85;
    focus = true;
  };
  fullscreen : 
  {
    fade = true;
    shadow = false;
    opacity = 1;
    focus = true;
  };
};
# 模糊器设置 
blur:
{
  method = "gaussian";
  size = 10;
  deviation = 5.0;
};

我的compton配置文件归档

Gitee:https://gitee.com/siyingcheng/my_manjaro_i3wm_config/blob/master/config/compton.conf

我的compton配置

标签:ble   off   chrome   around   nts   使用   types   fine   not   

原文地址:https://www.cnblogs.com/siyingcheng/p/11706360.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!