Difference between revisions of "Using Compton for a tear-free experience in Xfce/ru"
From Manjaro
Views
Actions
Namespaces
Variants
Tools
(Created page with "= Настройка Picom = Picom настраивается путем редактирования ''~/.config/picom/picom.conf''.") |
(Created page with "Ниже перечислены некоторые часто используемые опции: {{File|file=~/.config/picom/picom.conf|content= <pre> backend = "glx"; glx-n...") |
||
| Line 14: | Line 14: | ||
Picom настраивается путем редактирования ''~/.config/picom/picom.conf''. | Picom настраивается путем редактирования ''~/.config/picom/picom.conf''. | ||
Ниже перечислены некоторые часто используемые опции: | |||
{{File|file=~/.config/picom/picom.conf|content= | {{File|file=~/.config/picom/picom.conf|content= | ||
<pre> | <pre> | ||
| Line 24: | Line 23: | ||
# Shadow | # Shadow | ||
shadow = true; # | shadow = true; # Включение клиентских теней на окнах. | ||
shadow-radius = 7; # | shadow-radius = 7; # Радиус размытия для теней. (по умолчанию 12) | ||
shadow-offset-x = -7; # | shadow-offset-x = -7; # Левое смещение для теней. (по умолчанию -15) | ||
shadow-offset-y = -7; # | shadow-offset-y = -7; # Верхнее смещение для теней. (по умолчанию -15) | ||
shadow-exclude = [ | shadow-exclude = [ | ||
"n:e:Notification", | "n:e:Notification", | ||
| Line 43: | Line 42: | ||
]; | ]; | ||
# | # Непрозрачность | ||
detect-client-opacity = true; | detect-client-opacity = true; | ||
# | # Настройки типа окна | ||
wintypes: | wintypes: | ||
{ | { | ||
| Line 55: | Line 54: | ||
</pre> | </pre> | ||
}} | }} | ||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
Revision as of 07:44, 24 January 2023
Люди, которые сталкиваются с разрывами экрана в Xfce, могут попробовать следующий метод.
Compton может быть заменен на Picom
Установка picom
Picom - это X-композитор, поддерживающий бэкенды xrender и glx (opengl).
Чтобы установить его из командной строки:
user $ sudo pacman -S picom
Настройка Picom
Picom настраивается путем редактирования ~/.config/picom/picom.conf.
Ниже перечислены некоторые часто используемые опции:
~/.config/picom/picom.conf
backend = "glx";
glx-no-stencil = true;
vsync = true;
unredir-if-possible = true;
# Shadow
shadow = true; # Включение клиентских теней на окнах.
shadow-radius = 7; # Радиус размытия для теней. (по умолчанию 12)
shadow-offset-x = -7; # Левое смещение для теней. (по умолчанию -15)
shadow-offset-y = -7; # Верхнее смещение для теней. (по умолчанию -15)
shadow-exclude = [
"n:e:Notification",
"n:e:Docky",
"g:e:Synapse",
"g:e:Conky",
"n:w:*Firefox*",
"n:w:*Chromium*",
"n:w:*dockbarx*",
"class_g ?= 'Cairo-dock'",
"class_g ?= 'Xfce4-notifyd'",
"class_g ?= 'Xfce4-power-manager'",
"class_g ?= 'Notify-osd'",
"_GTK_FRAME_EXTENTS@:c"
];
# Непрозрачность
detect-client-opacity = true;
# Настройки типа окна
wintypes:
{
dock = { shadow = false; };
dnd = { shadow = false; };
tooltip = { shadow = false; };
};
Disabling xfwm4 compositor and enabling picom
The following command can be used to turn off xfwm4's compositing feature:
user $ xfconf-query -c xfwm4 -p /general/use_compositing -s false
Create a new file ~/.config/autostart/picom.desktop with content
~/.config/autostart/picom.desktop
[Desktop Entry] Encoding=UTF-8 Version=0.9.4 Type=Application Name=Compton Comment=X11 compositor Exec=compton -b OnlyShowIn=XFCE; StartupNotify=false Terminal=false Hidden=false
Now one could logout and login again to see if picom has been activated.
To check if compton is working following command can be used:
user $ pgrep -l picom