You are not logged in.

#1 2021-01-23 11:59:32

othersamo_
Member
From: Braislava
Registered: 2020-10-26
Posts: 161

[SOLVED] i3 ignores a command

Hello,
need to say, this is an extremely obscure problem.
On my daily driver, I have the newest arch linux with i3gaps window manager. I also use picom to set some effects I like.
Today, I decided to add following lines to my i3 configuration:
bindsym $mod+t exec picom-trans -s 100
bindsym $mod+p exec picom-trans -r

And here is where the obscure part starts. When I press $mod+p, the command "picom-trans -r" normally runs. However, when I press $mod+t, nothing happens. No errors - simply nothing.

However, when I run " picom-trans -s 100" in terminal, it normally runs and does its job correctly.

Does anyone here know how to fix this problem?
Thank you

Last edited by othersamo_ (2021-01-23 18:12:05)


"Why join the navy if you can be a pirate?"
- Steve Jobs

Offline

#2 2021-01-23 15:12:21

merlock
Member
Registered: 2018-10-30
Posts: 262

Re: [SOLVED] i3 ignores a command

You could try to enable debug logging to see what your commands are doing.

You might also want to kill your running picom instance before running your picom commands.

From mine:

bindsym $mod+Shift+t $exec pkill picom

Eenie meenie, chili beanie, the spirits are about to speak -- Bullwinkle J. Moose
It's a big club...and you ain't in it -- George Carlin
Registered Linux user #149839
perl -e 'print$i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10); '

Offline

#3 2021-01-23 15:15:52

othersamo_
Member
From: Braislava
Registered: 2020-10-26
Posts: 161

Re: [SOLVED] i3 ignores a command

merlock wrote:

You could try to enable debug logging to see what your commands are doing.

You might also want to kill your running picom instance before running your picom commands.

From mine:

bindsym $mod+Shift+t $exec pkill picom

Yes, however, I still want picom tu run. Would not killing it cause a lost of effects I use?


"Why join the navy if you can be a pirate?"
- Steve Jobs

Offline

#4 2021-01-23 15:23:42

merlock
Member
Registered: 2018-10-30
Posts: 262

Re: [SOLVED] i3 ignores a command

I don't know if you can modify the running instance 'on the fly'.


Eenie meenie, chili beanie, the spirits are about to speak -- Bullwinkle J. Moose
It's a big club...and you ain't in it -- George Carlin
Registered Linux user #149839
perl -e 'print$i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10); '

Offline

#5 2021-01-23 15:25:05

othersamo_
Member
From: Braislava
Registered: 2020-10-26
Posts: 161

Re: [SOLVED] i3 ignores a command

merlock wrote:

I don't know if you can modify the running instance 'on the fly'.

Update: I tried killing picom, however, nothing really was solved, the command still is ignored.
What I was thinking is to create a bash script that would be executing the command. Would it change something?


"Why join the navy if you can be a pirate?"
- Steve Jobs

Offline

#6 2021-01-23 15:31:18

Archlin
Member
Registered: 2018-05-09
Posts: 67

Re: [SOLVED] i3 ignores a command

Easy to overlook, but you did not also set the bind to another exec?

Offline

#7 2021-01-23 15:32:47

othersamo_
Member
From: Braislava
Registered: 2020-10-26
Posts: 161

Re: [SOLVED] i3 ignores a command

Archlin wrote:

Easy to overlook, but you did not also set the bind to another exec?

Do you mean having a different key combination to execute the command? Yes, it was originally $mod+p.
My mod is Alt


"Why join the navy if you can be a pirate?"
- Steve Jobs

Offline

#8 2021-01-23 15:55:08

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,623

Re: [SOLVED] i3 ignores a command

He meant (I assume) whether you mabe bind $mod+t to some other action.
What if you try

bindsym $mod+t exec picom-trans -r

Does that what you expect?

Offline

#9 2021-01-23 15:55:46

othersamo_
Member
From: Braislava
Registered: 2020-10-26
Posts: 161

Re: [SOLVED] i3 ignores a command

PROBLEM SOLVED

Here you can find the solution: https://github.com/i3/i3/issues/4328



or here :https://github.com/samokosik/solutions/blob/main/i3%20ignoring%20a%20keyborad%20shortcut


"Why join the navy if you can be a pirate?"
- Steve Jobs

Offline

#10 2021-01-23 15:56:37

othersamo_
Member
From: Braislava
Registered: 2020-10-26
Posts: 161

Re: [SOLVED] i3 ignores a command

seth wrote:

He meant (I assume) whether you mabe bind $mod+t to some other action.
What if you try

bindsym $mod+t exec picom-trans -r

Does that what you expect?


Hi, the problem was in i3,  sometimes you need to put "--release" argument before the command. Check the links I sent above (:


"Why join the navy if you can be a pirate?"
- Steve Jobs

Offline

Board footer

Powered by FluxBB