<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ben Reaves on Medium]]></title>
        <description><![CDATA[Stories by Ben Reaves on Medium]]></description>
        <link>https://medium.com/@benreaves?source=rss-a37db6ac3242------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*aJOXC-lBiX01J6Mk.</url>
            <title>Stories by Ben Reaves on Medium</title>
            <link>https://medium.com/@benreaves?source=rss-a37db6ac3242------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 23:00:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@benreaves/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Life without Algorithms]]></title>
            <link>https://benreaves.medium.com/life-without-algorithms-753a00def752?source=rss-a37db6ac3242------2</link>
            <guid isPermaLink="false">https://medium.com/p/753a00def752</guid>
            <category><![CDATA[facebook]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[youtube]]></category>
            <category><![CDATA[twitter]]></category>
            <category><![CDATA[social-media]]></category>
            <dc:creator><![CDATA[Ben Reaves]]></dc:creator>
            <pubDate>Sat, 30 Jul 2022 20:23:21 GMT</pubDate>
            <atom:updated>2022-07-30T20:23:21.878Z</atom:updated>
            <content:encoded><![CDATA[<p>A perspective from a software developer.</p><p>So I started to get burnt out awhile back, not from Facebook, Twitter, Instagram or some other typical social media platform, but by Youtube. I already checked out mostly from FB a long time ago, probably around 2016, but youtube I thought was a fairly safe place, besides the comments section. (although depending on the topic the comments section can be good too)</p><p>What I didn’t know or realize was how heavily the youtube would start to tweak their algorithm to tailor more and more news, politics and simply put push infotainment with a side of outrage into my face on a near daily basis for years. It really hindered my ability to think without a near constant feeling of dread somewhere in the back of my mind. Maybe one day I will be in a position to help with the many issues that impact society, but at the moment that is not my role, nor my talent, and so I will carry on with what I am good at and where I can impact change in people’s daily lives.</p><p>So how do you tame the algorithm? It is annoying to have to do — but you really do have to make use use of those 3 dots now in youtube to clean it up, tell it not to push certain things to you anymore, ignore certain channels, and subscribe to others — something I was horrible at doing. I felt it was more democratic of me to not subscribe to keep youtube a little more random that it would be otherwise — but the reality we live in now is that almost nothing is random or curated by individuals online anymore… practically everything &amp; I mean everything is driven by algorithms and analytics. You are not a person to anyone, you are potential buyer in the eyes of corporate entities and a string of bytes to whatever AI based algorithm a company happens to be using.</p><p>While I was at it though I also got rid of trending on Twitter. I am sorry, but I really don’t care to know what Ashton Kutcher is up to or why Disney did X to Y or for Z. I just don’t care, all of it is a distraction and I do not need pointless topics or celeb gossip to be interesting. So I went through some settings in Twitter and tweaked it and installed Tweak New Twitter chrome extension. The topics I explicitly told Twitter I am not interested in are Celebrities, Entertainment news, Sports and US national news. I want a period in my life where those around me will be catching ME up on the news, not the other way around.</p><p>I also added BlockTube and Channel Blocker to help ensure certain things stay away even after I remove certain channels on Youtube, keywords and phrases. All sorts of things I want to ensure do not get thrown my way. The algorithm might learn this as well, but I will control what gets shown to me going forward and mostly because there is not true randomness or such thing as human curated content online anymore. That era of the internet is beyond dead, it’s 6ft under and has been worm food for awhile now.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=753a00def752" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linux Desktop 2022]]></title>
            <link>https://benreaves.medium.com/linux-desktop-2022-2bb1dfbd8ef4?source=rss-a37db6ac3242------2</link>
            <guid isPermaLink="false">https://medium.com/p/2bb1dfbd8ef4</guid>
            <category><![CDATA[desktop-environments]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Ben Reaves]]></dc:creator>
            <pubDate>Thu, 23 Dec 2021 20:19:39 GMT</pubDate>
            <atom:updated>2021-12-23T20:20:37.751Z</atom:updated>
            <content:encoded><![CDATA[<p>So my most popular Linux Desktop app, kinto.sh, had its first commit on July 26th, 2019 — and it has been about 2 and half years since then. As of today kinto has 2,316 stars as we enter into the new year! The question remains, what will my focus be for 2022 in the realm of Linux Desktops?</p><ol><li>Sorun.me — Think of it as a concierge service on getting your distro and desktop set well from the moment you arrive, assuming you picked one of the few distros it supports. Initial support is Ubuntu Budgie &amp; Pop!_OS, although most development is just going into Budgie right now. This is also geared towards creatives and programmers.</li></ol><p>Touchpads and integrated graphics, tearing, or video decode support in browsers, etc, need a lot of help in my opinion to get set into their optimal states so that will likely be a major edition to sorun.me — setting those things right out of the gate. Distro maintainers seem uninterested in delving deep into support individual hardware setups, laptops, etc. It is kinda funny, sad and annoying all at the same time because most of the tools for a good experience are all there but as is often the case with Linux — some assembly is required. Sorunme will go to great lengths to take the assembly out of it so people can focus on their work, not getting basic hardware and normal setups working.</p><p>I will likely also include testing regiments as well to ensure that settings get applied properly as it’d be annoying to think you got something working when you don’t.</p><p>2. HiBlur — I would really like to create a pseudo blur look to things even in Budgie despite it not supporting blur, so I will likely come up with some creative ways to achieve this in low resource type ways.</p><p>3. HiDPI Doctor — Mixing hidpi and normal monitors together is a real pain — this will hopefully prove to resolve much of the annoyance by simply asking you if you’d like to restart an app if you move an app to a monitor that it clearly is going to look too huge or too small on. Why no one has created this already on x11 I do not know. Wayland is apparently a way forward so I imagine that could be why, but until a number of more things are worked out over there I will likely want this in the meanwhile.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2bb1dfbd8ef4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Upset a Linux User]]></title>
            <link>https://benreaves.medium.com/how-to-upset-a-linux-user-669012415a5d?source=rss-a37db6ac3242------2</link>
            <guid isPermaLink="false">https://medium.com/p/669012415a5d</guid>
            <dc:creator><![CDATA[Ben Reaves]]></dc:creator>
            <pubDate>Thu, 21 Oct 2021 00:29:45 GMT</pubDate>
            <atom:updated>2021-10-21T00:29:45.489Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GhBOzQFT9Ii5sv_MoukqTA.png" /></figure><p>Your OS can’t do jack. Actually your OS can’t do feature X. That’s pretty much it — many Linux Desktop users do not like to hear that their OS, or distro, of choice lacks any particular feature or capability. And even fewer of them can be bothered to look at solving the issue(s) at hand, but it is a genuinely difficult problem when everyone has the freedom to work on what’s interesting to them — instead of what may make the greatest or best impact to users at large and their personal workflows.</p><p>Fragmentation is only part of the problem and the divide between X11 and Wayland was almost enough for me to not pursue kinto.sh at all, and it did certainly delay it for some months, maybe a year, before I decided to just do it in x11 and worry about Wayland later. I am very glad that I made that choice because much of my work can be ported to Wayland at some point.</p><p>These days the latest comment that I made that upset a Linux desktop user was pointing out that all floating window managers, certainly the popular and well maintained ones, do not support independent Virtual Desktops per monitor, but rather they are all spanned across every desktop. The feature of pinning an app to all desktops is an ok-ish workaround, but certainly not ideal. Besides Enlightenment, an old and dated floating manager, only the tiling managers appear to support this feature.</p><p>Some devs of the floating DE &amp; Window managers, such as KDE, blame certain specs in x11 as the reason and concerns of breaking apps. Regardless of the reason(s) there does not appear to be a desktop environment out there, besides tiling managers, like i3, that want to support this feature that macOS has had for several years. Windows 10 and 11 lack this feature as well — although in some insider builds it is clear this feature is on Microsoft’s radar, while Linux desktops is looking to be the only one that will soon be lacking this usability and workflow feature.</p><p>I am not sure what the solution to this problem is, perhaps it is me digging into how some of these DEs work &amp; submitting a patch for additional functionality, or figuring out a work around the x11 spec in general &amp;/or petition for changes in it. Regardless I feel like my quest for the perfect Linux Desktop will be close to a never ending one, perhaps we will get there one day — but not yet.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=669012415a5d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[macOS to Linux & Back Again]]></title>
            <link>https://benreaves.medium.com/macos-to-linux-back-again-c6151200f4dc?source=rss-a37db6ac3242------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6151200f4dc</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[mac]]></category>
            <category><![CDATA[remote-working]]></category>
            <category><![CDATA[chromebook]]></category>
            <category><![CDATA[windows-10]]></category>
            <dc:creator><![CDATA[Ben Reaves]]></dc:creator>
            <pubDate>Thu, 15 Jul 2021 02:46:15 GMT</pubDate>
            <atom:updated>2021-07-15T03:44:10.943Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yKH_GVghKYIZGMWYnNjAgg.jpeg" /></figure><p>So I am the author of <a href="https://github.com/rbreaves/kinto">kinto.sh</a> and one of the things that I have ensured users of my app is the ability to remotely access Linux or Windows with their macOS based keybinds intact — but what about going back to macOS from Linux or Windows while using a non-Apple keyboard?</p><p>Until recently I had not tried this and for a few reasons, the built-in screen-sharing of macOS via VNC has always been a subpar experience for me compared to something as sophisticated as RDP. Of course if you want to purchase a license for iRAPP, or what is now Nuords RDP server, for macOS then you can have much better performance at a cost of about $50 a year. That’s an ok deal — but lately I have found a cross-platform application that is free for personal use and has identical, if not better performance even, <a href="https://www.nomachine.com/download/download&amp;id=7">NoMachine</a>.</p><p>Ok, so that quickly gets to how, or what to use rather, to remote into macOS or Linux even (combine <a href="https://www.c-nergy.be/products.html">xRDP</a> w/ <a href="https://www.nomachine.com/download/download&amp;id=7">NoMachine</a> and it becomes even more flexible for screen sizes that can literally change and scale perfectly on a whim). What about the key mapping though? If your keyboard is not already laid out like that of a macbook then you may be in for a bit of a surprise when your keys no longer line up properly for macOS. Every remote desktop application I came across also seemed to lack the ability to remap your keys as well, commercial or not. Also the very simple modifier key remap built-in to macOS is completely useless during remote desktop use or VNC solutions, even the one built-in.</p><p>For Windows the solution is likely pretty simple — you can likely use Autohotkey or modify <a href="https://github.com/rbreaves/kinto">kinto.sh</a> to remap your keys during a specific remote application having focus. If that fails to work then Sharpkeys can remap your keys for sure &amp; if you want to continue to use <a href="https://github.com/rbreaves/kinto">Kinto</a> locally then you can change its keyboard type to Apple for proper keymaps during normal usage.</p><p>Lastly and what this article is really written for is how you can accomplish remote desktop use for macOS from Linux. This was rather difficult and I almost gave up on figuring it out because every other method I was aware of kept failing, xmodmap, uinput via xkeysnail, setxkbmap options, &amp; hwdb, but finally I found setkeycodes and the series of steps one would need to perform. I may try and automate this later, but for now mentioning it here will have to do.</p><h3>Linux Remap for macOS Remote Access</h3><pre>sudo setkeycodes {scancodes} {keycodes}</pre><pre># Your scancodes are the literally address of your physical keys.<br># Your keycodes are the letters those physical keys trigger when pressed.</pre><pre># May need to install evtest.</pre><pre># Discover Scancodes (hexadecimal) for Ctrl, Win/Super, Alt<br>sudo showkey --scancodes</pre><pre># Discover Keycodes (decimal) for Ctrl, Win/Super, Alt<br>sudo showkey --keycodes</pre><pre># The following will be unique to your laptop or desktop, so do not use mine, unless you happen to have the same Chromebook I have.</pre><pre># Note: This example only shows what my values were on the left side of the keyboard, this procedure can easily be repeated for the right side keys as well if you wish to do so.</pre><pre># Physical scancodes<br>Ctrl: 1d<br>Win/Super: e05b<br>Alt: 38</pre><pre># Letter&#39;s keycodes<br>Ctrl: 29<br>Win/Super: 125<br>Alt: 56</pre><pre># Set your Laptop, desktop or Chromebook to use the Apple Layout<br>sudo setkeycodes 1d 56<br>sudo setkeycodes e05b 29<br>sudo setkeycodes 38 125</pre><pre># Set your values back to their original values<br>sudo setkeycodes 1d 29<br>sudo setkeycodes e05b 125<br>sudo setkeycodes 38 56</pre><p>Additional information on setkeycodes (near the bottom) can also be found here. <a href="https://wiki.archlinux.org/title/Map_scancodes_to_keycodes">https://wiki.archlinux.org/title/Map_scancodes_to_keycodes</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c6151200f4dc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cell Service for Covid-19 Relief]]></title>
            <link>https://benreaves.medium.com/cell-service-for-covid-19-relief-1e0793cfb9b5?source=rss-a37db6ac3242------2</link>
            <guid isPermaLink="false">https://medium.com/p/1e0793cfb9b5</guid>
            <category><![CDATA[internet]]></category>
            <category><![CDATA[cell-phones]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[covid19]]></category>
            <category><![CDATA[usa]]></category>
            <dc:creator><![CDATA[Ben Reaves]]></dc:creator>
            <pubDate>Thu, 05 Nov 2020 00:25:05 GMT</pubDate>
            <atom:updated>2020-11-05T01:07:17.693Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*tHW4hOUlIG3Z_r8X.jpg" /></figure><p>For those that are going through hard and difficult times due to the pandemic I thought I might make a post to help those individuals. I tend to stay up to date with the most cost effective cell phone mvnos (3rd parties) regardless, and was an early adopter to using them. In fact I used StraightTalk on my iPhone before they ever officially rolled out their BYOD program and I used my AT&amp;T iPhone on Tmobile before it was officially available to their users.</p><p>So here’s the deal, I will not list any plans that are not purely charged monthly, besides a trial sim for those that need to test coverage before switching. And with that out of the way what deals are out there for the price conscious and hard hit consumers?</p><p>First T-Mobile mvnos tend to have the best prices and better coverage than Sprint, of course things vary, but I will completely ignore Sprint for a myriad of reasons that I won’t get into. If you are uncertain of what T-Mobile coverage is like in your area then please get a Mint Mobile trial SIM first, they’ll even give you a $5 credit towards your plan if you go with them!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*IbWkBuwLblHar20M.jpg" /></figure><p><strong>$1 ~ Trial SIM card</strong><br><strong>7 day trial sim card</strong> (Mint Mobile — T-Mobile) <br><a href="https://www.amazon.com/Mint-Mobile-Starter-Verify-Compatibility/dp/B0786RD524">https://www.amazon.com/Mint-Mobile-Starter-Verify-Compatibility/dp/B0786RD524</a></p><p>Can you get T-Mobile coverage? If so then how much data do you need, 1gb, 2gb or more?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*nJzYxuEsX8Wpjomv.jpg" /></figure><p><strong>$10 ~ Absolute cheapest plan<br>1gb, unlimited minutes &amp; text</strong><br>Liberty Wireless (T-Mobile)<br><a href="https://www.libertywireless.com/Plans.php">https://www.libertywireless.com/Plans.php</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/844/0*e7crU-Fm4Tys26O5.jpg" /></figure><p><strong>$14.88 ~ Next cheapest plan<br>2gb, unlimited minutes &amp; text </strong>(unlimited 2g)<strong><br></strong>Walmart Family Mobile (T-Mobile) <a href="https://wfm.financialassistanceavailable.com/Enrollment/Financial/en/Web/www/walmart/index.html">https://wfm.financialassistanceavailable.com/Enrollment/Financial/en/Web/www/walmart/index.html</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*S48f9RHsivgBQ2qN.jpg" /></figure><p><strong>$15 ~ 3rd cheapest plan<br>2gb, unlimited minutes and text (hard cap, no 2g data past 2gb)<br></strong>T-mobile Connect<br><a href="https://prepaid.t-mobile.com/plan-detail/t-mobile-connect">https://prepaid.t-mobile.com/plan-detail/t-mobile-connect</a></p><h3>Can’t get T-Mobile service? Go with an AT&amp;T mvno!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/0*vp3a_nr3-cpP4JMA.png" /></figure><p><strong>$18 ~ Cheapest AT&amp;T mvno plan w/ 2gb of data</strong><br>h2o wireless (AT&amp;T)<br><a href="https://www.h2owireless.com/plan/monthly">https://www.h2owireless.com/plan/monthly</a></p><p>Need better coverage than what most mvno’s offer? Then look at Consumer Cellular plans, they often have better roaming agreements than most mvno carriers!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*Vfro0iwIrA3NNm3z.jpg" /></figure><p><strong>$30 ~The cheapest plan w/ better than average roaming<br></strong>3gb plan w/ unlimited minutes and text<br>Consumer Cellular (AT&amp;T)<br><a href="https://www.consumercellular.com/shopping/choose/plan">https://www.consumercellular.com/shopping/choose/plan</a></p><p>Also not mentioned, above, but h2o wireless has one of the cheapest 90 day intervals for pay as you go plans, so if you need something for emergency use then perhaps look at their $9 for 90 days of pay as you go service. It doesn’t give much, only 100 minutes, texts or data at rates of 5 and 10 cents, but it may be enough for some people and roughly $3 a month is insanely cheap.</p><p>I think as of today that pretty well lays out the best deals I am aware of, most anything else is so bottom of the barrel it’s useless to mention or to use. I think most anyone can use these carriers and be pretty happy with the service. If you think something was missed or should have been included then please hit me up in the comments and let us know!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e0793cfb9b5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting Release & Build No.’s Automatically]]></title>
            <link>https://benreaves.medium.com/setting-release-build-no-s-automatically-9c42e1e60ae4?source=rss-a37db6ac3242------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c42e1e60ae4</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Ben Reaves]]></dc:creator>
            <pubDate>Sun, 25 Oct 2020 01:04:49 GMT</pubDate>
            <atom:updated>2020-10-25T01:04:49.370Z</atom:updated>
            <content:encoded><![CDATA[<p>So recently with my <a href="http://kinto.sh/">http://kinto.sh</a> project I decided that I really wanted to start pulling in the version and build number into the project so that I can assist people easier when they have issues.</p><p>Also with the addition of a new full on GUI and system tray app it made sense to add an About window with this information in it for the user. After googling around for how to pull in the tags properly I pretty well knew how to go about it, sadly I initially made wrong assumptions on that the tags would always appear a particular way regardless of which branch you are on or commit, so I had to rewrite the command a few times.</p><p>I do cheat a little, because technically a person I believe can roll back their commits so far that the latest tag is no longer relevant to the commit they are on and it would be pulled into the About screen with the wrong release number. I am sure there may be ways to mitigate this issue if I cared to, but to be honest I am not too concerned of people doing that and the purpose is more for binary releases that I plan to make in the future for Debian, Ubuntu, Arch and others and my own PPA on launchpad.</p><p>With no further ado here is the command I settled on.</p><pre>echo &quot;$(git describe --tag --abbrev=0 | head -n 1)&quot; &quot;build&quot; &quot;$(git rev-parse --short HEAD)&quot; &gt; ~/.config/kinto/version</pre><p>Essentially I use git describe to get the latest tag and I use head just to make sure I only deal with one line. I also run a 2nd git command that simply gives me the short hash commit so that the build number references the exact commit. In the future if anyone files a complaint I can always ask them for this information and be confident if they are using the latest and if it is something I need to work on.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c42e1e60ae4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kinto — Type on Windows like it’s a Mac]]></title>
            <link>https://benreaves.medium.com/kinto-type-on-windows-like-its-a-mac-9c52f8e29e5d?source=rss-a37db6ac3242------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c52f8e29e5d</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[keyboard-shortcuts]]></category>
            <category><![CDATA[windows-10]]></category>
            <category><![CDATA[mac]]></category>
            <dc:creator><![CDATA[Ben Reaves]]></dc:creator>
            <pubDate>Sun, 05 Apr 2020 07:23:54 GMT</pubDate>
            <atom:updated>2020-04-05T20:19:17.795Z</atom:updated>
            <content:encoded><![CDATA[<h3>Kinto — Type on Windows like it’s a Mac</h3><p>The Zero Effort Solution Part II</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EuWbMa6KUmj5efXztulTnQ.png" /><figcaption>kinto.sh Now Supports Windows</figcaption></figure><p>Anyone that has been following me, or the development of <a href="http://kinto.sh/">Kinto</a>, may be aware of it being a robust remapping solution for professional mac users and developers, but what about Windows?</p><p>Surprisingly I have not gotten too many requests for Windows support, however — the reality of the world and workplace pretty well dictates that most of us devs and professionals will have to use Windows in some capacity or another. And much like with linux, this was not my first foray into remapping Windows to use Mac like keybinds.</p><p>Windows 10 and WSL has certainly changed the game a good bit, and with one of their updates awhile back they brought Ctrl+Shift+C/V into the mainstream — for Windows anyways. A wonderful edition given the conflicting nature of having the keymap layout Windows and Linux both share. It also gave me something to work with that wasn’t a 3rd party app or download, but an actual 1st class citizen on the platform.</p><p><a href="https://microsoft.com/">Microsoft</a> is also working on a new set of exciting <a href="https://github.com/microsoft/PowerToys">Powertoys</a> for Windows 10, one called <a href="https://github.com/microsoft/PowerToys/wiki/Keyboard-Manager">Keyboard Manager</a>, and had it been further along when I decided to make this I might have just created a profile that makes use of it. Would it be as powerful and useful as Autohotkey though? Who knows for sure until they release it.</p><p>So how did I go about remapping Windows to use Mac like keybinds in the past? I used <a href="https://www.randyrants.com/category/sharpkeys/">Sharpkeys</a> and <a href="https://www.autohotkey.com/">Autohotkey</a> and kept it very simple, but it also meant I did not have some key shortcuts in some apps like <a href="https://www.sublimetext.com/3">Sublime Text</a>, without modifying its config files (which I no longer wish to do with any app).</p><p><strong>Key Differences</strong></p><p>Under Linux xkb is very flexible and you can literally change any aspect of your keyboard in real time. This is not so under Windows, any changes to the scan codes, the keys themselves requires a log out and log back in of the user. Short of that you will have to write a program to hook into user32.dll and modify the keycodes in memory I suppose. While I would like to do that even more I decided to not spend the time doing something like, especially when considering that Microsoft will be releasing a tool fairly soon that may address this perfectly fine — but it really does not impact the Kinto Windows solution at the end of the day.</p><p>Kinto first remaps the keys in the registry and expects the user to log off and back on. When they log back on they will also find that the autohotkey script called kinto.ahk has been executed from their Startup path folder.</p><pre>C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp</pre><p>Another thing they will find is that wordwise hotkeys that macs use have been added, proper in app tab switching on Ctrl and normal app switching is on Cmd. Of course keymap changes that should occur on terminals are set to occur, so Cmd+C and Ctrl+C do as you’d expect it to.</p><p>This file may change with more shortcuts but if you want to see a peek of kinto.ahk for windows here it is. Unlike many of autohotkey solutions this is a minimal approach — the biggest keyswap happened via the registry already so that autohotkey only has to address the odd ends here and there in much the same way that Kinto for Linux does it as well.</p><pre>GroupAdd, terminals, ahk_exe ubuntu.exe</pre><pre>GroupAdd, editors, ahk_exe sublime_text.exe</pre><pre>; Cmd Tab For App Switching<br>LCtrl &amp; Tab::AltTab<br>RCtrl &amp; Tab::AltTab<br>; Ctrl Tab for In-App Tab Switching<br>LWin &amp; Tab::Send ^{Tab}<br>RWin &amp; Tab::Send ^{Tab}</pre><pre>; Close Apps<br>^q::Send !{F4}</pre><pre>; wordwise support<br>$^Left::Send {Home}<br>$^+Left::Send +{Home}<br>$^Right::Send {End}<br>$^+Right::Send +{End}<br>^Up::Send ^{Home}<br>^+Up::Send ^+{Home}<br>^Down::Send ^{End}<br>^+Down::Send ^+{End}<br>^Backspace::Send +{Home}{Delete}<br>!Backspace::Send ^{Backspace}<br>!Left::Send ^{Left}<br>!+Left::Send ^+{Left}<br>!Right::Send ^{Right}<br>!+Right::Send ^+{Right}</pre><pre>#IfWinActive ahk_group editors<br> ; Remap Ctrl+Shift to behave like macOS Sublimetext<br> ; Will extend cursor to multiple lines<br> #+Up::send {shift up}^!{Up}<br> #+Down::send {shift up}^!{Down}</pre><pre>; Remap Ctrl+Cmd+G to select all matches<br> #^g::send !{F3}<br>#If</pre><pre>#IfWinActive ahk_group terminals<br> ^c::Send {LCtrl down}{LShift down}c{LCtrl Up}{LShift Up}<br> #c::Send {LCtrl down}c{LCtrl Up}<br> #x::Send {LCtrl down}x{LCtrl Up}<br> #o::Send {LCtrl down}o{LCtrl Up}<br> #r::Send {LCtrl down}r{LCtrl Up}<br> #w::Send {LCtrl down}w{LCtrl Up}<br> #\::Send {LCtrl down}\{LCtrl Up}<br> #k::Send {LCtrl down}k{LCtrl Up}<br> #u::Send {LCtrl down}u{LCtrl Up}<br> #j::Send {LCtrl down}j{LCtrl Up}<br> #t::Send {LCtrl down}t{LCtrl Up}<br> #_::Send {LCtrl down}_{LCtrl Up}<br> ^v::Send {LCtrl down}{LShift down}v{LCtrl Up}{LShift Up}<br>#If</pre><pre>#IfWinActive ahk_exe powershell.exe<br> ^c::Send {LCtrl down}{LShift down}c{LCtrl Up}{LShift Up}<br> #c::Send {LCtrl down}c{LCtrl Up}<br>#If</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ILe2bzm4IGGn0eiw8pl3qw.png" /><figcaption>Ubuntu Theme Applied to WSL 1</figcaption></figure><p>Another thing I have included with Kinto for Windows are the registry entries that help give all consoles in Windows a more readable color theme, which is lifted from an itermcolor profile over at this <a href="https://github.com/mbadolato/iTerm2-Color-Schemes">repo</a>. I would not have included this had it not been for the impossible to read blue text on black.</p><p>I also don’t believe any Windows user should have to install the <a href="https://github.com/microsoft/terminal/releases/tag/1810.02002">Microsoft ColorTool</a> just to install a usable theme so I created a few registry files for different themes. Also, like in classic Microsoft fashion, the latest ColorTool is broken so make sure you use the one from October 2018.</p><p>Overall, I am extremely pleased with this solution and how well it works and how quickly I was about to put it all together in just a few hours. It also makes me realize how much more clear and concise I could potentially make Kinto for Linux appear as well.</p><p><strong>Thoughts on Revisiting the Linux Implementation</strong></p><p>I may revisit some of the things I have done on the Linux side of things with xkb and see if I can’t use a combination of udev/hwdb and <a href="https://github.com/mooz/xkeysnail">xkeysnail</a> as I feel like <a href="https://github.com/mooz/xkeysnail">xkeysnail</a> is much more of a successor to autohotkey on linux than what <a href="https://github.com/autokey/autokey">autokey</a>, xte, or xdotool are and could actually deliver something that a wider audience of users would be able to make use of (modify) without the limitations or issues I’ve had with <a href="https://github.com/autokey/autokey">autokey</a> and others in the past.</p><p>XKB is very powerful, but it is also much more complicated. I like that it does not intercept keypresses though and simply sets them all as they should be from the moment the app name changes, but it still isn’t very user friendly. If nothing else I could offer 2 methods of handling keymaps for users and their apps so if they want to make keymap changes they don’t have to sort through the mess that is xkb or put in a feature request for something that they feel should be simpler. I am also considering creating a GUI interface to help with the creation of xkb keymaps.</p><p>I think that pretty well covers this latest addition to <a href="http://kinto.sh/">Kinto</a>. Please visit <a href="http://kinto.sh/">kinto.sh</a> and try it out and let me know what you think. I am always looking to improve this tool for myself and others so please don’t hesitate to let me know how it is working for you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c52f8e29e5d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Journey to Kinto]]></title>
            <link>https://benreaves.medium.com/journey-to-kinto-e2cec06a5ee0?source=rss-a37db6ac3242------2</link>
            <guid isPermaLink="false">https://medium.com/p/e2cec06a5ee0</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Ben Reaves]]></dc:creator>
            <pubDate>Tue, 18 Feb 2020 20:56:59 GMT</pubDate>
            <atom:updated>2020-02-18T20:56:59.587Z</atom:updated>
            <content:encoded><![CDATA[<p>I have made an earlier post that described some of what went into the creation of <a href="http://kinto.sh/">Kinto</a>, but I would like to give more of a back story to it, as well as some thoughts on how it has come about. You can read the earlier <a href="https://medium.com/@benreaves/kinto-a-mac-inspired-keyboard-mapping-for-linux-58f731817c0">story here</a> however.</p><p>So for me my foray into macOS land I guess started in grade school, without me even realizing it. My first experience on a computer was likely mac OS 7.x. And the concept of macs vs windows was not a thing in my mind. My family computer, some years later, had Windows 3.1 and DOS on it and I pretty much used Windows ever since — to the point of looking at macs with either mild discomfort or disgust on how they’re messing with my feng shui by screwing around with my control key.</p><p>Then Apple did the unexpected in my high school years and released OSX for x86, or rather a beta had leaked, and I decided that since they changed architectures that now I can finally try it and not be bothered by the expensive hardware costs — hello hackintosh. I had already been spinning up PowerPC virtual machines at the time.</p><p>I spent some years in the OSX x86 community and not long after bought my first macbook off ebay as I grew to like the OS. Some years later, 5–7 years, I realized that I spent most of my time in macOS, but that switching between it, Linux and Windows was killing my memory muscle and productivity while coding because I would get tripped up at times from superficial differences. <strong><em>I needed to fix it.</em></strong></p><p>All I knew for sure was that I needed to commit to <em>one design language</em>, not 2 or 3, if I were to excel and forget about the least important thing to me — the operating system. It is mostly irrelevant to the cross platform solutions I want and need to build.</p><p>This decision has driven co-workers and friends to think I am a little crazy and even annoyance any time pair programming scenarios come into play with a non-mac user, but I digress, there’s a reason for the madness.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UO0q4OYW5z5qL94DCXUV9g.jpeg" /></figure><p><strong><em>Ergonomics. </em></strong>The one key deciding factor in why I picked the more difficult path. I like how it feels to have my primary modifier key beneath my thumb and being able to keep all of my fingers on the home row.</p><p>Apple also makes it easy to use the Windows or Linux style keys, <em>but Linux and Windows do not </em>— for all the crying that ironically happens from some ardent Windows or Linux users. Many are also agnostic about either choice though.</p><p>Was it the better path, the better choice to make? I have no idea — I could have just as easily decided that the Windows and Linux keymap style is <em>my path</em> forward, but I didn’t — <em>I picked what felt right for me.</em> I think that is all anyone can ask of anyone about many, if not most, things in life.</p><p>You need to make a choice on what will make you feel better, happier and the idea of ever making the perfect or the “right” choice needs to go away more or less — it breeds contempt, bitterness, and dissatisfaction.</p><h3>Methodologies of Kinto</h3><p>Why was Kinto built the way that it was though? Why not build out keymaps like everyone else?</p><p>When I think about the project in terms of a <strong><em>design language</em></strong> it gives a very <em>different perspective</em> of<strong><em> </em></strong>the problem and the solution is. What are developers developing and doing when they create an app for Linux or any platform? They are following patterns set forth by the OS and the community as a whole, they aren’t picking and choosing UI and keyboard interactions purely based off of what feels right to them — but rather <em>what users expect</em>.</p><p>The problem is not that the Control, Super or Alt keys are in the wrong location — the problem is not with the users, or the developers. They are both fulfilling the expectations set forth by the OS creators and those before them, so to tackle it <em>any other way is a huge waste of time and mental resources.</em></p><p>You will die the death of a thousand paper cuts if you tackle it one app at a time, but you will also die if you just do a simple key swap and not pay attention to key behaviors that create a seamless user experience for those that use a terminal app or apps that conflict with wordwise shortcuts.</p><p>So really what is <strong>the goal</strong> here?</p><blockquote>“Regardless of the app, make sure the primary modifier key is always next to the space bar in a manner that is intuitive to the user and make sure the Ctrl key still operates for the expected terminal functions. Users should not need to create additional keymaps.”</blockquote><p>How to accomplish this?</p><ol><li>Know what app the user is currently using.</li><li>Perform the proper keymap and make use of <a href="https://medium.com/@benreaves/keybinding-in-groups-for-linux-938f379648cb">remapping in groups</a> to avoid loops.</li><li>If an app conflicts with wordwise shortcuts then detect when the input field is actively in use or not via caret activity and re-apply the proper keymap.</li></ol><p>Whether <a href="http://kinto.sh/">Kinto</a> exists as a bash, python or a c program, or a combination of the above is irrelevant as long as those 3 basic functions are performed. I have written in previous articles about some of these things and the 3rd point was the latest and I believe the last issue I had discovered that I had to resolve this project. Ultimately though this is <a href="http://kinto.sh/">Kinto</a>, the solution that I came up with to a problem that seems to have gone unsolved for years.</p><p>There is no lack of brilliant people in the Linux community, far from it, but the ability of defining the full scope of the problem to reach a complete solution is often the biggest challenge any of us will ever face. And while it’d be great to be able to fully define the scope of every problem from the beginning — you still need to be flexible enough to allow your scope to either expand or contract when you can see you are losing sight of creating the solution you intend.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e2cec06a5ee0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Cheapest MacBook Isn’t a Mac]]></title>
            <link>https://benreaves.medium.com/the-cheapest-macbook-isnt-a-mac-de92bc5f8555?source=rss-a37db6ac3242------2</link>
            <guid isPermaLink="false">https://medium.com/p/de92bc5f8555</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[blogging]]></category>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Ben Reaves]]></dc:creator>
            <pubDate>Tue, 18 Feb 2020 04:34:46 GMT</pubDate>
            <atom:updated>2020-09-21T02:50:06.026Z</atom:updated>
            <content:encoded><![CDATA[<p>So you’re eyeing that new macbook, but you’re also pretty certain that your type of work or workflow doesn’t really require that hefty price tag.. Yet you still want a similar typing experience of well laid out keys? Well this isn’t your typical get a chromebook or cheap windows laptop article either — there’s a twist.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p_6i6eGX8sgc-InjKk2XHg@2x.jpeg" /></figure><p>Personally I usually opt for used or refurbs, whether they be windows or mac, but due to some stumbles with Apple’s butterfly keyboard I’ve stayed away and still will while their latest revision gets a few miles on it (although it looks promising).</p><p>As a programmer I am partial to macOS for many reasons, but I propose one of them is the ergonomic placement of the command key. Placed perfectly next to your thumb so you don’t need to travel far or misalign your fingers from the home row as you are typing away. So how do you solve this on other OS’s?</p><p>While I do not have a key remap solution for Windows* I do have one that works perfectly on <strong>Linux</strong>,<strong> </strong>such as Ubuntu, Pop!_OS, ElementaryOS, GalliumOS, and KDE Neon among others. You will have the ability to use any app and terminal program seamlessly (copy &amp; paste) without misaligned keys.</p><p>Note: Since writing this article Kinto is now compatible with Windows.</p><p>You will even have what they call <strong>word-wise</strong> so you can move your cursor by word or the entire line. To activate word-wise you just press <strong>Alt+Left/Right</strong> to move by word or <strong>Ctrl+Left/Right</strong> to move to the beginning or end of the line, and <strong>Ctrl+Up/Down</strong> to go to the top or bottom of the document.</p><p><strong>Checkout </strong><a href="http://kinto.sh/"><strong>Kinto.sh</strong></a>, I’m sure if you were looking for an upgrade you’ll find that it’ll make anything feel a lot more like mac, even if it doesn’t look like it on the outside. Kinto works on all chromebooks, and Windows laptops and keyboards — just run the installer and you will have an experience you didn’t think was possible on Linux.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de92bc5f8555" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Keybinding in Groups for Linux]]></title>
            <link>https://benreaves.medium.com/keybinding-in-groups-for-linux-938f379648cb?source=rss-a37db6ac3242------2</link>
            <guid isPermaLink="false">https://medium.com/p/938f379648cb</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[keyboard]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Ben Reaves]]></dc:creator>
            <pubDate>Mon, 17 Feb 2020 21:40:11 GMT</pubDate>
            <atom:updated>2020-02-17T21:41:32.864Z</atom:updated>
            <content:encoded><![CDATA[<p>After months of working with xkb in Linux I feel like this is a big deal that does not get talked about much. When people think about rebinding keys they’re looking at xmodmap, autokey, xbindkeys, and other utilities, which all are good and have their purpose but the one area they tend to fall flat is how can you map two sets of keys to each other without creating an infinite loop?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*KBLDZhmxLzfteFxgTq5t9A.jpeg" /></figure><p>As an example let’s say you want to map <strong>Control + Left</strong> to <strong>Alt + Left</strong>, but have <strong>Alt + Left</strong> map to <strong>Control + Left</strong>. How do you accomplish this with tools like autokey or xbindkey?</p><p><strong><em>You don’t. Most, if not all 3rd party, solutions will create infinite loops.</em></strong></p><p>How do you solve a problem like this? One of 2 ways, solve it by literally changing the scancode of the uvdev interface with your keyboard. There looks to be a wonderful tutorial over here. <a href="https://yulistic.gitlab.io/2017/12/linux-keymapping-with-udev-hwdb/">https://yulistic.gitlab.io/2017/12/linux-keymapping-with-udev-hwdb/</a></p><p>Another options is to learn how to work with xkb types, symbols and groups. This to me is the key element, because when you create groups you are able to specify and link the appropriate actions to be taken. Of course the xkb rabbit hole goes extremely deep and can support some crazy complicated configurations that I can’t even manage to cobble together myself, but the capabilities are there nonetheless and the idea of creating additional layers in conjuction with toggle keys or shift keys is intriguing.</p><p>Here’s an example of what a types and symbols file looks like where the Alt and Control key are<strong><em> aware</em></strong> of each other, so they do not step on each others foot.</p><pre># types file<br>default partial xkb_types &quot;addmac_levels&quot; {<br>    type &quot;ONE_LEVEL_CTRL&quot; {<br>        modifiers= Mod1+Control;<br>        map[Mod1]= Level2;<br>        map[Control]= Level3;<br>        map[Mod1+Control]= Level3;<br>        level_name[Level1]= &quot;Base&quot;;<br>        level_name[Level2]= &quot;Alt&quot;;<br>        level_name[Level3]= &quot;With Control&quot;;<br>    };<br>};</pre><p>And the related symbols file</p><pre>default partial xkb_symbols &quot;mac_levelssym&quot; {<br>    // LEFT Ctrl and Alt Swap<br>    replace key &lt;LEFT&gt; {<br>        type[Group1]= &quot;ONE_LEVEL_CTRL&quot;,<br>        symbols[Group1]= [         Left,         Left, NoSymbol ],<br>        actions[Group1]= [      NoAction(), RedirectKey(key=&lt;LEFT&gt;,modifiers=Control,clearmods=Mod1), RedirectKey(key=&lt;LEFT&gt;,modifiers=Mod1,clearmods=Control)]<br>    };<br>};</pre><p>The key thing to note is that the number of levels in the types file goes up to 3, Base, Alt, Control. The symbols file follows that pattern under the symbols and actions groups, where there are 3 specified values inside of what appears to be an array of values.</p><p>To handle things appropriately sometimes a modifier or clearmods parameters needs to be provided. In this example the Control key + Left becomes Alt + Left and vice versa and yet there are no endless loops happening — <strong><em>because they are aware of each other from being in the same group.</em></strong></p><p>This is a key distinction that allows for some very useful modifications that often trip me and others up while having used “simple” 3rd party tools. Simple is great until it isn’t sadly.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=938f379648cb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>