Difference between revisions of "Using Compton for a tear-free experience in Xfce/ru"
From Manjaro
Views
Actions
Namespaces
Variants
Tools
(Created page with "Чтобы установить его из командной строки: {{UserCmd|command=sudo pacman -S picom}}") |
(Created page with "= Настройка Picom = Picom настраивается путем редактирования ''~/.config/picom/picom.conf''.") |
||
Line 11: | Line 11: | ||
{{UserCmd|command=sudo pacman -S picom}} | {{UserCmd|command=sudo pacman -S picom}} | ||
= Настройка Picom = | |||
Picom настраивается путем редактирования ''~/.config/picom/picom.conf''. | |||
Picom | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> |
Revision as of 07:41, 24 January 2023
Люди, которые сталкиваются с разрывами экрана в Xfce, могут попробовать следующий метод.
Compton может быть заменен на Picom
Установка picom
Picom - это X-композитор, поддерживающий бэкенды xrender и glx (opengl).
Чтобы установить его из командной строки:
user $ sudo pacman -S picom
Настройка Picom
Picom настраивается путем редактирования ~/.config/picom/picom.conf.
The following are some commonly used options:
~/.config/picom/picom.conf
backend = "glx"; glx-no-stencil = true; vsync = true; unredir-if-possible = true; # Shadow shadow = true; # Enabled client-side shadows on windows. shadow-radius = 7; # The blur radius for shadows. (default 12) shadow-offset-x = -7; # The left offset for shadows. (default -15) shadow-offset-y = -7; # The top offset for shadows. (default -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" ]; # Opacity detect-client-opacity = true; # Window type settings 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