<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>I3-Gaps on paapereira.xyz</title><link>https://paapereira.xyz/tags/i3-gaps/</link><description>Recent content in I3-Gaps on paapereira.xyz</description><generator>Hugo</generator><language>en-US</language><copyright>&lt;a href='https://creativecommons.org/licenses/by-nc/4.0/' target='_blank' rel='noopener'>©&lt;/a> 2008-2026 / &lt;a href='https://gitlab.com/paapereira/paapereira.gitlab.io' target='_blank' rel='noopener'>source code&lt;/a></copyright><lastBuildDate>Sat, 10 Apr 2021 15:32:24 +0100</lastBuildDate><atom:link href="https://paapereira.xyz/tags/i3-gaps/index.xml" rel="self" type="application/rss+xml"/><item><title>Reviewed bookmarks script</title><link>https://paapereira.xyz/posts/2021/04/reviewed-bookmarks-script/</link><pubDate>Sat, 10 Apr 2021 15:32:24 +0100</pubDate><guid>https://paapereira.xyz/posts/2021/04/reviewed-bookmarks-script/</guid><description>&lt;p>Following my &lt;a href="https://paapereira.xyz/posts/websearch-and-bookmarks-rofi/">previous post&lt;/a> I kept improving my &lt;code>bookmarks&lt;/code> script.&lt;/p>
&lt;p>I simplified the script to use only one bookmark file and defined a structure to help me while searching.&lt;/p>
&lt;h2 id="the-bookmarkstxt-file">The bookmarks.txt file&lt;/h2>
&lt;p>It has two sections (just for organization sake), a Quickmarks section for common urls and a Bookmarks section for everything else.&lt;/p>
&lt;p>Each line is divided in three parts. A category/name, tags and the url.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 1&lt;/span>&lt;span>cat ~/.local/bin/bookmarks.txt
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 2&lt;/span>&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 3&lt;/span>&lt;span>&amp;gt;&amp;gt; Quickmarks
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 4&lt;/span>&lt;span>&lt;span style="color:#75715e">#&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 5&lt;/span>&lt;span>&lt;span style="color:#75715e">#---&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 6&lt;/span>&lt;span>📚books/Goodreads ...... &lt;span style="color:#f92672">(&lt;/span>reviews&lt;span style="color:#f92672">)&lt;/span> ......... https://www.goodreads.com/
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 7&lt;/span>&lt;span>📚books/Audible ........ &lt;span style="color:#f92672">(&lt;/span>audiobook&lt;span style="color:#f92672">)&lt;/span> ....... https://www.audible.com/
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 8&lt;/span>&lt;span>📚books/Kindle_Deals ... &lt;span style="color:#f92672">(&lt;/span>kindle,ebooks&lt;span style="color:#f92672">)&lt;/span> ... https://www.amazon.com/b/?ie&lt;span style="color:#f92672">=&lt;/span>UTF8&amp;amp;node&lt;span style="color:#f92672">=&lt;/span>11552285011&amp;amp;ref_&lt;span style="color:#f92672">=&lt;/span>sv_kstore_5
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 9&lt;/span>&lt;span>&lt;span style="color:#75715e">#---&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">10&lt;/span>&lt;span>🟠headspace ............ &lt;span style="color:#f92672">(&lt;/span>meditation&lt;span style="color:#f92672">)&lt;/span> ...... https://www.headspace.com/login
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">11&lt;/span>&lt;span>📶reddit ............... &lt;span style="color:#f92672">(&lt;/span>news,forum&lt;span style="color:#f92672">)&lt;/span> ...... https://www.reddit.com/
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">12&lt;/span>&lt;span>📺youtube .............. &lt;span style="color:#f92672">(&lt;/span>video,stream&lt;span style="color:#f92672">)&lt;/span> .... https://www.youtube.com/
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">13&lt;/span>&lt;span>⭐paapereira.xyz ....... &lt;span style="color:#f92672">(&lt;/span>blog&lt;span style="color:#f92672">)&lt;/span> ............ https://paapereira.xyz/
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">14&lt;/span>&lt;span>&lt;span style="color:#75715e">#&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">15&lt;/span>&lt;span>-------------------------------------------------------------------------------------------------------------------
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">16&lt;/span>&lt;span>&lt;span style="color:#75715e">#&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">17&lt;/span>&lt;span>&amp;gt;&amp;gt; Bookmarks
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">18&lt;/span>&lt;span>&lt;span style="color:#75715e">#&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">19&lt;/span>&lt;span>🏦banking/cgd.pt ..................... &lt;span style="color:#f92672">(&lt;/span>bank&lt;span style="color:#f92672">)&lt;/span> ............ https://www.cgd.pt/
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">20&lt;/span>&lt;span>🏦banking/big.pt ..................... &lt;span style="color:#f92672">(&lt;/span>bank&lt;span style="color:#f92672">)&lt;/span> ............ https://big.pt/
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">21&lt;/span>&lt;span>🏦banking/sodexo ..................... &lt;span style="color:#f92672">(&lt;/span>bank&lt;span style="color:#f92672">)&lt;/span> ............ https://www.sodexobeneficios.pt/
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">22&lt;/span>&lt;span>&lt;span style="color:#75715e">#---&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">23&lt;/span>&lt;span>&lt;span style="color:#75715e">#eof&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="the-bookmarks-script">The bookmarks script&lt;/h2>
&lt;p>With this reviewed script you can also quickly edit the bookmarks.txt file.&lt;/p></description></item><item><title>Web searching and bookmarks using Rofi</title><link>https://paapereira.xyz/posts/2021/04/websearch-and-bookmarks-rofi/</link><pubDate>Fri, 02 Apr 2021 15:58:21 +0100</pubDate><guid>https://paapereira.xyz/posts/2021/04/websearch-and-bookmarks-rofi/</guid><description>&lt;p>Inspired in a recent &lt;a href="https://www.youtube.com/channel/UCVls1GmFKf6WlTraIb_IaJg">DT&lt;/a> video and his &lt;a href="https://gitlab.com/dwt1/dmscripts">Gitlab&lt;/a> repository, I revamped my websearch shell script I&amp;rsquo;ve been using with &lt;a href="https://paapereira.xyz/tags/rofi">Rofi&lt;/a>.&lt;/p>
&lt;p>I already had something very similar to this, but I took this opportunity to review the code and to separate my old websearch script into two scripts:&lt;/p>
&lt;ul>
&lt;li>websearch: web searching in an handful of sites&lt;/li>
&lt;li>bookmarks: quickly open bookmarks&lt;/li>
&lt;/ul>
&lt;h2 id="websearch">websearch&lt;/h2>
&lt;p>This script allows for searching in a number of sites.&lt;/p>
&lt;p>You can add your own sites by adding a new &amp;lsquo;options&amp;rsquo; line.&lt;/p></description></item><item><title>betterlockscreen: a simple, minimal lockscreen</title><link>https://paapereira.xyz/posts/2021/03/betterlockscreen/</link><pubDate>Sat, 27 Mar 2021 17:13:39 +0000</pubDate><guid>https://paapereira.xyz/posts/2021/03/betterlockscreen/</guid><description>&lt;p>&lt;a href="https://github.com/pavanjadhaw/betterlockscreen">betterlockscreen&lt;/a> is a simple and minimal lockscreen.&lt;/p>
&lt;p>I have been using &lt;code>i3lock&lt;/code>, witch conflicts with &lt;code>betterlockscreen&lt;/code>, so it will be uninstalled.&lt;/p>
&lt;p>To install:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>paru -S betterlockscreen
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2&lt;/span>&lt;span>cp /usr/share/doc/betterlockscreen/examples/betterlockscreenrc ~/.config
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>In my case, using &lt;code>i3-gaps&lt;/code>, I added to &lt;code>~/.config/i3/config&lt;/code>:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-text" data-lang="text">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>exec --no-startup-id betterlockscreen -w dim
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2&lt;/span>&lt;span>exec --no-startup-id xautolock -time 10 -corners 000- -locker &amp;#34;betterlockscreen -l dim&amp;#34;
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>And reviewed my session key bindings:&lt;/p></description></item><item><title>Rofi: a window switcher, application launcher and dmenu replacement</title><link>https://paapereira.xyz/posts/2021/03/rofi/</link><pubDate>Sun, 14 Mar 2021 14:27:52 +0000</pubDate><guid>https://paapereira.xyz/posts/2021/03/rofi/</guid><description>&lt;p>&lt;a href="https://github.com/davatorium/rofi">Rofi&lt;/a> is a &lt;em>window switcher, application launcher and &lt;a href="https://wiki.archlinux.org/index.php/dmenu">dmenu&lt;/a> replacement&lt;/em>.&lt;/p>
&lt;p>I’ve been using &lt;code>rofi&lt;/code> with &lt;code>i3-gaps&lt;/code> since early 2019. I had played with it before, but I’ve been using it daily the last couple of years.&lt;/p>
&lt;p>I use it to launch applications, open ssh sessions, with &lt;a href="https://paapereira.xyz/tags/pass">pass&lt;/a> and with a set of useful custom scripts.&lt;/p>
&lt;h2 id="installation">Installation&lt;/h2>
&lt;p>You need to install the &lt;code>rofi&lt;/code> package. I also installed &lt;code>rofi-dmenu&lt;/code> for dmenu compatibility, &lt;code>rofi-pass&lt;/code> to use with &lt;a href="https://paapereira.xyz/tags/pass">pass&lt;/a> and the extra &lt;code>rofi-emoji&lt;/code> and &lt;code>rofi-calc&lt;/code>.&lt;/p></description></item></channel></rss>