You are not logged in.

#1 2019-03-24 20:27:02

Kelsnare
Member
Registered: 2019-03-24
Posts: 3

[SOLVED] Compton with "-d :0" on i3 - post gnome removal

I did something weird. After having used and gotten pretty comfortable with a i3wm workflow - I felt like trying gnome once again. Maybe could be kept alongside i3 - had been a gnome fanboy since my ubuntu days.
But the moment I logged into a gnome session I realized how natural i3 has become for me and I didn't want to unlearn that. So I executed "sudo pacman -Runs gnome". Reinstalled my bluez packages back and got back into i3.

Everything fine - except for one thing.
My i3 config used to autostart compton with

compton -b -d :0

. Now it doesn't anymore. I get the following instead:

compton: ../compton/src/log.h:79: log_get_level_tls: Assertion `tls_logger' failed.
[1]    5165 abort      sudo compton -b -d :0

However

compton -b

still works.

I figured out my current X Session display number using

1.

ps e -u <username> | sed -rn 's/.* DISPLAY=(:[0-9]*).*/\1/p'

( Source )
MY OUTPUT:

:0
:0
:0
:0
:0
:0
:0
:0
:0
:0
:0
:0
:0
:0
:0
:0
:0
:0
:0
:0
:0
:0
:0

2.

cat /proc/$pid/environ | tr '\0' '\n' | grep '^DISPLAY='

  -- (here $pid is any process number running in user session. Source)
MY OUTPUT:

DISPLAY=:0

I am stumped as to what my next step should be if I need to get this working.
I am planning to configure multihead soon. I recon this might pose a problem as it stands at the moment.

Last edited by Kelsnare (2019-03-25 04:25:29)

Offline

#2 2019-03-24 21:04:22

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,426

Re: [SOLVED] Compton with "-d :0" on i3 - post gnome removal

Why do you get a "sudo compton" error? Are you attempting to run compton as root? don't run compton as root. How are you starting i3?

Online

#3 2019-03-25 02:18:33

Kelsnare
Member
Registered: 2019-03-24
Posts: 3

Re: [SOLVED] Compton with "-d :0" on i3 - post gnome removal

When I had the command failing on me I had obviously tried it with root as well. I carelessly copied the error for that above. My bad. Please find the non-root command execution output below:-

compton: ../compton/src/log.h:79: log_get_level_tls: Assertion `tls_logger' failed.
[1]    3476 abort (core dumped)  compton -b -d :0

I start i3 at login with

startx

in my

~/.zprofile

which in turn runs

exec i3

from my

~/.xinitrc

Offline

#4 2019-03-25 04:11:12

tangxinfa
Member
Registered: 2019-03-25
Posts: 1

Re: [SOLVED] Compton with "-d :0" on i3 - post gnome removal

To fix this issue, try remove the "-d :0" option, it looks this option already deleted if you look at the man page of compton.

Offline

#5 2019-03-25 04:24:48

Kelsnare
Member
Registered: 2019-03-24
Posts: 3

Re: [SOLVED] Compton with "-d :0" on i3 - post gnome removal

Of course them man pages. Thank You so much @tangxinfa

Offline

Board footer

Powered by FluxBB