<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Win on Shaka</title><link>https://shakaxi.github.io/tags/win/</link><description>Recent content in Win on Shaka</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Thu, 09 Mar 2023 00:00:00 +0000</lastBuildDate><atom:link href="https://shakaxi.github.io/tags/win/index.xml" rel="self" type="application/rss+xml"/><item><title>Remap CapsLock as Ctrl</title><link>https://shakaxi.github.io/posts/capslk2ctrl/</link><pubDate>Sat, 21 Nov 2026 19:00:17 +0000</pubDate><guid>https://shakaxi.github.io/posts/capslk2ctrl/</guid><description>&lt;div id="outline-container-headline-1" class="outline-2"&gt;&#10;&lt;h2 id="headline-1"&gt;&#10;Background&#10;&lt;/h2&gt;&#10;&lt;div id="outline-text-headline-1" class="outline-text-2"&gt;&#10;&lt;p&gt;Usually, key &lt;code class="verbatim"&gt;CapsLock&lt;/code&gt; is seldom used in our daily utilization, while key &lt;code class="verbatim"&gt;Ctrl&lt;/code&gt; is frequently used, esp. for Emacs users. Therefore, we can turn &lt;code class="verbatim"&gt;CapsLock&lt;/code&gt; into an additional &lt;code class="verbatim"&gt;Ctrl&lt;/code&gt;.&lt;/p&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;div id="outline-container-headline-2" class="outline-2"&gt;&#10;&lt;h2 id="headline-2"&gt;&#10;Linux&#10;&lt;/h2&gt;&#10;&lt;div id="outline-text-headline-2" class="outline-text-2"&gt;&#10;&lt;div id="outline-container-headline-3" class="outline-3"&gt;&#10;&lt;h3 id="headline-3"&gt;&#10;Sway&#10;&lt;/h3&gt;&#10;&lt;div id="outline-text-headline-3" class="outline-text-3"&gt;&#10;&lt;p&gt;For sway, the remapping can be directly realized by inserting following entry in &lt;code class="verbatim"&gt;~/.config/sway/config&lt;/code&gt;.&lt;/p&gt;&#10;&lt;div class="src src-sh"&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="background-color:#f7f7f7;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; input type:keyboard &lt;span style="color:#0550ae"&gt;{&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; xkb_options ctrl:nocaps&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#0550ae"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;div id="outline-container-headline-4" class="outline-3"&gt;&#10;&lt;h3 id="headline-4"&gt;&#10;KDE&#10;&lt;/h3&gt;&#10;&lt;div id="outline-text-headline-4" class="outline-text-3"&gt;&#10;&lt;p&gt;For KDE, the transformation can be directly finished in the &lt;code class="verbatim"&gt;system settings&lt;/code&gt;. Enter &lt;code class="verbatim"&gt;Input Devices&lt;/code&gt; -&amp;gt; &lt;code class="verbatim"&gt;Keyboard&lt;/code&gt; -&amp;gt; &lt;code class="verbatim"&gt;Advanced&lt;/code&gt;, and tick the radio &lt;code class="verbatim"&gt;Caps Lock is also a Ctrl&lt;/code&gt; in &lt;code class="verbatim"&gt;Caps Lock behavior&lt;/code&gt; and &lt;code class="verbatim"&gt;Caps Lock as Ctrl&lt;/code&gt; in &lt;code class="verbatim"&gt;Ctrl position&lt;/code&gt;.&lt;/p&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;div id="outline-container-headline-5" class="outline-3"&gt;&#10;&lt;h3 id="headline-5"&gt;&#10;Gnome&#10;&lt;/h3&gt;&#10;&lt;div id="outline-text-headline-5" class="outline-text-3"&gt;&#10;&lt;p&gt;For Gnome, it is extremely easy to turn &lt;code class="verbatim"&gt;CapsLock&lt;/code&gt; into an additional &lt;code class="verbatim"&gt;Ctrl&lt;/code&gt;. Install package &lt;code class="verbatim"&gt;gnome-tweak-tool&lt;/code&gt;, e.g.&lt;/p&gt;&#10;&lt;div class="src src-sh"&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="background-color:#f7f7f7;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; pacman -S gnome-tweak-tool&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;and configure it in the installed &lt;code class="verbatim"&gt;Tweak Tool&lt;/code&gt;. Enter &lt;code class="verbatim"&gt;Keyboard &amp;amp; Mouse&lt;/code&gt; -&amp;gt; &lt;code class="verbatim"&gt;Keyboard&lt;/code&gt; -&amp;gt; &lt;code class="verbatim"&gt;Additional Layout Options&lt;/code&gt; -&amp;gt; &lt;code class="verbatim"&gt;Caps Lock behavior&lt;/code&gt; and tick the radio &lt;code class="verbatim"&gt;Make Caps Lock an additional Ctrl&lt;/code&gt;.&lt;/p&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;div id="outline-container-headline-6" class="outline-3"&gt;&#10;&lt;h3 id="headline-6"&gt;&#10;Xmodmap&#10;&lt;/h3&gt;&#10;&lt;div id="outline-text-headline-6" class="outline-text-3"&gt;&#10;&lt;p&gt;&lt;code class="verbatim"&gt;xmodmap&lt;/code&gt; is a utility for remapping keys in &lt;code class="verbatim"&gt;Xorg&lt;/code&gt;. To turn &lt;code class="verbatim"&gt;CapsLock&lt;/code&gt; into another &lt;code class="verbatim"&gt;Ctrl&lt;/code&gt;, install package &lt;code class="verbatim"&gt;xorg-xmodmap&lt;/code&gt;, e.g.&lt;/p&gt;&#10;&lt;div class="src src-sh"&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="background-color:#f7f7f7;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; pacman -S xorg-xmodmap&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;and create &lt;code class="verbatim"&gt;~/.Xmodmap&lt;/code&gt; with its contents as follows.&lt;/p&gt;&#10;&lt;div class="src src-sh"&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="background-color:#f7f7f7;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; clear lock&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; clear control&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; add &lt;span style="color:#953800"&gt;control&lt;/span&gt; &lt;span style="color:#0550ae"&gt;=&lt;/span&gt; Caps_Lock Control_L Control_R&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; keycode &lt;span style="color:#953800"&gt;66&lt;/span&gt; &lt;span style="color:#0550ae"&gt;=&lt;/span&gt; Control_L&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;For display manager, e.g. GDM, KDM, XDM, based startup, that is all. For &lt;code class="verbatim"&gt;startx&lt;/code&gt;-based, add a following entry in &lt;code class="verbatim"&gt;~/.xinitrc&lt;/code&gt;.&lt;/p&gt;&#10;&lt;div class="src src-sh"&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="background-color:#f7f7f7;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#0550ae"&gt;[[&lt;/span&gt; -f ~/.Xmodmap &lt;span style="color:#0550ae"&gt;]]&lt;/span&gt; &lt;span style="color:#0550ae"&gt;&amp;amp;&amp;amp;&lt;/span&gt; xmodmap ~/.Xmodmap&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;</description></item><item><title>Aurora</title><link>https://shakaxi.github.io/posts/aurora/</link><pubDate>Sat, 21 Nov 2026 19:00:17 +0000</pubDate><guid>https://shakaxi.github.io/posts/aurora/</guid><description>&lt;p&gt;&#10;&lt;a href="http://elevatorlady.ca"&gt;Aurora&lt;/a&gt; is an excellent $\LaTeX$ addon of Microsoft Office, which enables LaTeX based mathematical support, including a variety of symbols and equations.&lt;/p&gt;&#10;&lt;p&gt;&#10;For Microsoft Office-32, there is a dedicated tab for Aurora in Word. For Office-64, however, there is no tab at all. In this case, aurora has to be activated by &lt;code class="verbatim"&gt;insert&lt;/code&gt; → &lt;code class="verbatim"&gt;object&lt;/code&gt;. Clearly, the access is neither direct nor convenience. Targetting better convenience, macros can be defined and then placed in a card, e.g., following scripts define two macros, &lt;code class="verbatim"&gt;aurora_inline&lt;/code&gt; and &lt;code class="verbatim"&gt;aurora_display&lt;/code&gt;, to input inline and display style equations.&lt;/p&gt;</description></item></channel></rss>