<?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: Nilkun</title>
    <description>The latest articles on DEV Community by Nilkun (@nilkun).</description>
    <link>https://dev.to/nilkun</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F74702%2Fcbef42b2-6f9d-4c0a-a954-94851777187c.png</url>
      <title>DEV Community: Nilkun</title>
      <link>https://dev.to/nilkun</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nilkun"/>
    <language>en</language>
    <item>
      <title>A small byte of bash aliases and functions.</title>
      <dc:creator>Nilkun</dc:creator>
      <pubDate>Tue, 12 Jan 2021 03:49:05 +0000</pubDate>
      <link>https://dev.to/nilkun/a-small-byte-of-bash-aliases-and-functions-3a02</link>
      <guid>https://dev.to/nilkun/a-small-byte-of-bash-aliases-and-functions-3a02</guid>
      <description>&lt;p&gt;I'd like to share a few of my favorite bash aliases and functions. All I ask for in return is for you to share your own in the comments!&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Set up ls to use my preferences
alias ls='ls -l --color=auto --group-directories-first'

# Quickly add things to a todo-list. Usage: remember milk
alias remember="xargs -I TODO  echo \"[ ] TODO\" &amp;gt;&amp;gt; ~/remember &amp;lt;&amp;lt;&amp;lt;"

# I often find files that I don't know what to do with, but I don't want to delete. So I just move them to dev-hell. usage: devhell mysuperniftyfunctionthatiwillneveruse.js
alias devhell='mv -t ~/dev-hell/'

# I don't know how many times I typed this in before I made it an alias. Usage: pid vim
alias pid="ps -aux | grep "

# I use the following function and alias to jump back and forth between home and the current directory.
function home() {
        PREVIOUS=$(pwd)
        cd ~
}
alias back="cd $PREVIOUS"

# I use Arch Linux, and often download from AUR. Usage: aur chromium
alias aur="xargs -I FILENAME git clone https://aur.archlinux.org/FILENAME &amp;lt;&amp;lt;&amp;lt;"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>linux</category>
      <category>bash</category>
      <category>productivity</category>
      <category>discuss</category>
    </item>
    <item>
      <title>Improve workflow efficiency by using your keyboard smarter (Linux)</title>
      <dc:creator>Nilkun</dc:creator>
      <pubDate>Fri, 08 Jan 2021 02:06:41 +0000</pubDate>
      <link>https://dev.to/nilkun/improve-workflow-efficiency-by-using-your-keyboard-smarter-linux-h6f</link>
      <guid>https://dev.to/nilkun/improve-workflow-efficiency-by-using-your-keyboard-smarter-linux-h6f</guid>
      <description>&lt;p&gt;&lt;strong&gt;64 &amp;gt; 104&lt;/strong&gt;&lt;br&gt;
I love my keyboard. Although it only has 64 keys, I don't use all of them. So I remapped those keys (and some other as well) to improve my workflow.&lt;/p&gt;

&lt;p&gt;Take &lt;em&gt;caps-lock&lt;/em&gt; for instance. For me, it is a completely useless key taking up a great spot on the keyboard. Since I'm an avid vim user, I often use &lt;em&gt;escape&lt;/em&gt;. So I remapped &lt;em&gt;left-shift&lt;/em&gt; + &lt;em&gt;right-shift&lt;/em&gt; to &lt;em&gt;caps-lock&lt;/em&gt;, and &lt;em&gt;caps-lock&lt;/em&gt; to &lt;em&gt;escape&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;I use &lt;em&gt;menu&lt;/em&gt; to switch between my two most commonly used workspaces, and &lt;em&gt;space-2&lt;/em&gt; (That is my right space bar) is remapped to &lt;em&gt;λ&lt;/em&gt;. Why &lt;em&gt;λ&lt;/em&gt;? Well, one keypress is better than two, so instead of having to press &lt;em&gt;ctrl-b&lt;/em&gt; when using tmux, I just set my prefix key to λ. Efficiency doubled!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to remap keys in X&lt;/strong&gt;&lt;br&gt;
In order to remap keys, we first need to find their values. The easiest way is to run &lt;em&gt;xev&lt;/em&gt;. In order to simplify this process, you could pipe it to &lt;em&gt;awk&lt;/em&gt; like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;xev | awk -F'[ )]+' '/^KeyPress/ { a[NR+2] } NR in a { printf "%-3s %s\n", $5, $8 }'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The next step is to actually remap the keys. I recommend making a configuration file and then starting it with X. This small sample configuration file changes &lt;em&gt;right-space&lt;/em&gt; to &lt;em&gt;λ&lt;/em&gt;, and &lt;em&gt;;&lt;/em&gt; to &lt;em&gt;;&lt;/em&gt;(no modkey), &lt;em&gt;+&lt;/em&gt; (with Shift), &lt;em&gt;ö&lt;/em&gt; (with AltGr), Ö (Shift + AltGr).&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;!keybindings.conf
keycode 171 = Greek_LAMDA
keycode  47 = semicolon plus odiaeresis Odiaeresis
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then load the configuration file with&lt;br&gt;
&lt;br&gt;
 &lt;code&gt;xmodmap keybindings.conf&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

</description>
      <category>linux</category>
      <category>vim</category>
      <category>webdev</category>
      <category>productivity</category>
    </item>
    <item>
      <title>First!</title>
      <dc:creator>Nilkun</dc:creator>
      <pubDate>Thu, 25 Apr 2019 01:40:58 +0000</pubDate>
      <link>https://dev.to/nilkun/first-22hh</link>
      <guid>https://dev.to/nilkun/first-22hh</guid>
      <description>&lt;p&gt;Hello everyone. Nice to "meet" you all!&lt;/p&gt;

&lt;p&gt;I am proficient in vanilla JavaScript and also know some C++. I am currently thinking about learning Kotlin.&lt;/p&gt;

&lt;p&gt;Although I don't have anything against frameworks, I rarely use them because I somehow find pleasure in reinventing the wheel over and over again.&lt;/p&gt;

&lt;p&gt;If you have any cool (or uncool) projects you need a helping hand with, please reach out!&lt;/p&gt;

&lt;p&gt;If you are bored, then why not visit my &lt;a href="https://www.codepen.io/nilkun"&gt;codepen&lt;/a&gt; page? (Cure for boredom not guaranteed.)&lt;/p&gt;

</description>
      <category>introduction</category>
    </item>
  </channel>
</rss>
