From 47d562acb5763ab5045d5ac3bc4e812e159a3f04 Mon Sep 17 00:00:00 2001 From: Przemyslaw Grondek Date: Tue, 18 Jun 2019 10:27:41 +0200 Subject: [PATCH] [i3] Added compton configuration to fix screen tearing --- compton.conf | 7 +++++++ i3-config | 2 ++ install.sh | 2 ++ 3 files changed, 11 insertions(+) create mode 100644 compton.conf diff --git a/compton.conf b/compton.conf new file mode 100644 index 0000000..5ad4f41 --- /dev/null +++ b/compton.conf @@ -0,0 +1,7 @@ +# basic configuration +backend = "glx"; + +glx-no-stencil = true; +paing-on-overlay = true; + +vsync = "opengl-swc"; diff --git a/i3-config b/i3-config index dd591db..fa19fd9 100644 --- a/i3-config +++ b/i3-config @@ -215,6 +215,8 @@ mode $workspaceMove { bindsym Mod4+grave mode "default" } +exec --no-startup-id compton --config ~/.config/compton.conf -b + for_window [class="Firefox" instance="Navigator"] border pixel 0 for_window [class="jetbrains-toolbox"] floating enable for_window [class="Slack"] border pixel 0 diff --git a/install.sh b/install.sh index bbed85d..2582c85 100755 --- a/install.sh +++ b/install.sh @@ -7,6 +7,7 @@ rm -f $HOME/.ideavimrc rm -f $HOME/.config/i3/config rm -f $HOME/.config/dunst/dunstrc rm -f $HOME/.config/i3blocks +rm -f $HOME/.config/compton.conf rm -f $HOME/.i3status.conf rm -f $HOME/bin/lock rm -f $HOME/bin/transmission-add @@ -22,6 +23,7 @@ ln -s $(pwd)/bash_aliases $HOME/.bash_aliases ln -s $(pwd)/ideavimrc $HOME/.ideavimrc ln -s $(pwd)/i3-config $HOME/.config/i3/config ln -s $(pwd)/i3blocks $HOME/.config/i3blocks +ln -s $(pwd)/compton.conf $HOME/.config/compton.conf ln -s $(pwd)/dunstrc $HOME/.config/dunst/dunstrc ln -s $(pwd)/bin/lock $HOME/bin/lock