113 lines
4.3 KiB
HTML
113 lines
4.3 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-01-08 ven. 01:43 -->
|
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
|
<title>BSPWM</title>
|
|
<meta name="generator" content="Org mode" />
|
|
<meta name="author" content="Dehaeze Thomas" />
|
|
<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">
|
|
<h1 class="title">BSPWM</h1>
|
|
<div id="table-of-contents">
|
|
<h2>Table of Contents</h2>
|
|
<div id="text-table-of-contents">
|
|
<ul>
|
|
<li><a href="#org7da674a">List Desktops</a></li>
|
|
<li><a href="#org0c8adac">Basic Config</a></li>
|
|
<li><a href="#org90ada71">Colors</a></li>
|
|
<li><a href="#org7c7bf9b">Rules</a></li>
|
|
<li><a href="#org0d9bead">Run Polybar and SXHKD</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org7da674a" class="outline-2">
|
|
<h2 id="org7da674a">List Desktops</h2>
|
|
<div class="outline-text-2" id="text-org7da674a">
|
|
<div class="org-src-container">
|
|
<pre class="src src-bash">bspc monitor -d code web mail misc figs
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org0c8adac" class="outline-2">
|
|
<h2 id="org0c8adac">Basic Config</h2>
|
|
<div class="outline-text-2" id="text-org0c8adac">
|
|
<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>
|
|
|
|
<div id="outline-container-org90ada71" class="outline-2">
|
|
<h2 id="org90ada71">Colors</h2>
|
|
<div class="outline-text-2" id="text-org90ada71">
|
|
<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>
|
|
|
|
<div id="outline-container-org7c7bf9b" class="outline-2">
|
|
<h2 id="org7c7bf9b">Rules</h2>
|
|
<div class="outline-text-2" id="text-org7c7bf9b">
|
|
<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>
|
|
|
|
<div id="outline-container-org0d9bead" class="outline-2">
|
|
<h2 id="org0d9bead">Run Polybar and SXHKD</h2>
|
|
<div class="outline-text-2" id="text-org0d9bead">
|
|
<div class="org-src-container">
|
|
<pre class="src src-bash">polybar top >>/tmp/polybar.log <span class="org-highlight-numbers-number">2</span>>&<span class="org-highlight-numbers-number">1</span> &
|
|
sxhkd -m <span class="org-highlight-numbers-number">1</span> -c ~/.config/sxhkd/sxhkdrc.bspwm &
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="postamble" class="status">
|
|
<p class="author">Author: Dehaeze Thomas</p>
|
|
<p class="date">Created: 2021-01-08 ven. 01:43</p>
|
|
</div>
|
|
</body>
|
|
</html>
|