literate-dotfiles/docs/bspwm.html

113 lines
4.4 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>BSPWM</title>
<meta name="author" content="Dehaeze Thomas" />
2022-05-09 10:05:23 +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>
2022-05-09 10:05:23 +02:00
</div><div id="content" class="content">
2020-01-11 22:04:45 +01:00
<h1 class="title">BSPWM</h1>
2022-05-09 10:05:23 +02:00
<div id="table-of-contents" role="doc-toc">
2020-01-11 22:04:45 +01:00
<h2>Table of Contents</h2>
2022-05-09 10:05:23 +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="#org8e5f34e">List Desktops</a></li>
<li><a href="#orgcdb4dc8">Basic Config</a></li>
<li><a href="#org893011c">Colors</a></li>
<li><a href="#org8d80f07">Rules</a></li>
<li><a href="#org7ea5517">Run Polybar and SXHKD</a></li>
2020-01-11 22:04:45 +01:00
</ul>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org8e5f34e" class="outline-2">
<h2 id="org8e5f34e">List Desktops</h2>
<div class="outline-text-2" id="text-org8e5f34e">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
<pre class="src src-bash">bspc monitor -d code web mail misc figs
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgcdb4dc8" class="outline-2">
<h2 id="orgcdb4dc8">Basic Config</h2>
<div class="outline-text-2" id="text-orgcdb4dc8">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
<pre class="src src-bash">bspc config border_width <span class="org-highlight-numbers-number">1</span>
bspc config window_gap <span class="org-highlight-numbers-number">8</span>
bspc config top_padding <span class="org-highlight-numbers-number">27</span> <span class="org-comment-delimiter"># </span><span class="org-comment">top_padding I set equal to polybar's height</span>
bspc config split_ratio <span class="org-highlight-numbers-number">0.52</span>
bspc config borderless_monocle true
bspc config gapless_monocle true
bspc config focus_follows_pointer true
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org893011c" class="outline-2">
<h2 id="org893011c">Colors</h2>
<div class="outline-text-2" id="text-org893011c">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
<pre class="src src-bash">bspc config normal_border_color <span class="org-string">\#</span>32302f
bspc config focused_border_color <span class="org-string">\#</span>bdae93
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org8d80f07" class="outline-2">
<h2 id="org8d80f07">Rules</h2>
<div class="outline-text-2" id="text-org8d80f07">
2020-01-11 22:04:45 +01:00
<p>
Use <code>xprop</code> to obtain information about the window.
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">If refreshing bspwm, remove all previous rules to prevent doubling up.</span>
bspc rule -r <span class="org-string">"*"</span>
bspc rule --add qutebrowser <span class="org-variable-name">desktop</span>=<span class="org-string">'web'</span> <span class="org-variable-name">follow</span>=on <span class="org-variable-name">state</span>=tiled
bspc rule --add Emacs <span class="org-variable-name">desktop</span>=<span class="org-string">'code'</span> <span class="org-variable-name">follow</span>=on <span class="org-variable-name">state</span>=tiled
bspc rule --add Zathura <span class="org-variable-name">state</span>=tiled
bspc rule --add Pavucontrol <span class="org-variable-name">state</span>=floating
bspc rule --add Blueman-manager <span class="org-variable-name">state</span>=floating
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org7ea5517" class="outline-2">
<h2 id="org7ea5517">Run Polybar and SXHKD</h2>
<div class="outline-text-2" id="text-org7ea5517">
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-bash">polybar top &gt;&gt;/tmp/polybar.log <span class="org-highlight-numbers-number">2</span>&gt;&amp;<span class="org-highlight-numbers-number">1</span> &amp;
2020-01-11 22:04:45 +01:00
sxhkd -m <span class="org-highlight-numbers-number">1</span> -c ~/.config/sxhkd/sxhkdrc.bspwm &amp;
</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>