Is it possible to have apps in fullscreen mode without having Plasma itself in fullscreen mode?

Take Firefox for example, when in fullscreen mode (F11), it auto-hides the tabs, addresses bar, and bookmarks without having to change a setting.
I’d like to know if there’s a way of making Plasma fool apps into using their fullscreen mode without actually being in fullscreen.

if i’m understanding the question, you want to be able to hit F11 in firefox and have it only occupy a portion of the screen?

if there is an answer it’s likely going to be different for X11 than for wayland.

That’s actually sort of interesting, OS/2 back in the day had a fullscreen mode that I think could do that. You could have App X in a fullscreen OS/2 window or dos window, you could drag that around and see the WPS underneath it and other windows.

In Firefox, I can remove all green elements in the next screenshot. Red elements (URL bar and 3 lines) I can’t remove.

Is possible to hide Menu bar and bookmark bar. But not tabs bar. Maybe some option in about:config for unhideable elements?

Regards

You can hide anything you want in FF and most FF based browsers. Just use a custom css.
For example, Floorp with an autohidden ( hover) main tool and bookmarkbar. If you want you could add a few lines to the userChrome to hide tabs when say, for example, only one tab.

On hover the visible part:

Here’s an old shot I found, with a different css. No tabs when only one. But you could make one to autohide the tabbar ( or the entire “lot”, tabbar, toolbar and bookmarkbar) alltogether till some part is hovered.

1 Like

As for the original question, if you’re not into css, FF ( like chromium based ones) has an addon that does just that. Forgotten the name ( think it’s theatre…something). In Chromium based ones there’s “open as pop up”.

For example, brave browser.

Vivaldi, regular:

In pop up:

A quick check popped up https://addons.mozilla.org/nl/firefox/addon/popup/?utm_source=addons.mozilla.org&utm_medium=referral&utm_content=search

Still, css is a better option.

On wayland at least it is possible to run kwin in a nested I think is called? session like this

export $(dbus-launch) && kwin_wayland --exit-with-session --no-lockscreen firefox

Then Pressing F11 makes the window enter fullscreen just for that window
kwin_wayland

Or in case you want to run more than one program in that session you can make it launch another plasmashell instance:

export $(dbus-launch) && kwin_wayland --no-lockscreen plasmashell

Check kwin_wayland --help for more options

According to the title of the wayland compositor window it should be possible to lock the cursor by pressing the right control key, but my keyboard doesn’t have one so couldn’t test that.

Global shortcuts are still intercepted by the main session, it doesn’t seem to be possible to grab the keyboard

2 Likes