Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide statusbar on startup #919

Open
toniz4 opened this issue Apr 14, 2021 · 8 comments
Open

Hide statusbar on startup #919

toniz4 opened this issue Apr 14, 2021 · 8 comments

Comments

@toniz4
Copy link

toniz4 commented Apr 14, 2021

There is any way that i can start luakit with the statusbar hidden, and unhide is with a keypress?

@taobert
Copy link
Contributor

taobert commented Apr 24, 2021

w.bar_layout.visible controls this.
You can set it to false at the end of rc.lua (after w is assigned), and make a binding to toggle it.
Starting in fullscreen would also achive this. There are other issues detailing that.

@taobert
Copy link
Contributor

taobert commented Apr 24, 2021

No, just setting w.bar_layout.visible wasn't sufficient,
but you can overload w.update_sbar_visibility().
The following seems to work (based on a very brief play).
To make it toggleable, you could extend it to test a variable which is set by a keybinding, or have the keybinding juggle the functions.

local window = require "window"
window.add_signal("init", function (w)
    w.update_sbar_visibility_old = w.update_sbar_visibility
    w.update_sbar_visibility = function (w)
        w:update_sbar_visibility_old()
        if (w.bar_layout.visible_child == w.sbar.ebox) then
            w.bar_layout.visible = false
        end
    end
end)

@taobert
Copy link
Contributor

taobert commented Apr 26, 2021

Also, this is a duplicate of #492, and @aidanholm's solution there would also work.

Edit: for completeness see also the (out-of-date) wiki.

@corndog2000
Copy link

This code does not seem to work for luakit 2.3-15-g26df0557

@corndog2000
Copy link

Does anyone have working code to make luakit go fullscreen whenever it is launched?

@taobert
Copy link
Contributor

taobert commented Jul 24, 2021

Does anyone have working code to make luakit go fullscreen whenever it is launched?

This was answered in #696.

@taobert
Copy link
Contributor

taobert commented Jul 24, 2021

This code does not seem to work for luakit 2.3-15-g26df0557

It works for me with the current develop:

# luakit --version
luakit 2.3-46-gc89a60f7
  built with webkit 2.32.1 (installed version: 2.32.2)

What symptoms are you seeing?

@corndog2000
Copy link

@taobert I was using the packaged version available on the raspberry pi via apt. I have since downloaded the source code and compiled luakit using the latest code and that has fixed many of my issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants