end-4 / dots-hyprland

i hate minimalism so...
https://end-4.github.io/dots-hyprland-wiki/en/
GNU General Public License v3.0
3.94k stars 267 forks source link

[Feature] Hide screen corner when in fullscreen #579

Closed clague closed 3 months ago

clague commented 3 months ago

What would you like to be added?

The screen corner will be hide when a window becoming fullscreen.

How will it help

When playing games, the screens will be more informative.

Extra info

Hyprland.connect('event', (service, name, data) => {
    if (name == 'fullscreen') {
        const monitor = Hyprland.active.monitor.id;
        if (data == '1') {
            for (const window of App.windows) {
                if (window.name.startsWith("corner") && window.name.endsWith(monitor)) {
                    App.closeWindow(window.name);
                }
            }
        } else {
            for (const window of App.windows) {
                if (window.name.startsWith("corner") && window.name.endsWith(monitor)) {
                    App.openWindow(window.name);
                }
            }
        }
    }
})
end-4 commented 3 months ago

in ~/.config/ags/user_options.js add the following to userConfigOptions

    'appearance': {
        'fakeScreenRounding': 2,
    },
clague commented 3 months ago

It works fine😀

end-4 commented 3 months ago

cool