
<feed xmlns="http://www.w3.org/2005/Atom">
    <generator>Hugo -- gohugo.io</generator>
    <title>
                beamer on
            
        
        The Neo-Babbage Files</title>
        <link href="https://babbagefiles.xyz/tags/beamer/atom.xml" rel="self" type="application/atom+xml" /><link href="https://babbagefiles.xyz/tags/beamer/"/>
    <updated>2025-12-29T11:00:32+00:00</updated>
    <author>
            <name>Benjamin Slade</name>
            
                <email>slade@lambda-y.net</email>
            </author>
    <id>https://babbagefiles.xyz/tags/beamer/</id>
        
        <entry>
            <title type="html"><![CDATA[Running pdfpc in StumpWM]]></title>
            <link href="https://babbagefiles.xyz/pdfpc-in-stumpwm/"/>
            <id>https://babbagefiles.xyz/pdfpc-in-stumpwm/</id>
            
                    <author>
                        <name>Benjamin Slade</name>
                    </author>
            <published>2019-07-29T15:27:00-06:00</published>
            <updated>2019-07-29T15:30:25-06:00</updated>
            
            
            <content type="html"><![CDATA[<p><a href="https://pdfpc.github.io/"><code>pdfpc</code></a> is a fantastic application for presenting PDF slides,
including perhaps especially those produced using <a href="https://ctan.org/pkg/beamer">LaTeX Beamer</a>. It
creates two (full-screen) windows, one a presenter viewer which shows
the time elapsed and a preview of the next slide, and one the
presentation view which is what is shown to the audience. It also has
a bunch of other cool features like being able to draw on slides;
highlight areas of slides, &amp;c.</p>
<p>Here is an example, with the presenter&rsquo;s view shown on the left; the
audience&rsquo;s view on the right:</p>



<figure>
    
        <img src="https://babbagefiles.xyz/ox-hugo/pdfpc-screenshot01.png"/> </figure>

<p>In many environments <code>pdfpc</code> is pretty smart about getting the
presentation view to the external display, but in StumpWM both end up
getting created in the same frame in the same display.</p>
<p>(General tip: in StumpWM, after connecting/activating an external
display, you may need to run <a href="https://stumpwm.github.io/git/stumpwm-git_9.html#External-Monitors"><code>refresh-heads</code></a> to get StumpWM to display
things properly.)</p>
<p>For whatever reason, I can&rsquo;t get any of the <a href="https://stumpwm.github.io/git/stumpwm-git_9.html">Screen-related things</a> in
StumpWM to behave like I have more than one
screen. E.g. <code>*screen-list*</code> shows a singleton list even when an
external display is connected and activated:</p>
<div class="highlight"><pre class="chroma"><code class="language-lisp" data-lang="lisp"><span class="nv">STUMPWM&gt;</span> <span class="vg">*screen-list*</span>
<span class="p">(</span><span class="err">#</span><span class="nv">S&lt;screen</span> <span class="err">#</span><span class="nv">&lt;XLIB:SCREEN</span> <span class="ss">:0.0</span> <span class="nv">1366x768x24</span> <span class="nv">TRUE-COLOR&gt;&gt;</span><span class="p">)</span>
</code></pre></div><p>A passable solution is to use <a href="https://stumpwm.github.io/git/stumpwm-git_5.html#Rule-Based-Window-Placement"><code>define-frame-preference</code></a>, adding the
following to your <code>init.lisp</code> StumpWM configuration:</p>
<div class="highlight"><pre class="chroma"><code class="language-lisp" data-lang="lisp"><span class="c1">;; pdfpc rule - for &#39;Default&#39; group</span>
<span class="c1">;;  move to frame &#39;1&#39;;</span>
<span class="c1">;;  non-focussing (&#39;nil) the presentation view;</span>
<span class="c1">;;  not only matching (t) the target-group (&#39;Default&#39;);</span>
<span class="c1">;;  moving the &#39;pdfpc&#39; &#39;presentation&#39; window</span>
<span class="p">(</span><span class="nv">define-frame-preference</span> <span class="s">&#34;Default&#34;</span>
  <span class="p">(</span><span class="mi">1</span> <span class="no">nil</span> <span class="no">t</span> <span class="ss">:instance</span> <span class="s">&#34;pdfpc&#34;</span> <span class="ss">:role</span> <span class="s">&#34;presentation&#34;</span><span class="p">))</span>
</code></pre></div><p>This should properly move the presentation window to the external
display when <code>pdfpc</code> is run.</p>
]]></content>
            
                 
                    
                         
                        
                            
                             
                                <category scheme="https://babbagefiles.xyz/categories/lisp" term="lisp" label="lisp" />
                             
                                <category scheme="https://babbagefiles.xyz/categories/stumpwm" term="stumpwm" label="stumpwm" />
                            
                        
                    
                 
                    
                 
                    
                         
                        
                            
                             
                                <category scheme="https://babbagefiles.xyz/tags/pdfpc" term="pdfpc" label="pdfpc" />
                             
                                <category scheme="https://babbagefiles.xyz/tags/pdf" term="pdf" label="pdf" />
                             
                                <category scheme="https://babbagefiles.xyz/tags/presentation" term="presentation" label="presentation" />
                             
                                <category scheme="https://babbagefiles.xyz/tags/beamer" term="beamer" label="beamer" />
                            
                        
                    
                
            
        </entry>
    
</feed>
