Difference between revisions of "Using Compton for a tear-free experience in Xfce"
From Manjaro
Views
Actions
Namespaces
Variants
Tools
imported>Dalto (Update to current compton standards per @grinner on Manjaro forum) |
m (replace compton to picom) |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<languages/> | |||
__TOC__ | |||
<translate> | |||
<!--T:1--> | |||
People who are experiencing screen tearing in Xfce can try out the following method. | People who are experiencing screen tearing in Xfce can try out the following method. | ||
<!--T:12--> | |||
Compton | Compton has been replaced by Picom | ||
= Installing picom = <!--T:2--> | |||
Picom - is an X compositor which supports xrender and glx (opengl) backends. | |||
<!--T:3--> | |||
To install it from the command line: | To install it from the command line: | ||
{{UserCmd|command=sudo pacman -S picom}} | |||
= Configuring | = Configuring picom = <!--T:4--> | ||
Picom is configured by editing ''~/.config/picom/picom.conf''. | |||
<!--T:5--> | |||
The following are some commonly used options: | The following are some commonly used options: | ||
{{File|file=~/.config/picom/picom.conf|content= | |||
<pre> | |||
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:Notification", | ||
"n:e:Docky", | "n:e:Docky", | ||
Line 34: | Line 45: | ||
"class_g ?= 'Notify-osd'", | "class_g ?= 'Notify-osd'", | ||
"_GTK_FRAME_EXTENTS@:c" | "_GTK_FRAME_EXTENTS@:c" | ||
]; | |||
# Opacity | |||
detect-client-opacity = true; | |||
# Window type settings | |||
wintypes: | |||
{ | |||
dock = { shadow = false; }; | dock = { shadow = false; }; | ||
dnd = { shadow = false; }; | dnd = { shadow = false; }; | ||
tooltip = { shadow = false; }; | tooltip = { shadow = false; }; | ||
}; | }; | ||
</pre> | |||
}} | |||
= Disabling xfwm4 compositor and enabling | = Disabling xfwm4 compositor and enabling picom = <!--T:6--> | ||
The following command can be used to turn off xfwm4's compositing feature: | The following command can be used to turn off xfwm4's compositing feature: | ||
<!--T:13--> | |||
{{UserCmd|command=xfconf-query -c xfwm4 -p /general/use_compositing -s false}} | |||
<!--T:7--> | |||
Create a new file ''~/.config/autostart/picom.desktop'' with content | |||
{{File|file=~/.config/autostart/picom.desktop|content= | |||
<pre> | |||
[Desktop Entry] | [Desktop Entry] | ||
Encoding=UTF-8 | Encoding=UTF-8 | ||
Version=0.9.4 | Version=0.9.4 | ||
Type=Application | Type=Application | ||
Name= | Name=Picom | ||
Comment=X11 compositor | Comment=X11 compositor | ||
Exec=compton -b | Exec=compton -b | ||
Line 63: | Line 81: | ||
Terminal=false | Terminal=false | ||
Hidden=false | Hidden=false | ||
</pre> | |||
}} | |||
Now one could logout and login again to see if | <!--T:8--> | ||
Now one could logout and login again to see if picom has been activated. | |||
= | <!--T:9--> | ||
To check if picom is working following command can be used: | |||
{{UserCmd|command=pgrep -l picom}} | |||
= Links = <!--T:10--> | |||
[[Category:Contents Page]] | <!--T:11--> | ||
* https://wiki.archlinux.org/title/Picom | |||
* https://github.com/yshui/picom | |||
</translate> | |||
[[Category:Contents Page{{#translation:}}]] |
Latest revision as of 07:51, 24 January 2023
People who are experiencing screen tearing in Xfce can try out the following method.
Compton has been replaced by Picom
Installing picom
Picom - is an X compositor which supports xrender and glx (opengl) backends.
To install it from the command line:
user $ sudo pacman -S picom
Configuring picom
Picom is configured by editing ~/.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=Picom 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 picom is working following command can be used:
user $ pgrep -l picom