literate-dotfiles/docs/i3.html

303 lines
15 KiB
HTML
Raw Normal View History

2020-01-11 22:04:45 +01:00
<?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 10:05:23 +02:00
<!-- 2022-05-09 lun. 10:04 -->
2020-01-11 22:04:45 +01:00
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>I3 Configuration</title>
<meta name="author" content="Dehaeze Thomas" />
2021-04-25 19:10:57 +02:00
<meta name="generator" content="Org Mode" />
2021-01-01 20:12:34 +01:00
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
2020-01-11 22:04:45 +01:00
</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>
2021-10-25 14:37:10 +02:00
</div><div id="content" class="content">
2020-01-11 22:04:45 +01:00
<h1 class="title">I3 Configuration</h1>
2021-10-25 14:37:10 +02:00
<div id="table-of-contents" role="doc-toc">
2020-01-11 22:04:45 +01:00
<h2>Table of Contents</h2>
2021-10-25 14:37:10 +02:00
<div id="text-table-of-contents" role="doc-toc">
2020-01-11 22:04:45 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<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>
2020-01-11 22:04:45 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#org7fd2979">Open applications on specific workspaces</a></li>
<li><a href="#org30f565c">Open specific applications in floating mode</a></li>
2020-01-11 22:04:45 +01:00
</ul>
</li>
2022-05-09 10:05:23 +02:00
<li><a href="#orgda1e6da">Scratchpad</a></li>
<li><a href="#orgd2b1dda">Run Polybar and SXHKD</a></li>
2020-01-11 22:04:45 +01:00
</ul>
</div>
</div>
<div class="org-src-container">
2021-01-01 20:12:34 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">i3 config file (v4)</span>
2020-01-11 22:04:45 +01:00
</pre>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgbec1d7e" class="outline-2">
<h2 id="orgbec1d7e">Mod Key</h2>
<div class="outline-text-2" id="text-orgbec1d7e">
2020-01-11 22:04:45 +01:00
<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>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgfe4527a" class="outline-2">
<h2 id="orgfe4527a">Border Style</h2>
<div class="outline-text-2" id="text-orgfe4527a">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-01 20:12:34 +01:00
<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>
2020-01-11 22:04:45 +01:00
new_float normal
2020-03-01 22:51:16 +01:00
</pre>
</div>
2020-01-11 22:04:45 +01:00
2020-03-01 22:51:16 +01:00
<p>
Hide borders
</p>
<div class="org-src-container">
<pre class="src src-conf">hide_edge_borders smart
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org2350a3b" class="outline-2">
<h2 id="org2350a3b">Font for window titles</h2>
<div class="outline-text-2" id="text-org2350a3b">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-conf">font pango:Hack Nerd Font Mono <span class="org-highlight-numbers-number">11</span>
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org369308e" class="outline-2">
<h2 id="org369308e">Colors Variables</h2>
<div class="outline-text-2" id="text-org369308e">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-01 20:12:34 +01:00
<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>
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org5bf7cba" class="outline-2">
<h2 id="org5bf7cba">Theme colors</h2>
<div class="outline-text-2" id="text-org5bf7cba">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-01 20:12:34 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">class border backgr. text indic. child_border</span>
2020-03-01 22:51:16 +01:00
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
2020-01-11 22:04:45 +01:00
2020-03-01 22:51:16 +01:00
client.background $bg
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orge9d5097" class="outline-2">
<h2 id="orge9d5097">Various Config</h2>
<div class="outline-text-2" id="text-orge9d5097">
2020-03-01 22:51:16 +01:00
<p>
Layout mode for new containers
</p>
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2020-03-01 22:51:16 +01:00
<pre class="src src-conf">workspace_layout default
</pre>
</div>
2020-01-11 22:04:45 +01:00
2020-03-01 22:51:16 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-conf">focus_follows_mouse no
2020-03-01 22:51:16 +01:00
</pre>
</div>
</div>
</div>
2020-01-11 22:04:45 +01:00
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgfd9509d" class="outline-2">
<h2 id="orgfd9509d">Border</h2>
<div class="outline-text-2" id="text-orgfd9509d">
2020-03-01 22:51:16 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-conf">default_border pixel <span class="org-highlight-numbers-number">2</span>
2020-03-01 22:51:16 +01:00
</pre>
</div>
</div>
</div>
2020-01-11 22:04:45 +01:00
2022-05-09 10:05:23 +02:00
<div id="outline-container-org5a45d80" class="outline-2">
<h2 id="org5a45d80">Settings for i3-gaps</h2>
<div class="outline-text-2" id="text-org5a45d80">
2020-03-01 22:51:16 +01:00
<div class="org-src-container">
2021-01-01 20:12:34 +01:00
<pre class="src src-conf">gaps inner <span class="org-highlight-numbers-number">10</span>
2022-05-09 10:05:23 +02:00
gaps outer <span class="org-highlight-numbers-number">1</span>
smart_gaps on
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org1cb95c3" class="outline-2">
<h2 id="org1cb95c3">Workspace names</h2>
<div class="outline-text-2" id="text-org1cb95c3">
2020-01-11 22:04:45 +01:00
<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">
2021-01-01 20:12:34 +01:00
<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>
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<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">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
<pre class="src src-conf">floating_modifier $mod
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org7400aee" class="outline-2">
<h2 id="org7400aee">Back and Forth</h2>
<div class="outline-text-2" id="text-org7400aee">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
<pre class="src src-conf">workspace_auto_back_and_forth yes
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org05e035a" class="outline-2">
<h2 id="org05e035a">Application Specific</h2>
<div class="outline-text-2" id="text-org05e035a">
2020-01-11 22:04:45 +01:00
</div>
2022-05-09 10:05:23 +02:00
<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">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-01 20:12:34 +01:00
<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>
2022-05-09 10:05:23 +02:00
<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>
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<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">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-01 20:12:34 +01:00
<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>
2021-01-08 01:43:48 +01:00
<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>
2021-01-01 20:12:34 +01:00
<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
2021-10-25 14:37:10 +02:00
<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
2021-01-08 01:43:48 +01:00
<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
2021-10-25 14:37:10 +02:00
<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
2021-01-08 01:43:48 +01:00
<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
2021-04-25 19:10:57 +02:00
<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
2022-05-09 10:05:23 +02:00
<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
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgda1e6da" class="outline-2">
<h2 id="orgda1e6da">Scratchpad</h2>
<div class="outline-text-2" id="text-orgda1e6da">
2020-03-01 22:51:16 +01:00
<p>
Move the currently focused window to the scratchpad
</p>
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2020-03-01 22:51:16 +01:00
<pre class="src src-conf">bindsym $mod+Shift+BackSpace move scratchpad
2020-01-11 22:04:45 +01:00
</pre>
</div>
2020-03-01 22:51:16 +01:00
<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>
2020-01-11 22:04:45 +01:00
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgd2b1dda" class="outline-2">
<h2 id="orgd2b1dda">Run Polybar and SXHKD</h2>
<div class="outline-text-2" id="text-orgd2b1dda">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-01 20:12:34 +01:00
<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;
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
2022-05-09 10:05:23 +02:00
<p class="date">Created: 2022-05-09 lun. 10:04</p>
2020-01-11 22:04:45 +01:00
</div>
</body>
</html>