literate-dotfiles/docs/i3.html
2022-05-09 10:05:23 +02:00

303 lines
15 KiB
HTML

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2022-05-09 lun. 10:04 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>I3 Configuration</title>
<meta name="author" content="Dehaeze Thomas" />
<meta name="generator" content="Org Mode" />
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
</head>
<body>
<div id="org-div-home-and-up">
<a accesskey="h" href="./index.html"> UP </a>
|
<a accesskey="H" href="./index.html"> HOME </a>
</div><div id="content" class="content">
<h1 class="title">I3 Configuration</h1>
<div id="table-of-contents" role="doc-toc">
<h2>Table of Contents</h2>
<div id="text-table-of-contents" role="doc-toc">
<ul>
<li><a href="#orgbec1d7e">Mod Key</a></li>
<li><a href="#orgfe4527a">Border Style</a></li>
<li><a href="#org2350a3b">Font for window titles</a></li>
<li><a href="#org369308e">Colors Variables</a></li>
<li><a href="#org5bf7cba">Theme colors</a></li>
<li><a href="#orge9d5097">Various Config</a></li>
<li><a href="#orgfd9509d">Border</a></li>
<li><a href="#org5a45d80">Settings for i3-gaps</a></li>
<li><a href="#org1cb95c3">Workspace names</a></li>
<li><a href="#org121dffd">Use Mouse+$mod to drag floating windows</a></li>
<li><a href="#org7400aee">Back and Forth</a></li>
<li><a href="#org05e035a">Application Specific</a>
<ul>
<li><a href="#org7fd2979">Open applications on specific workspaces</a></li>
<li><a href="#org30f565c">Open specific applications in floating mode</a></li>
</ul>
</li>
<li><a href="#orgda1e6da">Scratchpad</a></li>
<li><a href="#orgd2b1dda">Run Polybar and SXHKD</a></li>
</ul>
</div>
</div>
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">i3 config file (v4)</span>
</pre>
</div>
<div id="outline-container-orgbec1d7e" class="outline-2">
<h2 id="orgbec1d7e">Mod Key</h2>
<div class="outline-text-2" id="text-orgbec1d7e">
<p>
Set mod key (Mod1=&lt;Alt&gt;, Mod4=&lt;Super&gt;)
</p>
<div class="org-src-container">
<pre class="src src-conf">set $mod Mod4
</pre>
</div>
</div>
</div>
<div id="outline-container-orgfe4527a" class="outline-2">
<h2 id="orgfe4527a">Border Style</h2>
<div class="outline-text-2" id="text-orgfe4527a">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Use custom colors for black</span>
new_window pixel <span class="org-highlight-numbers-number">1</span>
new_float normal
</pre>
</div>
<p>
Hide borders
</p>
<div class="org-src-container">
<pre class="src src-conf">hide_edge_borders smart
</pre>
</div>
</div>
</div>
<div id="outline-container-org2350a3b" class="outline-2">
<h2 id="org2350a3b">Font for window titles</h2>
<div class="outline-text-2" id="text-org2350a3b">
<div class="org-src-container">
<pre class="src src-conf">font pango:Hack Nerd Font Mono <span class="org-highlight-numbers-number">11</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org369308e" class="outline-2">
<h2 id="org369308e">Colors Variables</h2>
<div class="outline-text-2" id="text-org369308e">
<div class="org-src-container">
<pre class="src src-conf">set_from_resource $bg color0 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
set_from_resource $darkred color1 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
set_from_resource $darkgreen color2 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
set_from_resource $darkyellow color3 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
set_from_resource $darkblue color4 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
set_from_resource $darkpurple color5 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
set_from_resource $darkaqua color6 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
set_from_resource $darkgray color7 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
set_from_resource $gray color8 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
set_from_resource $red color9 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
set_from_resource $green color10 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
set_from_resource $yellow color11 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
set_from_resource $blue color12 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
set_from_resource $purple color13 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
set_from_resource $aqua color14 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
set_from_resource $fg color15 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org5bf7cba" class="outline-2">
<h2 id="org5bf7cba">Theme colors</h2>
<div class="outline-text-2" id="text-org5bf7cba">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">class border backgr. text indic. child_border</span>
client.focused $darkaqua $darkaqua $fg $bg
client.focused_inactive $bg $bg $fg $bg
client.unfocused $bg $bg $fg $bg
client.urgent $bg $bg $fg $bg
client.background $bg
</pre>
</div>
</div>
</div>
<div id="outline-container-orge9d5097" class="outline-2">
<h2 id="orge9d5097">Various Config</h2>
<div class="outline-text-2" id="text-orge9d5097">
<p>
Layout mode for new containers
</p>
<div class="org-src-container">
<pre class="src src-conf">workspace_layout default
</pre>
</div>
<div class="org-src-container">
<pre class="src src-conf">focus_follows_mouse no
</pre>
</div>
</div>
</div>
<div id="outline-container-orgfd9509d" class="outline-2">
<h2 id="orgfd9509d">Border</h2>
<div class="outline-text-2" id="text-orgfd9509d">
<div class="org-src-container">
<pre class="src src-conf">default_border pixel <span class="org-highlight-numbers-number">2</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org5a45d80" class="outline-2">
<h2 id="org5a45d80">Settings for i3-gaps</h2>
<div class="outline-text-2" id="text-org5a45d80">
<div class="org-src-container">
<pre class="src src-conf">gaps inner <span class="org-highlight-numbers-number">10</span>
gaps outer <span class="org-highlight-numbers-number">1</span>
smart_gaps on
</pre>
</div>
</div>
</div>
<div id="outline-container-org1cb95c3" class="outline-2">
<h2 id="org1cb95c3">Workspace names</h2>
<div class="outline-text-2" id="text-org1cb95c3">
<p>
To display names or symbols instead of plain workspace numbers you can use something like: <code>set $ws1 1:mail</code> and <code>set $ws2 2:</code>.
</p>
<div class="org-src-container">
<pre class="src src-conf">set $ws1 <span class="org-highlight-numbers-number">1</span>
set $ws2 <span class="org-highlight-numbers-number">2</span>
set $ws3 <span class="org-highlight-numbers-number">3</span>
set $ws4 <span class="org-highlight-numbers-number">4</span>
set $ws5 <span class="org-highlight-numbers-number">5</span>
set $ws6 <span class="org-highlight-numbers-number">6</span>
set $ws7 <span class="org-highlight-numbers-number">7</span>
set $ws8 <span class="org-highlight-numbers-number">8</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org121dffd" class="outline-2">
<h2 id="org121dffd">Use Mouse+$mod to drag floating windows</h2>
<div class="outline-text-2" id="text-org121dffd">
<div class="org-src-container">
<pre class="src src-conf">floating_modifier $mod
</pre>
</div>
</div>
</div>
<div id="outline-container-org7400aee" class="outline-2">
<h2 id="org7400aee">Back and Forth</h2>
<div class="outline-text-2" id="text-org7400aee">
<div class="org-src-container">
<pre class="src src-conf">workspace_auto_back_and_forth yes
</pre>
</div>
</div>
</div>
<div id="outline-container-org05e035a" class="outline-2">
<h2 id="org05e035a">Application Specific</h2>
<div class="outline-text-2" id="text-org05e035a">
</div>
<div id="outline-container-org7fd2979" class="outline-3">
<h3 id="org7fd2979">Open applications on specific workspaces</h3>
<div class="outline-text-3" id="text-org7fd2979">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-variable-name">assign[title</span>=<span class="org-string">"^Fig"</span>] $ws6 <span class="org-comment-delimiter"># </span><span class="org-comment">Matlab Figures</span>
<span class="org-variable-name">for_window [title</span>=<span class="org-string">"^Fig"</span>] layout tabbed
<span class="org-variable-name">assign[title</span>=<span class="org-string">"^HG_Peer"</span>] $ws6 <span class="org-comment-delimiter"># </span><span class="org-comment">Name of window when export figure with matlab</span>
<span class="org-variable-name">assign[class</span>=<span class="org-string">"^RDP"</span>] $ws7 <span class="org-comment-delimiter"># </span><span class="org-comment">Remote</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org30f565c" class="outline-3">
<h3 id="org30f565c">Open specific applications in floating mode</h3>
<div class="outline-text-3" id="text-org30f565c">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-variable-name">for_window [title</span>=<span class="org-string">"File Transfer*"</span>] floating enable
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"GParted"</span>] floating enable border normal
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"Lxappearance"</span>] floating enable sticky enable border normal
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"Pavucontrol"</span>] floating enable
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"Arandr"</span>] floating enable
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"Simple-scan"</span>] floating enable border normal
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"(?i)System-config-printer.py"</span>] floating enable border normal
<span class="org-variable-name">for_window [title</span>=<span class="org-string">"^Documentation -"</span>] floating enable border normal
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"Yad"</span>] floating enable
<span class="org-variable-name">for_window [title</span>=<span class="org-string">"Bluetooth Devices"</span>] floating enable
<span class="org-variable-name">for_window [title</span>=<span class="org-string">"Simulink Library Browser"</span>] floating enable
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"Floating"</span>] floating enable, resize set <span class="org-highlight-numbers-number">800</span> <span class="org-highlight-numbers-number">600</span>, move position <span class="org-highlight-numbers-number">1100</span> <span class="org-highlight-numbers-number">460</span>
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"mpv"</span>] floating enable <span class="org-comment-delimiter"># </span><span class="org-comment">Size/Position is defined in mpv.conf</span>
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"Sxiv"</span>] floating enable, resize set <span class="org-highlight-numbers-number">800</span> <span class="org-highlight-numbers-number">600</span>, move position center
<span class="org-variable-name">for_window [title</span>=<span class="org-string">"khal"</span>] floating enable, resize set <span class="org-highlight-numbers-number">600</span> <span class="org-highlight-numbers-number">600</span>, move position center
<span class="org-variable-name">for_window [title</span>=<span class="org-string">"ncmpcpp"</span>] floating enable, resize set <span class="org-highlight-numbers-number">800</span> <span class="org-highlight-numbers-number">400</span>, move position center
<span class="org-variable-name">for_window [title</span>=<span class="org-string">"Sensors"</span>] floating enable, resize set <span class="org-highlight-numbers-number">800</span> <span class="org-highlight-numbers-number">400</span>, move position center
<span class="org-variable-name">for_window [title</span>=<span class="org-string">"nmtui"</span>] floating enable, resize set <span class="org-highlight-numbers-number">800</span> <span class="org-highlight-numbers-number">600</span>, move position center
<span class="org-variable-name">for_window [title</span>=<span class="org-string">"Xournal"</span>] floating enable, resize set <span class="org-highlight-numbers-number">1100</span> <span class="org-highlight-numbers-number">750</span>, move position center
<span class="org-variable-name">for_window [title</span>=<span class="org-string">"esrf-phonebook"</span>] floating enable, resize set <span class="org-highlight-numbers-number">1400</span> <span class="org-highlight-numbers-number">400</span>, move position center
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-orgda1e6da" class="outline-2">
<h2 id="orgda1e6da">Scratchpad</h2>
<div class="outline-text-2" id="text-orgda1e6da">
<p>
Move the currently focused window to the scratchpad
</p>
<div class="org-src-container">
<pre class="src src-conf">bindsym $mod+Shift+BackSpace move scratchpad
</pre>
</div>
<p>
Show the next scratchpad window or hide the focused scratchpad window.
If there are multiple scratchpad windows, this command cycles through them.
</p>
<div class="org-src-container">
<pre class="src src-conf">bindsym $mod+BackSpace scratchpad show
</pre>
</div>
</div>
</div>
<div id="outline-container-orgd2b1dda" class="outline-2">
<h2 id="orgd2b1dda">Run Polybar and SXHKD</h2>
<div class="outline-text-2" id="text-orgd2b1dda">
<div class="org-src-container">
<pre class="src src-conf">exec --no-startup-id sxhkd -m <span class="org-highlight-numbers-number">1</span> -c ~/.config/sxhkd/sxhkdrc.i3
exec --no-startup-id polybar top &gt;&gt;/tmp/polybar.log 2&gt;&amp;1 &amp;
</pre>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2022-05-09 lun. 10:04</p>
</div>
</body>
</html>