mirror of
https://github.com/GRFreire/dotfiles.git
synced 2026-03-06 11:09:41 +00:00
update picom compositor: only need vsync
This commit is contained in:
parent
446fd83d16
commit
49b3d53d40
@ -1,207 +1,11 @@
|
|||||||
#################################
|
|
||||||
# Animations #
|
|
||||||
#################################
|
|
||||||
# requires https://github.com/jonaburg/picom
|
|
||||||
# (These are also the default values)
|
|
||||||
transition-length = 120
|
|
||||||
transition-pow-x = 0.1
|
|
||||||
transition-pow-y = 0.1
|
|
||||||
transition-pow-w = 0.1
|
|
||||||
transition-pow-h = 0.1
|
|
||||||
size-transition = true
|
|
||||||
|
|
||||||
|
|
||||||
#################################
|
|
||||||
# Corners #
|
|
||||||
#################################
|
|
||||||
# requires: https://github.com/sdhand/compton or https://github.com/jonaburg/picom
|
|
||||||
corner-radius = 8.0;
|
|
||||||
rounded-corners-exclude = [
|
|
||||||
"class_g = 'Dunst'",
|
|
||||||
"! name~=''",
|
|
||||||
#"window_type = 'normal'",
|
|
||||||
];
|
|
||||||
round-borders = 1;
|
|
||||||
round-borders-exclude = [
|
|
||||||
];
|
|
||||||
|
|
||||||
|
|
||||||
#################################
|
|
||||||
# Fading #
|
|
||||||
#################################
|
|
||||||
|
|
||||||
|
|
||||||
# Fade windows in/out when opening/closing and when opacity changes,
|
|
||||||
# unless no-fading-openclose is used.
|
|
||||||
# fading = false
|
|
||||||
fading = true;
|
|
||||||
|
|
||||||
# Opacity change between steps while fading in. (0.01 - 1.0, defaults to 0.028)
|
|
||||||
# fade-in-step = 0.028
|
|
||||||
fade-in-step = 0.3;
|
|
||||||
|
|
||||||
# Opacity change between steps while fading out. (0.01 - 1.0, defaults to 0.03)
|
|
||||||
# fade-out-step = 0.03
|
|
||||||
fade-out-step = 0.3;
|
|
||||||
|
|
||||||
# The time between steps in fade step, in milliseconds. (> 0, defaults to 10)
|
|
||||||
# fade-delta = 10
|
|
||||||
|
|
||||||
# Specify a list of conditions of windows that should not be faded.
|
|
||||||
# don't need this, we disable fading for all normal windows with wintypes: {}
|
|
||||||
fade-exclude = [
|
|
||||||
"class_g = 'slop'", # maim
|
|
||||||
"! name~=''",
|
|
||||||
]
|
|
||||||
|
|
||||||
# Do not fade on window open/close.
|
|
||||||
# no-fading-openclose = false
|
|
||||||
|
|
||||||
# Do not fade destroyed ARGB windows with WM frame. Workaround of bugs in Openbox, Fluxbox, etc.
|
|
||||||
# no-fading-destroyed-argb = false
|
|
||||||
|
|
||||||
|
|
||||||
#################################
|
|
||||||
# Transparency / Opacity #
|
|
||||||
#################################
|
|
||||||
|
|
||||||
# Specify a list of opacity rules, in the format `PERCENT:PATTERN`,
|
|
||||||
# like `50:name *= "Firefox"`. picom-trans is recommended over this.
|
|
||||||
# Note we don't make any guarantee about possible conflicts with other
|
|
||||||
# programs that set '_NET_WM_WINDOW_OPACITY' on frame or client windows.
|
|
||||||
# example:
|
|
||||||
# opacity-rule = [ "80:class_g = 'URxvt'" ];
|
|
||||||
#
|
|
||||||
# opacity-rule = []
|
|
||||||
opacity-rule = [
|
|
||||||
];
|
|
||||||
|
|
||||||
#################################
|
|
||||||
# Background-Blurring #
|
|
||||||
#################################
|
|
||||||
|
|
||||||
blur: {
|
|
||||||
# requires: https://github.com/ibhagwan/picom
|
|
||||||
method = "kawase";
|
|
||||||
strength = 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Exclude conditions for background blur.
|
|
||||||
blur-background-exclude = [
|
|
||||||
#"window_type = 'dock'",
|
|
||||||
#"window_type = 'desktop'",
|
|
||||||
#"class_g = 'URxvt'",
|
|
||||||
#
|
|
||||||
# prevents picom from blurring the background
|
|
||||||
# when taking selection screenshot with `main`
|
|
||||||
# https://github.com/naelstrof/maim/issues/130
|
|
||||||
"class_g = 'slop'",
|
|
||||||
"class_g = 'Gromit-mpx'",
|
|
||||||
"_GTK_FRAME_EXTENTS@:c",
|
|
||||||
"! name~=''",
|
|
||||||
];
|
|
||||||
|
|
||||||
|
|
||||||
#################################
|
|
||||||
# General Settings #
|
|
||||||
#################################
|
|
||||||
|
|
||||||
experimental-backends = true;
|
|
||||||
backend = "glx";
|
backend = "glx";
|
||||||
|
vsync = true;
|
||||||
|
|
||||||
# Enable/disable VSync.
|
unredir-if-possible = false;
|
||||||
vsync = true
|
|
||||||
|
|
||||||
# Try to detect windows with rounded corners and don't consider them
|
detect-rounded-corners = false;
|
||||||
# shaped windows. The accuracy is not very high, unfortunately.
|
|
||||||
detect-rounded-corners = true;
|
|
||||||
|
|
||||||
# Detect '_NET_WM_OPACITY' on client windows, useful for window managers
|
|
||||||
# not passing '_NET_WM_OPACITY' of client windows to frame windows.
|
|
||||||
#
|
|
||||||
# detect-client-opacity = false
|
|
||||||
detect-client-opacity = true;
|
detect-client-opacity = true;
|
||||||
|
|
||||||
# Specify refresh rate of the screen. If not specified or 0, picom will
|
glx-no-stencil = true;
|
||||||
# try detecting this with X RandR extension.
|
|
||||||
#
|
|
||||||
# refresh-rate = 60
|
|
||||||
refresh-rate = 0
|
|
||||||
|
|
||||||
# GLX backend: Avoid using stencil buffer, useful if you don't have a stencil buffer.
|
|
||||||
# Might cause incorrect opacity when rendering transparent content (but never
|
|
||||||
# practically happened) and may not work with blur-background.
|
|
||||||
# My tests show a 15% performance boost. Recommended.
|
|
||||||
#
|
|
||||||
glx-no-stencil = true
|
|
||||||
|
|
||||||
# GLX backend: Avoid rebinding pixmap on window damage.
|
|
||||||
# Probably could improve performance on rapid window content changes,
|
|
||||||
# but is known to break things on some drivers (LLVMpipe, xf86-video-intel, etc.).
|
|
||||||
# Recommended if it works.
|
|
||||||
#
|
|
||||||
# glx-no-rebind-pixmap = false
|
|
||||||
|
|
||||||
# Set the log level. Possible values are:
|
|
||||||
# "trace", "debug", "info", "warn", "error"
|
|
||||||
# in increasing level of importance. Case doesn't matter.
|
|
||||||
# If using the "TRACE" log level, it's better to log into a file
|
|
||||||
# using *--log-file*, since it can generate a huge stream of logs.
|
|
||||||
#
|
|
||||||
# log-level = "debug"
|
|
||||||
log-level = "info";
|
|
||||||
|
|
||||||
# Set the log file.
|
|
||||||
# If *--log-file* is never specified, logs will be written to stderr.
|
|
||||||
# Otherwise, logs will to written to the given file, though some of the early
|
|
||||||
# logs might still be written to the stderr.
|
|
||||||
# When setting this option from the config file, it is recommended to use an absolute path.
|
|
||||||
#
|
|
||||||
# log-file = '/path/to/your/log/file'
|
|
||||||
|
|
||||||
# Show all X errors (for debugging)
|
|
||||||
# show-all-xerrors = false
|
|
||||||
|
|
||||||
# Write process ID to a file.
|
|
||||||
# write-pid-path = '/path/to/your/log/file'
|
|
||||||
|
|
||||||
# Window type settings
|
|
||||||
#
|
|
||||||
# 'WINDOW_TYPE' is one of the 15 window types defined in EWMH standard:
|
|
||||||
# "unknown", "desktop", "dock", "toolbar", "menu", "utility",
|
|
||||||
# "splash", "dialog", "normal", "dropdown_menu", "popup_menu",
|
|
||||||
# "tooltip", "notification", "combo", and "dnd".
|
|
||||||
#
|
|
||||||
# Following per window-type options are available: ::
|
|
||||||
#
|
|
||||||
# fade, shadow:::
|
|
||||||
# Controls window-type-specific shadow and fade settings.
|
|
||||||
#
|
|
||||||
# opacity:::
|
|
||||||
# Controls default opacity of the window type.
|
|
||||||
#
|
|
||||||
# focus:::
|
|
||||||
# Controls whether the window of this type is to be always considered focused.
|
|
||||||
# (By default, all window types except "normal" and "dialog" has this on.)
|
|
||||||
#
|
|
||||||
# full-shadow:::
|
|
||||||
# Controls whether shadow is drawn under the parts of the window that you
|
|
||||||
# normally won't be able to see. Useful when the window has parts of it
|
|
||||||
# transparent, and you want shadows in those areas.
|
|
||||||
#
|
|
||||||
# redir-ignore:::
|
|
||||||
# Controls whether this type of windows should cause screen to become
|
|
||||||
# redirected again after been unredirected. If you have unredir-if-possible
|
|
||||||
# set, and doesn't want certain window to cause unnecessary screen redirection,
|
|
||||||
# you can set this to `true`.
|
|
||||||
#
|
|
||||||
wintypes:
|
|
||||||
{
|
|
||||||
normal = { fade = false; shadow = false; }
|
|
||||||
tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; full-shadow = false; };
|
|
||||||
dock = { shadow = false; }
|
|
||||||
dnd = { shadow = false; }
|
|
||||||
popup_menu = { opacity = 0.95; }
|
|
||||||
dropdown_menu = { opacity = 0.95; }
|
|
||||||
};
|
|
||||||
|
|
||||||
|
log-level = "warn";
|
||||||
|
|||||||
@ -7,7 +7,7 @@ lxpolkit &
|
|||||||
/usr/bin/numlockx
|
/usr/bin/numlockx
|
||||||
|
|
||||||
# Start compositor
|
# Start compositor
|
||||||
(sleep 1 && picom --experimental-backends) &
|
(sleep 1 && picom) &
|
||||||
|
|
||||||
# Start notification server
|
# Start notification server
|
||||||
dunst &
|
dunst &
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user