<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>
            
                    beamer on
                
            
            The Neo-Babbage Files</title>
        <link>https://babbagefiles.xyz/tags/beamer/</link>
        <description>Recent content  in beamer
            on The Neo-Babbage Files</description>
        <language>en-gb</language>
        
                <managingEditor>slade@lambda-y.net (Benjamin Slade)</managingEditor>
                <webMaster>slade@lambda-y.net (Benjamin Slade)</webMaster><lastBuildDate>Mon, 29 Dec 2025 11:00:32 +0000</lastBuildDate>
        <generator>Hugo -- gohugo.io</generator>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
            <atom:link href="https://babbagefiles.xyz/tags/beamer/index.xml" rel="self" type="application/rss&#43;xml" />
        
            
            <item>
                <title>Running pdfpc in StumpWM</title>
                <link>https://babbagefiles.xyz/pdfpc-in-stumpwm/</link>
                
                
                <description>&lt;p&gt;&lt;a href=&#34;https://pdfpc.github.io/&#34;&gt;&lt;code&gt;pdfpc&lt;/code&gt;&lt;/a&gt; is a fantastic application for presenting PDF slides,
including perhaps especially those produced using &lt;a href=&#34;https://ctan.org/pkg/beamer&#34;&gt;LaTeX Beamer&lt;/a&gt;. 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;amp;c.&lt;/p&gt;
&lt;p&gt;Here is an example, with the presenter&amp;rsquo;s view shown on the left; the
audience&amp;rsquo;s view on the right:&lt;/p&gt;



&lt;figure&gt;
    
        &lt;img src=&#34;https://babbagefiles.xyz/ox-hugo/pdfpc-screenshot01.png&#34;/&gt; &lt;/figure&gt;

&lt;p&gt;In many environments &lt;code&gt;pdfpc&lt;/code&gt; 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.&lt;/p&gt;
&lt;p&gt;(General tip: in StumpWM, after connecting/activating an external
display, you may need to run &lt;a href=&#34;https://stumpwm.github.io/git/stumpwm-git_9.html#External-Monitors&#34;&gt;&lt;code&gt;refresh-heads&lt;/code&gt;&lt;/a&gt; to get StumpWM to display
things properly.)&lt;/p&gt;
&lt;p&gt;For whatever reason, I can&amp;rsquo;t get any of the &lt;a href=&#34;https://stumpwm.github.io/git/stumpwm-git_9.html&#34;&gt;Screen-related things&lt;/a&gt; in
StumpWM to behave like I have more than one
screen. E.g. &lt;code&gt;*screen-list*&lt;/code&gt; shows a singleton list even when an
external display is connected and activated:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-lisp&#34; data-lang=&#34;lisp&#34;&gt;&lt;span class=&#34;nv&#34;&gt;STUMPWM&amp;gt;&lt;/span&gt; &lt;span class=&#34;vg&#34;&gt;*screen-list*&lt;/span&gt;
&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;err&#34;&gt;#&lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;S&amp;lt;screen&lt;/span&gt; &lt;span class=&#34;err&#34;&gt;#&lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;&amp;lt;XLIB:SCREEN&lt;/span&gt; &lt;span class=&#34;ss&#34;&gt;:0.0&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;1366x768x24&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;TRUE-COLOR&amp;gt;&amp;gt;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;A passable solution is to use &lt;a href=&#34;https://stumpwm.github.io/git/stumpwm-git_5.html#Rule-Based-Window-Placement&#34;&gt;&lt;code&gt;define-frame-preference&lt;/code&gt;&lt;/a&gt;, adding the
following to your &lt;code&gt;init.lisp&lt;/code&gt; StumpWM configuration:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-lisp&#34; data-lang=&#34;lisp&#34;&gt;&lt;span class=&#34;c1&#34;&gt;;; pdfpc rule - for &amp;#39;Default&amp;#39; group&lt;/span&gt;
&lt;span class=&#34;c1&#34;&gt;;;  move to frame &amp;#39;1&amp;#39;;&lt;/span&gt;
&lt;span class=&#34;c1&#34;&gt;;;  non-focussing (&amp;#39;nil) the presentation view;&lt;/span&gt;
&lt;span class=&#34;c1&#34;&gt;;;  not only matching (t) the target-group (&amp;#39;Default&amp;#39;);&lt;/span&gt;
&lt;span class=&#34;c1&#34;&gt;;;  moving the &amp;#39;pdfpc&amp;#39; &amp;#39;presentation&amp;#39; window&lt;/span&gt;
&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;define-frame-preference&lt;/span&gt; &lt;span class=&#34;s&#34;&gt;&amp;#34;Default&amp;#34;&lt;/span&gt;
  &lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;1&lt;/span&gt; &lt;span class=&#34;no&#34;&gt;nil&lt;/span&gt; &lt;span class=&#34;no&#34;&gt;t&lt;/span&gt; &lt;span class=&#34;ss&#34;&gt;:instance&lt;/span&gt; &lt;span class=&#34;s&#34;&gt;&amp;#34;pdfpc&amp;#34;&lt;/span&gt; &lt;span class=&#34;ss&#34;&gt;:role&lt;/span&gt; &lt;span class=&#34;s&#34;&gt;&amp;#34;presentation&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;))&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This should properly move the presentation window to the external
display when &lt;code&gt;pdfpc&lt;/code&gt; is run.&lt;/p&gt;
</description>
                
                        <author>Benjamin.Slade@fakeEmailToMakeValidatorHappy.com (Benjamin Slade)</author>
                
                     
                        
                             
                            
                                
                                 
                                    <category domain="https://babbagefiles.xyz/categories/lisp">lisp</category>
                                 
                                    <category domain="https://babbagefiles.xyz/categories/stumpwm">stumpwm</category>
                                
                            
                        
                     
                        
                     
                        
                             
                            
                                
                                 
                                    <category domain="https://babbagefiles.xyz/tags/pdfpc">pdfpc</category>
                                 
                                    <category domain="https://babbagefiles.xyz/tags/pdf">pdf</category>
                                 
                                    <category domain="https://babbagefiles.xyz/tags/presentation">presentation</category>
                                 
                                    <category domain="https://babbagefiles.xyz/tags/beamer">beamer</category>
                                
                            
                        
                    
                
                <guid>https://babbagefiles.xyz/pdfpc-in-stumpwm/</guid>
                <pubDate>Mon, 29 Jul 2019 15:27:00 -0600</pubDate>
            </item>
        
    </channel>
</rss>


