literate-dotfiles/docs/i3.html
2021-10-25 14:37:10 +02:00

300 lines
14 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>
<!-- 2021-10-25 lun. 14:33 -->
<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="#org603bb02">Mod Key</a></li>
<li><a href="#org2de16b4">Border Style</a></li>
<li><a href="#org27e86ae">Font for window titles</a></li>
<li><a href="#org4f1f60d">Colors Variables</a></li>
<li><a href="#org8584048">Theme colors</a></li>
<li><a href="#org18772b2">Various Config</a></li>
<li><a href="#orgf5906b7">Border</a></li>
<li><a href="#org62f5712">Settings for i3-gaps</a></li>
<li><a href="#org1cf1b72">Workspace names</a></li>
<li><a href="#orgf10019f">Use Mouse+$mod to drag floating windows</a></li>
<li><a href="#orgfacf655">Back and Forth</a></li>
<li><a href="#org4ec8a79">Application Specific</a>
<ul>
<li><a href="#org0d33818">Open applications on specific workspaces</a></li>
<li><a href="#org859f93b">Open specific applications in floating mode</a></li>
</ul>
</li>
<li><a href="#org9247875">Scratchpad</a></li>
<li><a href="#org416cf01">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-org603bb02" class="outline-2">
<h2 id="org603bb02">Mod Key</h2>
<div class="outline-text-2" id="text-org603bb02">
<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-org2de16b4" class="outline-2">
<h2 id="org2de16b4">Border Style</h2>
<div class="outline-text-2" id="text-org2de16b4">
<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-org27e86ae" class="outline-2">
<h2 id="org27e86ae">Font for window titles</h2>
<div class="outline-text-2" id="text-org27e86ae">
<div class="org-src-container">
<pre class="src src-conf">font Hack Nerd Font <span class="org-highlight-numbers-number">11</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org4f1f60d" class="outline-2">
<h2 id="org4f1f60d">Colors Variables</h2>
<div class="outline-text-2" id="text-org4f1f60d">
<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-org8584048" class="outline-2">
<h2 id="org8584048">Theme colors</h2>
<div class="outline-text-2" id="text-org8584048">
<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-org18772b2" class="outline-2">
<h2 id="org18772b2">Various Config</h2>
<div class="outline-text-2" id="text-org18772b2">
<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 yes
</pre>
</div>
</div>
</div>
<div id="outline-container-orgf5906b7" class="outline-2">
<h2 id="orgf5906b7">Border</h2>
<div class="outline-text-2" id="text-orgf5906b7">
<div class="org-src-container">
<pre class="src src-conf">default_border pixel <span class="org-highlight-numbers-number">1</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org62f5712" class="outline-2">
<h2 id="org62f5712">Settings for i3-gaps</h2>
<div class="outline-text-2" id="text-org62f5712">
<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">2</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org1cf1b72" class="outline-2">
<h2 id="org1cf1b72">Workspace names</h2>
<div class="outline-text-2" id="text-org1cf1b72">
<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-orgf10019f" class="outline-2">
<h2 id="orgf10019f">Use Mouse+$mod to drag floating windows</h2>
<div class="outline-text-2" id="text-orgf10019f">
<div class="org-src-container">
<pre class="src src-conf">floating_modifier $mod
</pre>
</div>
</div>
</div>
<div id="outline-container-orgfacf655" class="outline-2">
<h2 id="orgfacf655">Back and Forth</h2>
<div class="outline-text-2" id="text-orgfacf655">
<div class="org-src-container">
<pre class="src src-conf">workspace_auto_back_and_forth yes
</pre>
</div>
</div>
</div>
<div id="outline-container-org4ec8a79" class="outline-2">
<h2 id="org4ec8a79">Application Specific</h2>
<div class="outline-text-2" id="text-org4ec8a79">
</div>
<div id="outline-container-org0d33818" class="outline-3">
<h3 id="org0d33818">Open applications on specific workspaces</h3>
<div class="outline-text-3" id="text-org0d33818">
<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>
</pre>
</div>
</div>
</div>
<div id="outline-container-org859f93b" class="outline-3">
<h3 id="org859f93b">Open specific applications in floating mode</h3>
<div class="outline-text-3" id="text-org859f93b">
<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
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org9247875" class="outline-2">
<h2 id="org9247875">Scratchpad</h2>
<div class="outline-text-2" id="text-org9247875">
<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-org416cf01" class="outline-2">
<h2 id="org416cf01">Run Polybar and SXHKD</h2>
<div class="outline-text-2" id="text-org416cf01">
<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: 2021-10-25 lun. 14:33</p>
</div>
</body>
</html>