literate-dotfiles/docs/sxhkd.html

641 lines
24 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>
2021-04-25 19:10:57 +02:00
<!-- 2021-04-25 dim. 19:10 -->
2020-01-11 22:04:45 +01:00
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Simple X Hotkey Daemon</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>
</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>
2021-01-01 20:12:34 +01:00
<li><a href="#orgc1e18e6">Basic</a></li>
<li><a href="#orgeadcbf4">Multimedia keys</a>
2020-01-11 22:04:45 +01:00
<ul>
2021-01-01 20:12:34 +01:00
<li><a href="#orgd68d181">Sound</a></li>
<li><a href="#org24e45ab">Backlight</a></li>
<li><a href="#org4c0670a">Change Tracks</a></li>
<li><a href="#orgd572bed">Print Screen</a></li>
<li><a href="#orga25cc09">Other</a></li>
2020-01-11 22:04:45 +01:00
</ul>
</li>
2021-01-01 20:12:34 +01:00
<li><a href="#orgfa5db4a"><code>Super + key</code> - Start Applications</a></li>
<li><a href="#orgda8c5e4"><code>Super + Shift</code> - Managing Applications</a></li>
<li><a href="#orgad54cb1"><code>Super + Space</code> - Command Mode</a></li>
<li><a href="#org655f822">BSPWM related</a>
2020-01-11 22:04:45 +01:00
<ul>
2021-01-01 20:12:34 +01:00
<li><a href="#orgb21b9fa">BSPWM hotkeys</a></li>
<li><a href="#org7784897">Monocle Layout</a></li>
2021-04-25 19:10:57 +02:00
<li><a href="#orgbe96bd6">Set the window State</a></li>
2021-01-01 20:12:34 +01:00
<li><a href="#org8a5891f">Sticky Window</a></li>
<li><a href="#org9363f85">Focus and Swap</a></li>
2021-04-25 19:10:57 +02:00
<li><a href="#org39668cf">Preselect</a></li>
<li><a href="#orgefaac3d">Resize</a></li>
2020-01-28 21:32:38 +01:00
</ul>
</li>
2021-01-01 20:12:34 +01:00
<li><a href="#orgb8b77ba">I3 related</a>
2020-03-01 22:51:16 +01:00
<ul>
2021-01-01 20:12:34 +01:00
<li><a href="#orgf0994dd">Kill Window</a></li>
2021-04-25 19:10:57 +02:00
<li><a href="#orgf0e6469">Set the window State</a></li>
2021-01-01 20:12:34 +01:00
<li><a href="#org993d527">focus/swap</a></li>
2021-04-25 19:10:57 +02:00
<li><a href="#org1163075">Preselect</a></li>
<li><a href="#org523987d">Resize</a></li>
2020-03-01 22:51:16 +01:00
</ul>
</li>
2020-01-11 22:04:45 +01:00
</ul>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-orgc1e18e6" class="outline-2">
<h2 id="orgc1e18e6">Basic</h2>
<div class="outline-text-2" id="text-orgc1e18e6">
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">Kill Windows</span>
super + ctrl + x
2020-01-11 22:04:45 +01:00
xkill
</pre>
</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">make sxhkd reload its configuration files:</span>
2020-01-11 22:04:45 +01:00
super + Escape
2021-01-01 20:12:34 +01:00
pkill -usr1 -x sxhkd; notify-send <span class="org-string">'sxhkd'</span> <span class="org-string">'Reloaded config'</span>
2020-01-11 22:04:45 +01:00
2021-01-01 20:12:34 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Update Polybar</span>
super + shift + r
polybar-msg cmd restart
2020-01-11 22:04:45 +01:00
</pre>
</div>
2020-01-12 17:28:30 +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">Exit Screen</span>
XF86PowerOff
2020-05-26 08:40:15 +02:00
i3exit
2020-01-11 22:04:45 +01:00
2021-01-01 20:12:34 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Exit Screen</span>
super + <span class="org-highlight-numbers-number">0</span>
i3exit
2020-01-11 22:04:45 +01:00
</pre>
</div>
2021-01-01 20:12:34 +01:00
<p>
Change Keyboard Layout:
</p>
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">Change keyboard to US-International layout</span>
super + ctrl + d
setxkbmap -layout us -variant intl -option caps:escape
2020-01-11 22:04:45 +01:00
2021-01-01 20:12:34 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Change keyboard to US layout</span>
super + shift + d
setxkbmap -layout us -option caps:escape
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-orgeadcbf4" class="outline-2">
<h2 id="orgeadcbf4">Multimedia keys</h2>
<div class="outline-text-2" id="text-orgeadcbf4">
2020-01-11 22:04:45 +01:00
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-orgd68d181" class="outline-3">
<h3 id="orgd68d181">Sound</h3>
<div class="outline-text-3" id="text-orgd68d181">
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">Mute/Unmute</span>
XF86AudioMute
2020-01-11 22:04:45 +01:00
amixer -D pulse sset Master toggle
2021-01-01 20:12:34 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Increase Volume</span>
2020-01-11 22:04:45 +01:00
XF86AudioRaiseVolume
amixer -D pulse sset Master 2%+
2021-01-01 20:12:34 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Decrease Volume</span>
2020-01-11 22:04:45 +01:00
XF86AudioLowerVolume
amixer -D pulse sset Master 2%-
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-org24e45ab" class="outline-3">
<h3 id="org24e45ab">Backlight</h3>
<div class="outline-text-3" id="text-org24e45ab">
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">Increase Backlight</span>
XF86MonBrightnessUp
xbacklight -inc <span class="org-highlight-numbers-number">10</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Descrease Backlight</span>
2020-01-11 22:04:45 +01:00
XF86MonBrightnessDown
2021-01-01 20:12:34 +01:00
xbacklight -dec <span class="org-highlight-numbers-number">10</span>
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-org4c0670a" class="outline-3">
<h3 id="org4c0670a">Change Tracks</h3>
<div class="outline-text-3" id="text-org4c0670a">
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">Play/Pause music</span>
super + period
mpc toggle
<span class="org-comment-delimiter"># </span><span class="org-comment">Previous/Next music</span>
2020-01-11 22:04:45 +01:00
super + {greater,less}
2021-01-01 20:12:34 +01:00
mpc {next,prev}
2020-01-11 22:04:45 +01:00
</pre>
</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">Play/Pause music</span>
XF86AudioPlay
mpc toggle
<span class="org-comment-delimiter"># </span><span class="org-comment">Next music</span>
2020-01-11 22:04:45 +01:00
XF86AudioNext
2021-01-01 20:12:34 +01:00
mpc next
<span class="org-comment-delimiter"># </span><span class="org-comment">Previous music</span>
2020-01-11 22:04:45 +01:00
XF86AudioPrev
2021-01-01 20:12:34 +01:00
mpc prev
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-orgd572bed" class="outline-3">
<h3 id="orgd572bed">Print Screen</h3>
<div class="outline-text-3" id="text-orgd572bed">
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">Screenshot script</span>
Print
~/.local/bin/screenshot
<span class="org-comment-delimiter"># </span><span class="org-comment">Switch Windows</span>
2020-01-11 22:04:45 +01:00
XF86Display
2021-01-01 20:12:34 +01:00
rofi -show window
</pre>
</div>
</div>
</div>
<div id="outline-container-orga25cc09" class="outline-3">
<h3 id="orga25cc09">Other</h3>
<div class="outline-text-3" id="text-orga25cc09">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Run Command</span>
XF86Search
rofi -show run
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
</div>
2020-01-11 22:04:45 +01:00
2021-01-01 20:12:34 +01:00
<div id="outline-container-orgfa5db4a" class="outline-2">
<h2 id="orgfa5db4a"><code>Super + key</code> - Start Applications</h2>
<div class="outline-text-2" id="text-orgfa5db4a">
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">Switch Windows</span>
super + w
rofi -show window
<span class="org-comment-delimiter"># </span><span class="org-comment">program launcher</span>
super + d
2020-01-11 22:04:45 +01:00
rofi -show run
2021-01-01 20:12:34 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">categorized menu</span>
super + z
rofi -show drun
2020-01-11 22:04:45 +01:00
</pre>
</div>
2021-01-01 20:12:34 +01:00
<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
$TERMINAL
<span class="org-comment-delimiter"># </span><span class="org-comment">File Manager</span>
super + o
$TERMINAL -e <span class="org-string">"tmux new-session -A -s ranger ranger"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Browser</span>
super + i
qutebrowser
<span class="org-comment-delimiter"># </span><span class="org-comment">Mails with neomutt</span>
super + m
$TERMINAL -e <span class="org-string">"tmux new-session -A -s neomutt neomutt"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Emacs Client</span>
super + e
<span class="org-variable-name">emacsclient -create-frame --alternate-editor</span>=<span class="org-string">""</span>
</pre>
2020-01-11 22:04:45 +01:00
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-orgda8c5e4" class="outline-2">
<h2 id="orgda8c5e4"><code>Super + Shift</code> - Managing Applications</h2>
<div class="outline-text-2" id="text-orgda8c5e4">
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">Network Manager</span>
super + shift + w
$TERMINAL -e <span class="org-string">'sudo nmtui'</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Bluetooth Manager</span>
super + shift + b
blueman-manager
2021-04-25 19:10:57 +02:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Calculator</span>
super + shift + c
rofi-calc
2021-01-01 20:12:34 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Sound Manager</span>
super + shift + s
pavucontrol
</pre>
</div>
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Bookmarks</span>
super + shift + f
bukurun
<span class="org-comment-delimiter"># </span><span class="org-comment">Passwords</span>
super + shift + p
rofi-pass
</pre>
</div>
</div>
</div>
<div id="outline-container-orgad54cb1" class="outline-2">
<h2 id="orgad54cb1"><code>Super + Space</code> - Command Mode</h2>
<div class="outline-text-2" id="text-orgad54cb1">
<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>
2020-01-11 22:04:45 +01:00
super + space ; c
2021-01-01 20:12:34 +01:00
$TERMINAL -e <span class="org-string">"khal interactive"</span>
2020-01-11 22:04:45 +01:00
2021-01-01 20:12:34 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">GUI Calendar (Google Calendar)</span>
2020-01-11 22:04:45 +01:00
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
2021-01-01 20:12:34 +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;
2021-01-01 20:12:34 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Download with Aria2c</span>
2020-05-26 08:40:15 +02:00
super + space ; d
2021-01-01 20:12:34 +01:00
$TERMINAL -e <span class="org-string">"tmux new-session -A -s aria2p aria2p --port 6800 --host http://dl.tdehaeze.xyz --secret $(pass dl.tdehaeze.xyz/tdehaeze | sed -n 1p)"</span>
2020-05-26 08:40:15 +02:00
2021-01-01 20:12:34 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Run another instance of Neomutt in read-only mode</span>
2021-01-08 01:34:53 +01:00
super + space ; m
2021-01-01 20:12:34 +01:00
$TERMINAL -e <span class="org-string">"neomutt -R"</span>
2020-01-11 22:04:45 +01:00
2021-01-01 20:12:34 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Weechat</span>
2020-01-11 22:04:45 +01:00
super + space ; w
2021-01-01 20:12:34 +01:00
$TERMINAL -e <span class="org-string">"tmux new-session -A -s weechat weechat"</span>
2020-01-11 22:04:45 +01:00
2021-01-01 20:12:34 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">News with newsboat</span>
2020-01-11 22:04:45 +01:00
super + space ; n
2021-01-01 20:12:34 +01:00
$TERMINAL -e <span class="org-string">"tmux new-session -A -s newsboat newsboat"</span>
2020-01-11 22:04:45 +01:00
2021-01-01 20:12:34 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Music with ncmpcpp</span>
2020-01-11 22:04:45 +01:00
super + space ; p
2021-01-01 20:12:34 +01:00
$TERMINAL -e <span class="org-string">"tmux new-session -A -s ncmpcpp ncmpcpp"</span>
2020-01-11 22:04:45 +01:00
2021-01-01 20:12:34 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Print Screen</span>
2020-01-11 22:04:45 +01:00
super + space ; shift + p
2020-05-26 08:40:15 +02:00
$HOME/.local/bin/mopidy-restart
2020-01-11 22:04:45 +01:00
2021-01-01 20:12:34 +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
2021-01-01 20:12:34 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Start Torrent Managaer</span>
2020-04-05 11:30:26 +02:00
super + space ; t
2021-01-01 20:12:34 +01:00
$TERMINAL -e <span class="org-string">"tremc"</span>
2020-01-11 22:04:45 +01:00
2021-01-01 20:12:34 +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
2021-01-08 01:34:53 +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
2021-01-01 20:12:34 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Weather</span>
2020-05-26 08:40:15 +02:00
super + space ; shift + w
weather;
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-org655f822" class="outline-2">
<h2 id="org655f822">BSPWM related</h2>
<div class="outline-text-2" id="text-org655f822">
2020-01-11 22:04:45 +01:00
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-orgb21b9fa" class="outline-3">
<h3 id="orgb21b9fa">BSPWM hotkeys</h3>
<div class="outline-text-3" id="text-orgb21b9fa">
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">quit/restart bspwm</span>
2020-01-11 22:04:45 +01:00
super + alt + {q,r}
bspc {quit,wm -r}
2021-01-01 20:12:34 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">close and kill</span>
2020-01-11 22:04:45 +01:00
super + {_,shift + }q
bspc node -{c,k}
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-org7784897" class="outline-3">
<h3 id="org7784897">Monocle Layout</h3>
<div class="outline-text-3" id="text-org7784897">
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">alternate between the tiled and monocle layout</span>
2020-01-11 22:04:45 +01:00
super + m
bspc desktop -l next
2021-01-01 20:12:34 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">focus the next/previous node in the current desktop</span>
2020-01-11 22:04:45 +01:00
super + c
bspc node -f next.local
</pre>
</div>
</div>
</div>
2021-04-25 19:10:57 +02:00
<div id="outline-container-orgbe96bd6" class="outline-3">
<h3 id="orgbe96bd6">Set the window State</h3>
<div class="outline-text-3" id="text-orgbe96bd6">
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">Set the window state to tiled</span>
2020-01-11 22:04:45 +01:00
super + t
bspc node -t tiled
2021-01-01 20:12:34 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Toggle Fullscreen State</span>
2020-01-11 22:04:45 +01:00
super + f
2021-01-01 20:12:34 +01:00
if [ -z <span class="org-string">"$(bspc query -N -n focused.fullscreen)"</span> ]; then \
2020-01-11 22:04:45 +01:00
bspc node focused -t fullscreen; \
else \
bspc node focused -t tiled; \
fi
2021-01-01 20:12:34 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Toggle Floating State</span>
2020-01-11 22:04:45 +01:00
super + s
2021-01-01 20:12:34 +01:00
if [ -z <span class="org-string">"$(bspc query -N -n focused.floating)"</span> ]; then \
2020-01-11 22:04:45 +01:00
bspc node focused -t floating; \
else \
bspc node focused -t tiled; \
fi
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-org8a5891f" class="outline-3">
<h3 id="org8a5891f">Sticky Window</h3>
<div class="outline-text-3" id="text-org8a5891f">
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">set the node flags</span>
2020-01-11 22:04:45 +01:00
super + ctrl + y
bspc node -g sticky
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-org9363f85" class="outline-3">
<h3 id="org9363f85">Focus and Swap</h3>
<div class="outline-text-3" id="text-org9363f85">
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">Focus/swap the node in the given direction</span>
2020-01-11 22:04:45 +01:00
super + {_,shift + }{h,j,k,l}
bspc node -{f,s} {west,south,north,east}
2021-01-01 20:12:34 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">focus the last Node</span>
2020-01-11 22:04:45 +01:00
super + Tab
bspc node -f last
</pre>
</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">Focus the next/previous desktop in the current monitor</span>
2020-01-11 22:04:45 +01:00
super + {p,n}
bspc desktop -f {prev,next}.local
2021-01-01 20:12:34 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">focus the last Desktop</span>
2020-01-11 22:04:45 +01:00
super + b
bspc desktop -f last
2021-01-01 20:12:34 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">focus or send to the given desktop</span>
2020-01-11 22:04:45 +01:00
super + {_,ctrl + }{1-9}
2021-01-01 20:12:34 +01:00
bspc {desktop -f,node -d} <span class="org-string">'^{1-9}'</span>
2020-01-11 22:04:45 +01:00
2021-01-01 20:12:34 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Send and Focus to the given desktop</span>
2020-01-11 22:04:45 +01:00
super + shift + {1-9}
2021-01-01 20:12:34 +01:00
bspc node -d <span class="org-string">'^{1-9}'</span> --follow
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2021-04-25 19:10:57 +02:00
<div id="outline-container-org39668cf" class="outline-3">
<h3 id="org39668cf">Preselect</h3>
<div class="outline-text-3" id="text-org39668cf">
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">preselect the direction</span>
2020-01-11 22:04:45 +01:00
super + ctrl + {h,j,k,l}
2021-01-08 01:34:53 +01:00
bspc node -p {west,south,north,east}
2020-01-11 22:04:45 +01:00
2021-01-01 20:12:34 +01:00
<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>
2020-01-11 22:04:45 +01:00
2021-01-01 20:12:34 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">cancel the preselection for the focused node</span>
2020-01-11 22:04:45 +01:00
super + ctrl + space
2021-01-08 01:34:53 +01:00
bspc node -p cancel
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2021-04-25 19:10:57 +02:00
<div id="outline-container-orgefaac3d" class="outline-3">
<h3 id="orgefaac3d">Resize</h3>
<div class="outline-text-3" id="text-orgefaac3d">
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">expand a window by moving one of its side outward</span>
2020-01-11 22:04:45 +01:00
super + alt + {h,j,k,l}
2021-01-01 20:12:34 +01:00
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>}
2020-01-11 22:04:45 +01:00
2021-01-01 20:12:34 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">contract a window by moving one of its side inward</span>
2020-01-11 22:04:45 +01:00
super + alt + shift + {h,j,k,l}
2021-01-01 20:12:34 +01:00
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>}
2020-01-11 22:04:45 +01:00
</pre>
</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">move a floating window</span>
2020-01-11 22:04:45 +01:00
super + {Left,Down,Up,Right}
2021-01-01 20:12:34 +01:00
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>}
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-orgb8b77ba" class="outline-2">
<h2 id="orgb8b77ba">I3 related</h2>
<div class="outline-text-2" id="text-orgb8b77ba">
2020-01-11 22:04:45 +01:00
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-orgf0994dd" class="outline-3">
<h3 id="orgf0994dd">Kill Window</h3>
<div class="outline-text-3" id="text-orgf0994dd">
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">close and kill</span>
super + q
i3-msg kill
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2021-04-25 19:10:57 +02:00
<div id="outline-container-orgf0e6469" class="outline-3">
<h3 id="orgf0e6469">Set the window State</h3>
<div class="outline-text-3" id="text-orgf0e6469">
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">Set the window to full-screen</span>
2020-01-11 22:04:45 +01:00
super + f
2020-05-26 08:40:15 +02:00
i3-msg fullscreen toggle
2021-01-01 20:12:34 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Set the window to floating</span>
2020-05-26 08:40:15 +02:00
super + s
i3-msg floating toggle
2021-01-01 20:12:34 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Alternate between the tiled and normal layout</span>
2020-05-26 08:40:15 +02:00
super + t
2020-01-11 22:04:45 +01:00
i3-msg layout toggle tabbed split
2021-01-01 20:12:34 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Change focus between tiling / floating windows</span>
2020-01-11 22:04:45 +01:00
super + c
i3-msg focus mode_toggle
2021-01-01 20:12:34 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Sticky window</span>
2020-05-26 08:40:15 +02:00
super + y
2020-01-11 22:04:45 +01:00
i3-msg sticky toggle
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-org993d527" class="outline-3">
<h3 id="org993d527">focus/swap</h3>
<div class="outline-text-3" id="text-org993d527">
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">Focus/swap the node in the given direction</span>
2020-01-11 22:04:45 +01:00
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">
2021-01-01 20:12:34 +01:00
<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>
2020-01-11 22:04:45 +01:00
super + {p,n}
i3-msg workspace {prev,next}
2021-01-01 20:12:34 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Focus the last Desktop</span>
2020-01-11 22:04:45 +01:00
super + b
i3-msg workspace back_and_forth
2021-01-01 20:12:34 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Focus to the given desktop</span>
2020-01-11 22:04:45 +01:00
super + {1-9}
2021-01-01 20:12:34 +01:00
i3-msg workspace <span class="org-string">'{1-9}'</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Send to the given desktop</span>
2020-01-11 22:04:45 +01:00
super + ctrl + {1-9}
2021-01-01 20:12:34 +01:00
i3-msg move container to workspace <span class="org-string">'{1-9}'</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Focus and Send to the given desktop</span>
2020-01-11 22:04:45 +01:00
super + shift + {1-9}
2021-01-01 20:12:34 +01:00
<span class="org-variable-name">WP</span>={1-9} &amp;&amp; i3-msg move container to workspace $WP &amp;&amp; i3-msg workspace $WP
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2021-04-25 19:10:57 +02:00
<div id="outline-container-org1163075" class="outline-3">
<h3 id="org1163075">Preselect</h3>
<div class="outline-text-3" id="text-org1163075">
2020-01-11 22:04:45 +01:00
<p>
Preselect the direction
</p>
<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">Set Horizontal Layout</span>
super + ctrl + {h,l,Left,Right}
2020-01-11 22:04:45 +01:00
i3-msg split h
2021-01-01 20:12:34 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Set Vertical Layout</span>
2020-01-11 22:04:45 +01:00
super + ctrl + {j,k,Up,Down}
i3-msg split v
</pre>
</div>
</div>
</div>
2021-04-25 19:10:57 +02:00
<div id="outline-container-org523987d" class="outline-3">
<h3 id="org523987d">Resize</h3>
<div class="outline-text-3" id="text-org523987d">
2020-01-11 22:04:45 +01:00
<p>
Expand/Shrink a window
</p>
<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">Horizontal Shrink</span>
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
<span class="org-comment-delimiter"># </span><span class="org-comment">Vertical Grow</span>
2020-01-11 22:04:45 +01:00
super + alt + j
2021-01-01 20:12:34 +01:00
i3-msg resize grow height <span class="org-highlight-numbers-number">10</span> px or <span class="org-highlight-numbers-number">10</span> ppt
<span class="org-comment-delimiter"># </span><span class="org-comment">Vertical Shrink</span>
2020-01-11 22:04:45 +01:00
super + alt + k
2021-01-01 20:12:34 +01:00
i3-msg resize shrink height <span class="org-highlight-numbers-number">10</span> px or <span class="org-highlight-numbers-number">10</span> ppt
<span class="org-comment-delimiter"># </span><span class="org-comment">Horizontal Grow</span>
2020-01-11 22:04:45 +01:00
super + alt + l
2021-01-01 20:12:34 +01:00
i3-msg resize grow width <span class="org-highlight-numbers-number">10</span> px or <span class="org-highlight-numbers-number">10</span> ppt
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
2021-04-25 19:10:57 +02:00
<p class="date">Created: 2021-04-25 dim. 19:10</p>
2020-01-11 22:04:45 +01:00
</div>
</body>
</html>