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

Add full screen hook.

asked 2015-08-30 10:08:34 +0000

Nishant9 gravatar image

I use a dzen2 bar as my status bar. when any app goes fullscreen, the bar is still displayed. Something like

xdotool search --onlyvisible --name dzen\ title windowunmap %@ || xdotool search --name dzen\ title windowmap %@

can toggle the visibility of bar. I want to know if there is anyway for this to be executed automatically when an app goes fullscreen. I am not talking about $mod+f, but when app goes fullscreen on pressing the internal shortcut like F11 or something.

edit retag flag offensive close merge delete

Comments

Unless it uses override redirect, no window should be on top of a fullscreen window. If this is the case this might be a bug.

Airblader gravatar imageAirblader ( 2015-08-30 13:10:03 +0000 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-08-30 10:19:39 +0000

gurkensalat gravatar image

You can try i3subscribe:

i3subscribe window | grep window:fullscreen_mode | \
while read -r line; do
    xdotool search --onlyvisible --name dzen\ title windowunmap %@ || xdotool search --name dzen\ title windowmap %@
done
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-08-30 10:08:34 +0000

Seen: 88 times

Last updated: Aug 30