<p>Hello, this is your host, Archer72 for another episode of
Hacker Public Radio.</p>
<p>In this episode, I continue to fall for the AI trap.</p>
<p>Here I was, minding my own business, when I was bothered by
the icon only showing a generic icon for the Beeper app.</p>
<p>Now, I&#39;m not saying that Duck.ai is not useful, but be
very careful what you ask for.</p>
<p>It was probably a combination of the early morning, and not
reading completely through the AI suggestions, but I ended
up losing all icons on the Gnome desktop except for a few
like Firefox.  I won&#39;t leave the problematic command so I
don&#39;t trip up the listener, but it involved updating a
desktop database.   This in turn left a dash or blank where
the icons should be.</p>
<p>If that wasn&#39;t bad enough, it was suggested to reset Gnome
settings, and nothing was as it seemed before.  Things that
I had taken for granted were not there.  You forget what
custom settings are there when mistakes like this are made.</p>
<p>So the short answer is that the icons directory, located on
my Debian system should be located in </p>
<p><code>.local/share/icons</code>.</p>
<p>Instead it was in a sub-directory </p>
<p><code>.local/share/icons/icons</code></p>
<p>Correcting the directory location solved everything, but I
was still left to reset my custom Gnome keybindings.</p>
<p>• Swap Escape and Caps lock key</p>
<p>I used this because I am a Vim user, and this feels more
natural when I need to hit Escape to change modes.</p>
<p>In Gnome, the setting is under <a href="https://gitlab.gnome.org/GNOME/gnome-tweaks">Gnome Tweaks</a> &gt;
 Keyboard &gt;
 Additional Layout Options &gt;
 Swap Esc and Caps Lock Key</p>
<p>As of this show release the current stable version is
Trixie.  <a href="https://packages.debian.org/trixie/gnome-tweaks">Gnome Tweaks - Debian Trixie</a> can be installed by <code>sudo apt install gnome-tweaks</code> on any Debian based system.</p>
<p>• Compose key
• <a href="https://fsymbols.com/keyboard/linux/compose">Compose key shortcuts</a></p>
<p>The Compose key is found at Settings &gt;
 Keyboard &gt;
 Compose
Key.   I selected the Menu key, because this is rarely used,
and can still be accessed by the track pad.</p>
<p>• Shortcut to open MPV with a clipboard URL from Youtube</p>
<p>This can be found in Setting &gt;
 Keyboard &gt;
 View and Customize
Shortcuts &gt;
 Custom Shortcuts</p>
<pre><code><span class="hljs-built_in">Shift</span>+Ctrl+P
</code></pre><p>Code placed in <code>/usr/local/bin/</code></p>
<pre><code><span class="hljs-meta">#!/bin/bash</span>
<span class="hljs-comment">## mpv-url</span>

url=`xsel -o -b`
<span class="hljs-built_in">echo</span> <span class="hljs-variable">$url</span>
mpv <span class="hljs-variable">$url</span>
</code></pre><p>Now I can get back to what I started in the first place,
creating a <code>.desktop</code> file for Beeper.</p>
<p>I created a beeper-desktop.desktop file in
`~/.local/share/applications&#39; with the follow contents.</p>
<pre><code><span class="hljs-section">[Desktop Entry]</span>
<span class="hljs-attr">Name</span>=Beeper Desktop
<span class="hljs-attr">Exec</span>=/home/mark/AppImages/Beeper-<span class="hljs-number">4.1</span>.<span class="hljs-number">169</span>.AppImage
<span class="hljs-attr">Icon</span>=/home/mark/.local/share/icons/beeper.png
<span class="hljs-attr">Type</span>=Application
<span class="hljs-attr">Categories</span>=Network;InstantMessaging;
<span class="hljs-attr">Terminal</span>=<span class="hljs-literal">false</span>
<span class="hljs-attr">StartupWMClass</span>=Beeper
</code></pre><p>The last part of the config file can be found by </p>
<p><code>xprop | grep WM_CLASS</code></p>
