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 Nov 26 '12

jacob11235 gravatar image

updated Nov 26 '12

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
}

1 answer

Sort by » oldest newest most voted
0

answered Nov 26 '12

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.

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 (Nov 26 '12)edit

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

Michael gravatar imageMichael (Nov 27 '12)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 (Apr 3 '14)edit

Question Tools

1 follower

Stats

Asked: Nov 26 '12

Seen: 362 times

Last updated: Nov 26 '12