Browser instead of window manager?
Solution 1
yes:
% startx /usr/bin/google-chrome --kiosk
(or use any other webbrowser)
you could also add this to your .xinitrc
/ .xsession
file:
exec /usr/bin/google-chrome --kiosk
Solution 2
Pyro was a short-lived project to build a compositing X11 window manager using Firefox, such that the browser managed the entire desktop.
Solution 3
It may be interesting to note that, since ChromeOS/ChromiumOS 19, Aura performs all window management and compositing, built into Chrome/Chromium process itself. It is not a full X11 window manager/compositor, as it only handles content from the browser.
Solution 4
Try just put this in your .xinitrc file in your home directory.
exec konqueror
Then restart X. If this doesn't work or if you are using gdm, kdm or xdm as a display manager, you can either shut that off and run startx from the command line or you can create an alternate user and configure their .xinitrc to do the same. Then you can try running startx as that user from a virtual console (Ctrl-Alt + F2). It should open another X session. I noticed when I tried this with Firefox that Firefox wasn't filling the screen even if I used a --geometry option. It seems that Firefox may store its geometry preferences in a session. You may have to deal with this on other programs like Chrome.
Keep in mind that a lot of things that these programs might be expecting things that you'd have in a modern desktop like proxy management, drag and drop or special paste buffer handling.
This is all old hat stuff. I'm sure you have a good purpose for it, but a lot of people probably haven't done this type of stuff since the early 2000s. You used to have to mess with it all the time during the FVWM days (before display managers became popular)
I'd also like to clarify something in your question. The program that you exec like this is not a "window manager". A window manager is a specific program that also gets run by X in this fashion or through a desktop manager and allows you an easy way to run (exec) additional programs, usually decorating them so that you have an interface for closing them. In the early days of X, it would just start an xterm and you would run the command for your window manager from there with an &. So we are making progress. ;-)
Some programs can be run outside of a window manager and still allow you to control their window size or bits of their display. For instance, Google Chrome pseudo decorates its windows. However, I tested Google Chrome and it doesn't have or honor enough standard X options to be a good solution here. For instance, it doesn't seem to handle the --geometry= option (shame on you Google). This is another good reason to use Konqueror or Firefox instead.
Sorry for rambling.
Solution 5
Yes, of course -- you only need a window manager if you want to be able to resize the top-level windows using WM decorations. What you can't do is have two window managers running on the same X display at the same time.
Related videos on Youtube
RyanScottLewis
Web/Desktop Application and User Interface Developer/Designer
Updated on September 17, 2022Comments
-
RyanScottLewis almost 2 years
Is it possible to have just a browser (for example, just a canvas that renders with webkit) running on top of X11 (or any other way in Linux) as my window manager, as if I'm viewing my normal web browser in fullscreen?
-
RobotHumans over 13 yearsthere should be a way...you can make a terminal widget background...you might try searching for terminal background on SU....seems like i've seen that before
-
Gilles 'SO- stop being evil' over 13 yearsThis kind of single-application setup is often called a “kiosk” setup (“Internet kiosk”, even, when the application is a web browser).
-
Nathan Osman over 13 yearsThis sounds like a neat idea, though.
-
akira over 13 years
-
-
Anonymous Type over 13 yearsThis seems like the best answer.
-
deltaray over 13 years-start-maximized doesn't seem to be a valid option to Chrome 8.0.522.210 beta. Also, take note of the limitations Chrome seems to have as far as controlling its window size in my answer.
-
Nathan Osman over 13 yearsThis also breaks for popup windows.
-
akira over 13 years@deltaray: peter.sh/experiments/chromium-command-line-switches -> --start-maximized is valid, for my 9.x chrome for sure, you can also use --kiosk
-
deltaray over 13 years@akira 9.0 is also currently a beta/dev release. 8.0 is what is currently coming up when you go to "download Chrome normally." How can a GUI app have so many options but still not have a geometry option. That's just ridiculous.
-
akira over 13 years@deltaray: since it is a gtk app it accepts at least "-display" ... maybe "-geometry" is available as well.
-
RyanScottLewis over 13 yearsThis is closest to the answer I was looking for. I see no reason why all desktop applications cannot be backed by HTML5/CSS3/JS. Such applications would be compatible with all operating systems.
-
Breno Macena about 4 yearsWhat if we don't want to resize the top-level window, just keep it full screen, and don't need any affordances of a WM?