<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: tekk73</title>
    <description>The latest articles on DEV Community by tekk73 (@tekk73).</description>
    <link>https://dev.to/tekk73</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3803566%2Fca7a811a-b429-45b2-9dcc-edd152d1339e.png</url>
      <title>DEV Community: tekk73</title>
      <link>https://dev.to/tekk73</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tekk73"/>
    <language>en</language>
    <item>
      <title>Linux Screen Recording: A C++ GUI or 26 Lines of Bash?</title>
      <dc:creator>tekk73</dc:creator>
      <pubDate>Fri, 03 Jul 2026 16:33:44 +0000</pubDate>
      <link>https://dev.to/tekk73/linux-screen-recording-a-c-gui-or-26-lines-of-bash-10ka</link>
      <guid>https://dev.to/tekk73/linux-screen-recording-a-c-gui-or-26-lines-of-bash-10ka</guid>
      <description>&lt;p&gt;I've used a Linux OS as my daily driver for 15 years now. Recently, I wanted a way to record my screen on my minimal Linux system.&lt;/p&gt;

&lt;p&gt;The obvious choice was &lt;strong&gt;SimpleScreenRecorder (SSR)&lt;/strong&gt;, a classic, mature C++/Qt application with over 15,000 lines of code. It's an excellent application that solves screen recording for a wide range of users. I even created a fork of SSR with some of the features I didn't need removed. &lt;/p&gt;

&lt;p&gt;But I realized my needs were simpler. I could do the same thing with a Bash shell script in my terminal.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;#!/usr/bin/env bash&lt;/span&gt;
&lt;span class="nb"&gt;set&lt;/span&gt; &lt;span class="nt"&gt;-e&lt;/span&gt;

&lt;span class="k"&gt;case&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="k"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;1&lt;/span&gt;&lt;span class="k"&gt;:-}&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt;
  &lt;span class="nt"&gt;-h&lt;/span&gt;&lt;span class="p"&gt;|&lt;/span&gt;&lt;span class="nt"&gt;--help&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Usage: ssr.sh [filename]       Record screen (default: /home/ben/NEW.mkv)"&lt;/span&gt;
    &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"       ssr.sh --list-audio     List PulseAudio sources"&lt;/span&gt;
    &lt;span class="nb"&gt;exit &lt;/span&gt;0
    &lt;span class="p"&gt;;;&lt;/span&gt;
  &lt;span class="nt"&gt;--list-audio&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    pactl list sources short
    &lt;span class="nb"&gt;exit &lt;/span&gt;0
    &lt;span class="p"&gt;;;&lt;/span&gt;
&lt;span class="k"&gt;esac&lt;/span&gt;

&lt;span class="nv"&gt;out&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="k"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;1&lt;/span&gt;&lt;span class="k"&gt;:-&lt;/span&gt;&lt;span class="p"&gt;/home/ben/NEW&lt;/span&gt;&lt;span class="k"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;span class="nv"&gt;out&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$out&lt;/span&gt;&lt;span class="s2"&gt;.mkv"&lt;/span&gt;

ffmpeg &lt;span class="nt"&gt;-y&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-f&lt;/span&gt; x11grab &lt;span class="nt"&gt;-r&lt;/span&gt; 60 &lt;span class="nt"&gt;-s&lt;/span&gt; 1600x900 &lt;span class="nt"&gt;-i&lt;/span&gt; :0.0+0,0 &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-f&lt;/span&gt; pulse &lt;span class="nt"&gt;-i&lt;/span&gt; bluez_sink.00_1A_7D_0A_0C_88.a2dp_sink.monitor &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-c&lt;/span&gt;:v libx264 &lt;span class="nt"&gt;-crf&lt;/span&gt; 23 &lt;span class="nt"&gt;-preset&lt;/span&gt; fast &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-c&lt;/span&gt;:a aac &lt;span class="nt"&gt;-b&lt;/span&gt;:a 128k &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$out&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;

&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Saved: &lt;/span&gt;&lt;span class="nv"&gt;$out&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Twenty-six lines. No GUI. Just &lt;code&gt;ffmpeg&lt;/code&gt;. For my workflow, that's enough. &lt;/p&gt;

&lt;p&gt;My settings never change: same monitor, same resolution, same audio source, same codec. I don't need a settings window every time—I need a keyboard shortcut to start recording and &lt;code&gt;Ctrl+C&lt;/code&gt; to stop.The experience reminded me of one of Linux's greatest strengths.&lt;/p&gt;

&lt;p&gt;The real power isn't the GUI, but in the tools underneath it.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;ffmpeg&lt;/code&gt; doesn't care whether it's launched from Qt, GTK, or a shell script. The GUI is a convenient interface, but &lt;code&gt;ffmpeg&lt;/code&gt; is the recorder.&lt;/p&gt;

&lt;p&gt;I run a minimal system with CrunchBang++, Openbox, and Tint2. My 2021 HP Tiger Lake laptop boots to a login prompt in about 17 seconds—not because it's unusually fast, but because there's no heavy desktop environment and nothing running on my PC that I didn't choose myself.&lt;/p&gt;

&lt;p&gt;This isn't an argument against GUI applications or desktop environments. They make software more discoverable and accessible, and Linux applications like SSR deserve a great deal of respect.&lt;/p&gt;

&lt;p&gt;But many people are trying Linux for the first time these days. This is simply a reminder that sometimes the best Linux application isn't another application at all. Sometimes it's a shell script, a keyboard shortcut, and the confidence to learn to use the terminal.&lt;/p&gt;

&lt;p&gt;tekk73 - July 2026&lt;/p&gt;

</description>
      <category>linux</category>
      <category>bash</category>
      <category>terminal</category>
      <category>cli</category>
    </item>
  </channel>
</rss>
