[dev] [st] Full screen without menu bar?

475 views
Skip to first unread message

doug livesey

unread,
Feb 7, 2017, 3:01:16 AM2/7/17
to d...@suckless.org
Hi -- is it possible to get st to run full screen without the menu bar?
Like when I press F11 when I'm running gnome-terminal.
(I'm running Linux Mint, btw.)
Thanks,
Doug.

Raphaël Proust

unread,
Feb 7, 2017, 3:46:15 AM2/7/17
to dev mail list
Hi,

Typically, window decorations are for the window manager to handle.
Although applications can help (e.g., by providing shortcuts and
special full-screen modes), I think that the separation of concerns
(between the roles of the wm and the applications) is considered more
suckless. As a result, I don't think such code would appear in the
core st. You are welcome to make a patch available to the community.

Cheers,
--
______________
Raphaël Proust

doug livesey

unread,
Feb 7, 2017, 4:00:39 AM2/7/17
to dev mail list
I'd have to figure out how to code that patch, first! :)
I totally see the sense in keeping the concerns separated between an
app and a window manager.
However, everything I've tried so far hasn't enabled me to run st in
full-screen mode, so it's looking like the window manager doesn't
enable full screen without the app enabling it.
Thanks for your considered response,
Doug.

Markus Teich

unread,
Feb 7, 2017, 6:14:43 AM2/7/17
to doug livesey, dev mail list
Heyho doug,

doug livesey wrote:
> I'd have to figure out how to code that patch, first! :)

Nope, just use that[0] patch.

> However, everything I've tried so far hasn't enabled me to run st in
> full-screen mode, so it's looking like the window manager doesn't enable full
> screen without the app enabling it.

After applying the patch just switch to monocle mode and toggle the bar. I use
it all the time, also for videos. I don't like application level fullscreen
modes.

Use the force, read the source!
--Markus


0: http://dwm.suckless.org/patches/noborder

doug livesey

unread,
Feb 7, 2017, 6:18:37 AM2/7/17
to doug livesey, dev mail list
I shall have a play with that after work, thankyou!

Markus Teich

unread,
Feb 7, 2017, 6:47:24 AM2/7/17
to d...@suckless.org
doug livesey wrote:
> I shall have a play with that after work, thankyou!

Heyho,

I just noticed I did not update the patch on the website yet. I did this now, so
make sure to use the latest one[0], which is also simpler than the previous ones
and probably does not produce as many merge conflicts if you have other patches
in use.

Also note that you have to set resizehints to false, because st will try to fix
its size to an exact multiple of one character which probably leaves some gaps
around the window.

--Markus

0: http://dwm.suckless.org/patches/dwm-noborder-20170207-bb3bd6f.diff

Greg Reagle

unread,
Feb 7, 2017, 7:31:38 PM2/7/17
to d...@suckless.org
I think that st does not have a menu bar. What are you referring to?
Perhaps you mean the title bar [1]? If you are referring to the title
bar or any other window decoration [2], they are drawn by the window
manager, so you need to tell the window manager to display full screen.
What window manager are you using?

On the other hand, Firefox's View > Full Screen (F11 key) does seem to
do the trick, regardless of the window manager. If it were possible to
get st to do the same thing, such a feature would probably not be
included in the main repository due to the preference for small fast and
simple that characterizes suckless programs. But it might be accepted
as a patch [3].

[1]
https://upload.wikimedia.org/wikipedia/commons/1/14/Window_%28windowing_system%29.svg
[2] https://en.wikipedia.org/wiki/Window_decoration
[3] http://st.suckless.org/patches/

Markus Teich

unread,
Feb 7, 2017, 7:39:00 PM2/7/17
to d...@suckless.org
Greg Reagle wrote:
> If it were possible to get st to do the same thing, such a feature would
> probably not be included in the main repository due to the preference for
> small fast and simple that characterizes suckless programs.

Heyho,

I agree. The main point here is imho that dwm already has a fullscreen "mode"
(like I described in my other mails), so why should we add it to our X clients
as well? It would be redundant.

--Markus

doug livesey

unread,
Feb 8, 2017, 4:16:04 AM2/8/17
to dev mail list
Hi -- I tried applying the patch in the simplest way (from some
instructions I googled up), but it didn't know what file to apply the
patch to.
I suspect I'm operating with rather incomplete knowledge!
Could you advise me on how to apply the patch to the st project?
(Does it maybe need to be done in a broader context of a suckless project?)
Oh, and I couldn't find any mention of resizehints in the code to set
to false, so I think I've misunderstood there, too.
Thanks, and sorry to be spamming with all these questions.
Doug.

Greg Reagle

unread,
Feb 8, 2017, 9:45:00 AM2/8/17
to d...@suckless.org
On Wed, Feb 8, 2017, at 04:15, doug livesey wrote:
> Hi -- I tried applying the patch in the simplest way (from some
> instructions I googled up), but it didn't know what file to apply the
> patch to.
> I suspect I'm operating with rather incomplete knowledge!
> Could you advise me on how to apply the patch to the st project?
> (Does it maybe need to be done in a broader context of a suckless
> project?)
> Oh, and I couldn't find any mention of resizehints in the code to set
> to false, so I think I've misunderstood there, too.
> Thanks, and sorry to be spamming with all these questions.
> Doug.

Way too vague. You're not going to get much help from this list with
that kind of a message. Step by step, specific details, version
numbers, exact error messages. Put as much effort as you can into
writing your request for help. Very few people on this list have the
time or even inclination to do your work for you.

doug livesey

unread,
Feb 8, 2017, 10:08:29 AM2/8/17
to dev mail list
Fair enough, cheers for the help so far.

Markus Teich

unread,
Feb 8, 2017, 10:41:37 AM2/8/17
to d...@suckless.org
doug livesey wrote:
> Could you advise me on how to apply the patch to the st project? (Does it
> maybe need to be done in a broader context of a suckless project?) Oh, and I
> couldn't find any mention of resizehints in the code to set to false, so I
> think I've misunderstood there, too.

Heyho,

As you should have noticed from the URL the patch is for dwm. The resizehints
config is also for dwm.

We also have documentation about how to patch[0], so please do your research
next time.

--Markus


0: http://suckless.org/hacking

doug livesey

unread,
Feb 8, 2017, 11:10:20 AM2/8/17
to dev mail list
Okay, cheers man -- I'll get back to this when I have some more time
to read up fully on the project and how it all hangs together.
Thanks again,
Doug.

Joshua Haase

unread,
Feb 11, 2017, 9:36:36 PM2/11/17
to doug livesey, dev mail list


doug livesey <bio...@gmail.com> writes:
> Hi -- I tried applying the patch in the simplest way (from some
> instructions I googled up), but it didn't know what file to apply the
> patch to.

Please read [1] for more info on how to report bugs.

[1]: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

> I suspect I'm operating with rather incomplete knowledge!
> Could you advise me on how to apply the patch to the st project?

Download the git repo of the project,
checkout the commit the patch was made for,
apply the patch as a new branch,
rebase the patch and fix conflicts,
publish the patch for master on the suckless website.



doug livesey

unread,
Feb 12, 2017, 7:58:57 AM2/12/17
to Joshua Haase, dev mail list
Ah, so the patch is for an earlier commit?
Which maybe explains why my attempt failed by not finding the file to patch.
Although I rather suspect the patch is for the window system which
then needs to be compiled with st.
However, I appreciate that people on this list are pretty busy -- in
fact I understand all too well! :)
Which is why I'm putting this on a back burner until I have the time
to investigate the suckless site and links fully. Until I have all the
proper context, I'd just end up spamming the mailing list for
step-by-step instructions.
Thanks for your response, though, that gives me another angle of
attack when I come back to this (which I will).
Cheers,
Doug.

Reply all
Reply to author
Forward
0 new messages