literate-dotfiles/docs/sxhkd.html

823 lines
29 KiB
HTML
Raw Normal View History

2020-01-11 22:04:45 +01:00
<?xml version="1.0" encoding="utf-8"?>
<?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>
2020-03-19 10:42:30 +01:00
<!-- 2020-03-19 jeu. 10:38 -->
2020-01-11 22:04:45 +01:00
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Simple X Hotkey Daemon</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
2020-01-11 22:22:46 +01:00
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
<script type="text/javascript" src="./js/jquery.min.js"></script>
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="./js/readtheorg.js"></script>
2020-01-11 22:04:45 +01:00
<script type="text/javascript">
2020-03-01 22:51:16 +01:00
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
2020-01-11 22:04:45 +01:00
<!--/*--><![CDATA[/*><!--*/
2020-03-01 22:51:16 +01:00
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
// @license-end
2020-01-11 22:04:45 +01:00
</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">Simple X Hotkey Daemon</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org2fb1fb3">Basic</a></li>
2020-01-12 17:28:30 +01:00
<li><a href="#org09132ec">Set shut down, restart and locking features</a></li>
2020-01-11 22:04:45 +01:00
<li><a href="#orgbf890ea">Start Applications</a></li>
<li><a href="#orga722b3c">Multimedia keys</a>
<ul>
<li><a href="#orgd2c2b8e">Sound</a></li>
<li><a href="#orgfbf581a">Backlight</a></li>
<li><a href="#org52b748d">Change Tracks</a></li>
<li><a href="#org4be15b6">Print Screen</a></li>
<li><a href="#orga6c4085">Other</a></li>
</ul>
</li>
<li><a href="#org3ba2ae2">Command Mode</a></li>
<li><a href="#org592413b">Change Keyboard Layout</a></li>
<li><a href="#org9d0a9b9">BSPWM related</a>
<ul>
2020-01-28 21:32:38 +01:00
<li><a href="#org97f0c44">BSPWM hotkeys</a></li>
2020-03-19 10:42:30 +01:00
<li><a href="#org2695587">Monocle Layout</a></li>
<li><a href="#org450c8fd">Set the window State</a></li>
<li><a href="#org1e277da">Sticky Window</a></li>
2020-03-01 22:51:16 +01:00
<li><a href="#org33a7d86">Focus and Swap</a></li>
2020-03-19 10:42:30 +01:00
<li><a href="#orga753787">Preselect</a></li>
<li><a href="#org2696cae">Resize</a></li>
2020-01-28 21:32:38 +01:00
</ul>
</li>
2020-03-01 22:51:16 +01:00
<li><a href="#org177f7f6">I3 related</a>
<ul>
<li><a href="#org43a8bcb">Quit/Restart hotkeys</a></li>
2020-03-19 10:42:30 +01:00
<li><a href="#orgd7260b2">Monocle Layout</a></li>
<li><a href="#org7675fb7">Set the window State</a></li>
<li><a href="#org370d3f4">Sticky Window</a></li>
2020-03-01 22:51:16 +01:00
<li><a href="#orgd24232d">focus/swap</a></li>
2020-03-19 10:42:30 +01:00
<li><a href="#org1822729">Preselect</a></li>
<li><a href="#org9872528">Resize</a></li>
2020-03-01 22:51:16 +01:00
</ul>
</li>
2020-01-11 22:04:45 +01:00
</ul>
</div>
</div>
<div id="outline-container-org2fb1fb3" class="outline-2">
<h2 id="org2fb1fb3">Basic</h2>
<div class="outline-text-2" id="text-org2fb1fb3">
<div class="org-src-container">
<pre class="src src-conf">super + ctrl + x
xkill
</pre>
</div>
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">make sxhkd reload its configuration files:</span>
super + Escape
pkill -USR1 -x sxhkd
<span class="org-comment-delimiter"># </span><span class="org-comment">Update Polybar</span>
super + r
$HOME/.config/polybar/scripts/launch.sh
</pre>
</div>
</div>
</div>
2020-01-12 17:28:30 +01:00
<div id="outline-container-org09132ec" class="outline-2">
<h2 id="org09132ec">Set shut down, restart and locking features</h2>
<div class="outline-text-2" id="text-org09132ec">
<div class="org-src-container">
<pre class="src src-conf">XF86PowerOff
$HOME/scripts/quit.sh
super + <span class="org-highlight-numbers-number">0</span>
$HOME/scripts/quit.sh
</pre>
</div>
</div>
</div>
2020-01-11 22:04:45 +01:00
<div id="outline-container-orgbf890ea" class="outline-2">
<h2 id="orgbf890ea">Start Applications</h2>
<div class="outline-text-2" id="text-orgbf890ea">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Start program launcher</span>
super + d
rofi -show run
<span class="org-comment-delimiter"># </span><span class="org-comment">Launch categorized menu</span>
2020-03-19 10:42:30 +01:00
super + z
2020-01-11 22:04:45 +01:00
rofi -show drun
<span class="org-comment-delimiter"># </span><span class="org-comment">Start Sound Manager</span>
super + shift + s
pavucontrol
<span class="org-comment-delimiter"># </span><span class="org-comment">Start Bluetooth Manager</span>
super + shift + b
blueman-manager
<span class="org-comment-delimiter"># </span><span class="org-comment">Windows Switch</span>
super + shift + w
rofi -show window
<span class="org-comment-delimiter"># </span><span class="org-comment">Bookmarks</span>
2020-03-01 22:51:16 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">super + shift + f</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">$HOME/bin/bukurun</span>
2020-01-11 22:04:45 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Passwords</span>
super + shift + p
rofi-pass
</pre>
</div>
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Start Terminal</span>
super + Return
2020-01-12 17:28:30 +01:00
$TERMINAL
2020-01-11 22:04:45 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Tmux Terminal</span>
super + shift + Return
2020-01-12 17:28:30 +01:00
$TERMINAL -e <span class="org-string">'tmux'</span>
2020-01-11 22:04:45 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Start Command line Calendar</span>
super + shift + c
2020-01-12 17:28:30 +01:00
$TERMINAL -e <span class="org-string">"khal interactive"</span>
2020-01-11 22:04:45 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">File Manager</span>
super + o
2020-03-01 22:51:16 +01:00
$TERMINAL -e <span class="org-string">"tmux new-session -A -s ranger ranger"</span>
2020-01-11 22:04:45 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Browser</span>
super + i
qutebrowser
</pre>
</div>
</div>
</div>
<div id="outline-container-orga722b3c" class="outline-2">
<h2 id="orga722b3c">Multimedia keys</h2>
<div class="outline-text-2" id="text-orga722b3c">
</div>
<div id="outline-container-orgd2c2b8e" class="outline-3">
<h3 id="orgd2c2b8e">Sound</h3>
<div class="outline-text-3" id="text-orgd2c2b8e">
<div class="org-src-container">
<pre class="src src-conf">XF86AudioMute
amixer -D pulse sset Master toggle
XF86AudioRaiseVolume
amixer -D pulse sset Master 2%+
XF86AudioLowerVolume
amixer -D pulse sset Master 2%-
</pre>
</div>
</div>
</div>
<div id="outline-container-orgfbf581a" class="outline-3">
<h3 id="orgfbf581a">Backlight</h3>
<div class="outline-text-3" id="text-orgfbf581a">
<div class="org-src-container">
<pre class="src src-conf">XF86MonBrightnessUp
xbacklight -inc <span class="org-highlight-numbers-number">10</span>
XF86MonBrightnessDown
xbacklight -dec <span class="org-highlight-numbers-number">10</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org52b748d" class="outline-3">
<h3 id="org52b748d">Change Tracks</h3>
<div class="outline-text-3" id="text-org52b748d">
<div class="org-src-container">
<pre class="src src-conf">super + period
mpc toggle
super + {greater,less}
mpc {next,prev}
</pre>
</div>
<div class="org-src-container">
<pre class="src src-conf">XF86AudioPlay
mpc toggle
XF86AudioNext
mpc next
XF86AudioPrev
mpc prev
</pre>
</div>
</div>
</div>
<div id="outline-container-org4be15b6" class="outline-3">
<h3 id="org4be15b6">Print Screen</h3>
<div class="outline-text-3" id="text-org4be15b6">
<div class="org-src-container">
<pre class="src src-conf">Print
~/bin/screenshot
XF86Display
rofi -show window
</pre>
</div>
</div>
</div>
<div id="outline-container-orga6c4085" class="outline-3">
<h3 id="orga6c4085">Other</h3>
<div class="outline-text-3" id="text-orga6c4085">
<div class="org-src-container">
<pre class="src src-conf">XF86Search
rofi -show run
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org3ba2ae2" class="outline-2">
<h2 id="org3ba2ae2">Command Mode</h2>
<div class="outline-text-2" id="text-org3ba2ae2">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Command line Calendar Client (khal)</span>
super + space ; c
2020-01-12 17:28:30 +01:00
$TERMINAL -e <span class="org-string">"khal interactive"</span>
2020-01-11 22:04:45 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">GUI Calendar (Google Calendar)</span>
super + space ; shift + c
2020-03-01 22:51:16 +01:00
$BROWSER https://calendar.google.com/
2020-01-11 22:04:45 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">pcmanfm: GUI file manager</span>
2020-03-01 22:51:16 +01:00
super + space ; o
2020-01-11 22:04:45 +01:00
pcmanfm;
<span class="org-comment-delimiter"># </span><span class="org-comment">Mails with neomutt</span>
super + space ; m
2020-03-01 22:51:16 +01:00
$TERMINAL -e <span class="org-string">"tmux new-session -A -s neomutt neomutt"</span>
2020-01-11 22:04:45 +01:00
super + space ; shift + m
2020-01-12 17:28:30 +01:00
$TERMINAL -e <span class="org-string">"neomutt -R"</span>
2020-01-11 22:04:45 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Weechat</span>
super + space ; w
2020-03-01 22:51:16 +01:00
$TERMINAL -e <span class="org-string">"tmux new-session -A -s weechat weechat"</span>
2020-01-11 22:04:45 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">News with newsboat</span>
super + space ; n
2020-03-01 22:51:16 +01:00
$TERMINAL -e <span class="org-string">"tmux new-session -A -s newsboat newsboat"</span>
2020-01-11 22:04:45 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Music with ncmpcpp</span>
super + space ; p
2020-03-01 22:51:16 +01:00
$TERMINAL -e <span class="org-string">"tmux new-session -A -s ncmpcpp ncmpcpp"</span>
2020-01-11 22:04:45 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Print Screen</span>
super + space ; shift + p
2020-03-19 10:42:30 +01:00
$HOME/bin/mopidy-restart
2020-01-11 22:04:45 +01:00
2020-03-01 22:51:16 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Default Browser</span>
2020-01-11 22:04:45 +01:00
super + space ; i
2020-03-01 22:51:16 +01:00
$BROWSER;
2020-01-11 22:04:45 +01:00
2020-03-01 22:51:16 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Alternative Browser</span>
2020-01-11 22:04:45 +01:00
super + space ; shift + i
2020-03-01 22:51:16 +01:00
brave;
2020-01-11 22:04:45 +01:00
2020-03-01 22:51:16 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Emacs</span>
2020-01-11 22:04:45 +01:00
super + space ; e
2020-03-01 22:51:16 +01:00
emacs;
2020-01-11 22:04:45 +01:00
2020-03-01 22:51:16 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Emacs Client</span>
2020-01-11 22:04:45 +01:00
super + space ; shift + e
2020-03-01 22:51:16 +01:00
<span class="org-variable-name">emacsclient -create-frame --alternate-editor</span>=<span class="org-string">""</span>
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
<div id="outline-container-org592413b" class="outline-2">
<h2 id="org592413b">Change Keyboard Layout</h2>
<div class="outline-text-2" id="text-org592413b">
<div class="org-src-container">
<pre class="src src-conf">super + ctrl + d
setxkbmap -layout us -variant intl -option caps:escape
super + shift + d
setxkbmap -layout us -option caps:escape
</pre>
</div>
</div>
</div>
<div id="outline-container-org9d0a9b9" class="outline-2">
<h2 id="org9d0a9b9">BSPWM related</h2>
<div class="outline-text-2" id="text-org9d0a9b9">
</div>
2020-03-01 22:51:16 +01:00
<div id="outline-container-org97f0c44" class="outline-3">
<h3 id="org97f0c44">BSPWM hotkeys</h3>
<div class="outline-text-3" id="text-org97f0c44">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">quit/restart bspwm</span>
super + alt + {q,r}
bspc {quit,wm -r}
<span class="org-comment-delimiter"># </span><span class="org-comment">close and kill</span>
super + {_,shift + }q
bspc node -{c,k}
</pre>
</div>
</div>
</div>
2020-03-19 10:42:30 +01:00
<div id="outline-container-org2695587" class="outline-3">
<h3 id="org2695587">Monocle Layout</h3>
<div class="outline-text-3" id="text-org2695587">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">alternate between the tiled and monocle layout</span>
super + m
bspc desktop -l next
<span class="org-comment-delimiter"># </span><span class="org-comment">focus the next/previous node in the current desktop</span>
super + c
bspc node -f next.local
</pre>
</div>
</div>
</div>
2020-03-19 10:42:30 +01:00
<div id="outline-container-org450c8fd" class="outline-3">
<h3 id="org450c8fd">Set the window State</h3>
<div class="outline-text-3" id="text-org450c8fd">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Set the window state to tiled</span>
super + t
bspc node -t tiled
<span class="org-comment-delimiter"># </span><span class="org-comment">Toggle Fullscreen State</span>
super + f
if [ -z <span class="org-string">"$(bspc query -N -n focused.fullscreen)"</span> ]; then \
bspc node focused -t fullscreen; \
else \
bspc node focused -t tiled; \
fi
<span class="org-comment-delimiter"># </span><span class="org-comment">Toggle Floating State</span>
super + s
if [ -z <span class="org-string">"$(bspc query -N -n focused.floating)"</span> ]; then \
bspc node focused -t floating; \
else \
bspc node focused -t tiled; \
fi
</pre>
</div>
</div>
</div>
2020-03-19 10:42:30 +01:00
<div id="outline-container-org1e277da" class="outline-3">
<h3 id="org1e277da">Sticky Window</h3>
<div class="outline-text-3" id="text-org1e277da">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">set the node flags</span>
super + ctrl + y
bspc node -g sticky
</pre>
</div>
</div>
</div>
<div id="outline-container-org33a7d86" class="outline-3">
<h3 id="org33a7d86">Focus and Swap</h3>
<div class="outline-text-3" id="text-org33a7d86">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Focus/swap the node in the given direction</span>
super + {_,shift + }{h,j,k,l}
bspc node -{f,s} {west,south,north,east}
<span class="org-comment-delimiter"># </span><span class="org-comment">focus the last Node</span>
super + Tab
bspc node -f last
</pre>
</div>
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Focus the next/previous desktop in the current monitor</span>
super + {p,n}
bspc desktop -f {prev,next}.local
<span class="org-comment-delimiter"># </span><span class="org-comment">focus the last Desktop</span>
super + b
bspc desktop -f last
<span class="org-comment-delimiter"># </span><span class="org-comment">focus or send to the given desktop</span>
super + {_,ctrl + }{1-9}
bspc {desktop -f,node -d} <span class="org-string">'^{1-9}'</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Send and Focus to the given desktop</span>
super + shift + {1-9}
bspc node -d <span class="org-string">'^{1-9}'</span> --follow
</pre>
</div>
</div>
</div>
2020-03-19 10:42:30 +01:00
<div id="outline-container-orga753787" class="outline-3">
<h3 id="orga753787">Preselect</h3>
<div class="outline-text-3" id="text-orga753787">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">preselect the direction</span>
super + ctrl + {h,j,k,l}
bspc node -p {west,south,north,east}
<span class="org-comment-delimiter"># </span><span class="org-comment">preselect the ratio</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">super + ctrl + {1-9}</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">bspc node -o 0.{1-9}</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">cancel the preselection for the focused node</span>
super + ctrl + space
bspc node -p cancel
</pre>
</div>
</div>
</div>
2020-03-19 10:42:30 +01:00
<div id="outline-container-org2696cae" class="outline-3">
<h3 id="org2696cae">Resize</h3>
<div class="outline-text-3" id="text-org2696cae">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">expand a window by moving one of its side outward</span>
super + alt + {h,j,k,l}
bspc node -z {left -20 <span class="org-highlight-numbers-number">0</span>,bottom <span class="org-highlight-numbers-number">0</span> <span class="org-highlight-numbers-number">20</span>,top <span class="org-highlight-numbers-number">0</span> -20,right <span class="org-highlight-numbers-number">20</span> <span class="org-highlight-numbers-number">0</span>}
<span class="org-comment-delimiter"># </span><span class="org-comment">contract a window by moving one of its side inward</span>
super + alt + shift + {h,j,k,l}
bspc node -z {right -20 <span class="org-highlight-numbers-number">0</span>,top <span class="org-highlight-numbers-number">0</span> <span class="org-highlight-numbers-number">20</span>,bottom <span class="org-highlight-numbers-number">0</span> -20,left <span class="org-highlight-numbers-number">20</span> <span class="org-highlight-numbers-number">0</span>}
</pre>
</div>
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">move a floating window</span>
super + {Left,Down,Up,Right}
bspc node -v {-20 <span class="org-highlight-numbers-number">0</span>,<span class="org-highlight-numbers-number">0</span> <span class="org-highlight-numbers-number">20</span>,<span class="org-highlight-numbers-number">0</span> -20,<span class="org-highlight-numbers-number">20</span> <span class="org-highlight-numbers-number">0</span>}
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org177f7f6" class="outline-2">
<h2 id="org177f7f6">I3 related</h2>
<div class="outline-text-2" id="text-org177f7f6">
</div>
2020-03-01 22:51:16 +01:00
<div id="outline-container-org43a8bcb" class="outline-3">
<h3 id="org43a8bcb">Quit/Restart hotkeys</h3>
<div class="outline-text-3" id="text-org43a8bcb">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">quit/restart bspwm</span>
super + alt + {q,r}
i3-msg {quit,restart}
<span class="org-comment-delimiter"># </span><span class="org-comment">close and kill</span>
super + {_,shift + }q
i3-msg {kill,kill}
</pre>
</div>
</div>
</div>
2020-03-19 10:42:30 +01:00
<div id="outline-container-orgd7260b2" class="outline-3">
<h3 id="orgd7260b2">Monocle Layout</h3>
<div class="outline-text-3" id="text-orgd7260b2">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">alternate between the tiled and monocle layout</span>
super + f
i3-msg layout toggle tabbed split
<span class="org-comment-delimiter"># </span><span class="org-comment">Change focus between tiling / floating windows</span>
super + c
i3-msg focus mode_toggle
</pre>
</div>
</div>
</div>
2020-03-19 10:42:30 +01:00
<div id="outline-container-org7675fb7" class="outline-3">
<h3 id="org7675fb7">Set the window State</h3>
<div class="outline-text-3" id="text-org7675fb7">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">set the window state</span>
super + {t,s, shift + f}
i3-msg {fullscreen disable,floating toggle,fullscreen toggle}
</pre>
</div>
</div>
</div>
2020-03-19 10:42:30 +01:00
<div id="outline-container-org370d3f4" class="outline-3">
<h3 id="org370d3f4">Sticky Window</h3>
<div class="outline-text-3" id="text-org370d3f4">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
<pre class="src src-conf">super + ctrl + y
i3-msg sticky toggle
</pre>
</div>
</div>
</div>
<div id="outline-container-orgd24232d" class="outline-3">
<h3 id="orgd24232d">focus/swap</h3>
<div class="outline-text-3" id="text-orgd24232d">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Focus/swap the node in the given direction</span>
super + {_,shift + }{h,Left}
i3-msg {focus,move} left
super + {_,shift + }{j,Down}
i3-msg {focus,move} down
super + {_,shift + }{k,Up}
i3-msg {focus,move} up
super + {_,shift + }{l,Right}
i3-msg {focus,move} right
</pre>
</div>
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Focus the next/previous desktop in the current monitor</span>
super + {p,n}
i3-msg workspace {prev,next}
<span class="org-comment-delimiter"># </span><span class="org-comment">focus the last Desktop</span>
super + b
i3-msg workspace back_and_forth
<span class="org-comment-delimiter"># </span><span class="org-comment">focus or send to the given desktop</span>
super + {1-9}
i3-msg workspace <span class="org-string">'{1-9}'</span>
super + ctrl + {1-9}
i3-msg move container to workspace <span class="org-string">'{1-9}'</span>
super + shift + {1-9}
<span class="org-variable-name">WP</span>={1-9} &amp;&amp; i3-msg move container to workspace $WP &amp;&amp; i3-msg workspace $WP
</pre>
</div>
</div>
</div>
2020-03-19 10:42:30 +01:00
<div id="outline-container-org1822729" class="outline-3">
<h3 id="org1822729">Preselect</h3>
<div class="outline-text-3" id="text-org1822729">
2020-01-11 22:04:45 +01:00
<p>
Preselect the direction
</p>
<div class="org-src-container">
<pre class="src src-conf">super + ctrl + {h,l,Left,Right}
i3-msg split h
super + ctrl + {j,k,Up,Down}
i3-msg split v
</pre>
</div>
</div>
</div>
2020-03-19 10:42:30 +01:00
<div id="outline-container-org9872528" class="outline-3">
<h3 id="org9872528">Resize</h3>
<div class="outline-text-3" id="text-org9872528">
2020-01-11 22:04:45 +01:00
<p>
Expand/Shrink a window
</p>
<div class="org-src-container">
<pre class="src src-conf">super + alt + h
i3-msg resize shrink width <span class="org-highlight-numbers-number">10</span> px or <span class="org-highlight-numbers-number">10</span> ppt
super + alt + j
i3-msg resize grow height <span class="org-highlight-numbers-number">10</span> px or <span class="org-highlight-numbers-number">10</span> ppt
super + alt + k
i3-msg resize shrink height <span class="org-highlight-numbers-number">10</span> px or <span class="org-highlight-numbers-number">10</span> ppt
super + alt + l
i3-msg resize grow width <span class="org-highlight-numbers-number">10</span> px or <span class="org-highlight-numbers-number">10</span> ppt
</pre>
</div>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
2020-03-19 10:42:30 +01:00
<p class="date">Created: 2020-03-19 jeu. 10:38</p>
2020-01-11 22:04:45 +01:00
</div>
</body>
</html>