This commit is contained in:
SqrtMinusOne 2022-04-09 09:22:18 +00:00
parent ef07205b9f
commit a59c819a55
6 changed files with 10 additions and 16 deletions

View file

@ -461,11 +461,11 @@
</span></span><span style="display:flex;"><span><span style="color:#a6e22e">image/png</span><span style="color:#f92672">=</span><span style="color:#e6db74">feh.desktop</span>
</span></span><span style="display:flex;"><span><span style="color:#a6e22e">image/jpg</span><span style="color:#f92672">=</span><span style="color:#e6db74">feh.desktop</span>
</span></span><span style="display:flex;"><span><span style="color:#a6e22e">image/jpeg</span><span style="color:#f92672">=</span><span style="color:#e6db74">feh.desktop</span>
</span></span><span style="display:flex;"><span><span style="color:#a6e22e">application/pdf</span><span style="color:#f92672">=</span><span style="color:#e6db74">zathura-wrapper.desktop</span>
</span></span><span style="display:flex;"><span><span style="color:#a6e22e">application/pdf</span><span style="color:#f92672">=</span><span style="color:#e6db74">org.pwmt.zathura.desktop</span>
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#66d9ef">[Added Associations]</span>
</span></span><span style="display:flex;"><span><span style="color:#a6e22e">x-scheme-handler/tg</span><span style="color:#f92672">=</span><span style="color:#e6db74">userapp-Telegram Desktop-7PVWF1.desktop;</span>
</span></span><span style="display:flex;"><span><span style="color:#a6e22e">application/pdf</span><span style="color:#f92672">=</span><span style="color:#e6db74">zathura-wrapper.desktop</span>
</span></span><span style="display:flex;"><span><span style="color:#a6e22e">application/pdf</span><span style="color:#f92672">=</span><span style="color:#e6db74">org.pwmt.zathura.desktop</span>
</span></span></code></pre></div><h3 id="device-specific-settings">Device-specific settings</h3>
<table>
<thead>
@ -3448,16 +3448,7 @@
</span></span></span><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010"></span><span style="color:#a6e22e">set</span> <span style="color:#a6e22e">notification</span>-<span style="color:#a6e22e">error</span>-<span style="color:#a6e22e">fg</span> &lt;&lt;<span style="color:#a6e22e">get</span>-<span style="color:#a6e22e">color</span>(<span style="color:#a6e22e">name</span>=<span style="color:#e6db74">&#34;color-fg&#34;</span>, <span style="color:#a6e22e">quote</span>=<span style="color:#ae81ff">1</span>)&gt;&gt;<span style="color:#960050;background-color:#1e0010">
</span></span></span><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010"></span><span style="color:#a6e22e">set</span> <span style="color:#a6e22e">notification</span>-<span style="color:#a6e22e">warning</span>-<span style="color:#a6e22e">bg</span> &lt;&lt;<span style="color:#a6e22e">get</span>-<span style="color:#a6e22e">color</span>(<span style="color:#a6e22e">name</span>=<span style="color:#e6db74">&#34;yellow&#34;</span>, <span style="color:#a6e22e">quote</span>=<span style="color:#ae81ff">1</span>)&gt;&gt;<span style="color:#960050;background-color:#1e0010">
</span></span></span><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010"></span><span style="color:#a6e22e">set</span> <span style="color:#a6e22e">notification</span>-<span style="color:#a6e22e">warning</span>-<span style="color:#a6e22e">fg</span> &lt;&lt;<span style="color:#a6e22e">get</span>-<span style="color:#a6e22e">color</span>(<span style="color:#a6e22e">name</span>=<span style="color:#e6db74">&#34;color-fg&#34;</span>, <span style="color:#a6e22e">quote</span>=<span style="color:#ae81ff">1</span>)&gt;&gt;<span style="color:#960050;background-color:#1e0010">
</span></span></span></code></pre></div><p>For some reason zathura doesn&rsquo;t pick up the plugin directory, so I make a wrapper that sets the directory up:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>zathura -p ~/.guix-extra-profiles/office/office/lib/zathura $@
</span></span></code></pre></div><pre tabindex="0"><code class="language-conf-desktop" data-lang="conf-desktop">[Desktop Entry]
Version=1.0
Type=Application
Name=Zathura
Exec=/home/pavel/bin/zathura-wrapper %U
</code></pre><p>Add the following line to the <code>mimeapps.list</code></p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-text" data-lang="text"><span style="display:flex;"><span>application/pdf=zathura-wrapper.desktop
</span></span></code></pre></div><h2 id="various-software">Various software</h2>
</span></span></span></code></pre></div><h2 id="various-software">Various software</h2>
<p>This section generates manifests for various desktop software that I&rsquo;m using.</p>
<h3 id="browsers">Browsers</h3>
<table>

View file

@ -557,6 +557,10 @@
</tr>
<tr>
<td>system</td>
<td>openresolv</td>
</tr>
<tr>
<td>system</td>
<td>vpnc</td>
</tr>
</tbody>
@ -591,8 +595,7 @@
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-sh" data-lang="sh"><span style="display:flex;"><span>cp /etc/resolv.conf /etc/resolv.conf-bak
</span></span><span style="display:flex;"><span>echo <span style="color:#e6db74">&#34;nameserver 8.8.8.8&#34;</span> &gt; /etc/resolv.conf
</span></span></code></pre></div><p>Restore <code>resolv.conf</code></p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-sh" data-lang="sh"><span style="display:flex;"><span>cp /etc/resolv.conf-bak /etc/resolv.conf
</span></span><span style="display:flex;"><span>rm /etc/resolv.conf-bak
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-sh" data-lang="sh"><span style="display:flex;"><span>resolveconf -u
</span></span></code></pre></div><div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-vim" data-lang="vim"><span style="display:flex;"><span><span style="color:#a6e22e">up</span> <span style="color:#e6db74">/home/</span><span style="color:#a6e22e">pavel</span><span style="color:#e6db74">/bin/</span><span style="color:#a6e22e">scripts</span>/<span style="color:#a6e22e">fix</span>-<span style="color:#a6e22e">resolve</span>-<span style="color:#a6e22e">conf</span><span style="color:#960050;background-color:#1e0010">
</span></span></span><span style="display:flex;"><span><span style="color:#960050;background-color:#1e0010"></span><span style="color:#a6e22e">down</span> <span style="color:#e6db74">/home/</span><span style="color:#a6e22e">pavel</span><span style="color:#e6db74">/bin/</span><span style="color:#a6e22e">scripts</span>/<span style="color:#a6e22e">restore</span>-<span style="color:#a6e22e">resolve</span>-<span style="color:#a6e22e">conf</span><span style="color:#960050;background-color:#1e0010">
</span></span></span></code></pre></div></li>

View file

@ -605,8 +605,8 @@ Remove <code>TAG</code> from emails which are outside the matching <code>PATH</c
</span></span><span style="display:flex;"><span>image/*; feh %s
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span>application/msword; /usr/bin/xdg-open %s
</span></span><span style="display:flex;"><span>application/pdf; zathura-wrapper %s
</span></span><span style="display:flex;"><span>application/postscript ; zathura-wrapper %s
</span></span><span style="display:flex;"><span>application/pdf; zathura %s
</span></span><span style="display:flex;"><span>application/postscript ; zathura %s
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span>text/html; firefox %s
</span></span></code></pre></div><h2 id="guix-settings">Guix settings</h2>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 121 KiB

After

Width:  |  Height:  |  Size: 121 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 KiB

After

Width:  |  Height:  |  Size: 68 KiB