The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

Pause-functionality with external script in i3status

asked 2012-11-26 14:01:39 +0000

jacob11235 gravatar image

updated 2012-11-26 14:03:52 +0000

When using the default i3status with a hidden i3bar the execution of the status command is paused as long as the bar is not visible. Since I wanted to have my Dropbox state in the bar I am now using a slightly modified version of the default wrapper.py.

Problem: It seems like only the wrapper is paused. When I show the bar again after it was hidden for a while it first shows the time when it was last hidden. Then it rapidly updates until it reaches the current state.

So my question is: Is there a way to either make it work or disable the pausing so the current state is instantly shown?

My current i3config bar section is:

bar {
   mode hide
   modifier Mod1
   status_command i3status | ~/.config/i3status/wrapper.py
}
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2012-11-26 14:10:08 +0000

Michael gravatar image

In the git version of i3, you can specify the signal numbers for hide/show: http://build.i3wm.org/docs/i3bar-prot...

You could also fix the wrapper script so that it passes the signal along to i3status, I suppose.

edit flag offensive delete link more

Comments

Thanks, I'll have a look at signal handling in Python. How could I fix this by changing the signal numbers?

jacob11235 gravatar imagejacob11235 ( 2012-11-26 16:10:11 +0000 )edit

By just specifying SIGUSR1 as start/stop signal and then not handle it specially in the wrapper.

Michael gravatar imageMichael ( 2012-11-27 09:50:22 +0000 )edit

I expect SIGCONT to be more convenient (for example with conky). Be sure to get the exact sigvalue with "kill --table"

Julien Jehannet gravatar imageJulien Jehannet ( 2014-04-03 11:39:11 +0000 )edit

Question Tools

1 follower

Stats

Asked: 2012-11-26 14:01:39 +0000

Seen: 362 times

Last updated: Nov 26 '12