438 lines
15 KiB
HTML
438 lines
15 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>
|
|
<!-- 2022-05-09 lun. 10:04 -->
|
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
|
<title>Simple X Hotkey Daemon</title>
|
|
<meta name="author" content="Dehaeze Thomas" />
|
|
<meta name="generator" content="Org Mode" />
|
|
<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" class="content">
|
|
<h1 class="title">Simple X Hotkey Daemon</h1>
|
|
<div id="table-of-contents" role="doc-toc">
|
|
<h2>Table of Contents</h2>
|
|
<div id="text-table-of-contents" role="doc-toc">
|
|
<ul>
|
|
<li><a href="#org4624078">Basic</a></li>
|
|
<li><a href="#org90f8a1b">Multimedia keys</a>
|
|
<ul>
|
|
<li><a href="#org99f76b9">Sound</a></li>
|
|
<li><a href="#org34c6f17">Backlight</a></li>
|
|
<li><a href="#orgb243371">Change Tracks</a></li>
|
|
<li><a href="#org7030418">Print Screen</a></li>
|
|
<li><a href="#orgbf3ca39">Other</a></li>
|
|
</ul>
|
|
</li>
|
|
<li><a href="#org4f74836"><code>Super + key</code> - Start Applications</a></li>
|
|
<li><a href="#org95c65ac"><code>Super + Shift</code> - Managing Applications</a></li>
|
|
<li><a href="#orgd3fdbc1"><code>Super + Space</code> - Command Mode</a></li>
|
|
<li><a href="#orga3d4227">I3 related</a>
|
|
<ul>
|
|
<li><a href="#orgdbe9d37">Kill Window</a></li>
|
|
<li><a href="#org1423ca3">Set the window State</a></li>
|
|
<li><a href="#org69184b8">focus/swap</a></li>
|
|
<li><a href="#orgc5f1368">Preselect</a></li>
|
|
<li><a href="#org57e5904">Resize</a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org4624078" class="outline-2">
|
|
<h2 id="org4624078">Basic</h2>
|
|
<div class="outline-text-2" id="text-org4624078">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Kill Windows</span>
|
|
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; notify-send <span class="org-string">'sxhkd'</span> <span class="org-string">'Reloaded config'</span>
|
|
|
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Update Polybar</span>
|
|
super + shift + r
|
|
polybar-msg cmd restart
|
|
</pre>
|
|
</div>
|
|
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Exit Screen</span>
|
|
XF86PowerOff
|
|
i3exit
|
|
|
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Exit Screen</span>
|
|
super + <span class="org-highlight-numbers-number">0</span>
|
|
i3exit
|
|
</pre>
|
|
</div>
|
|
|
|
<p>
|
|
Change Keyboard Layout:
|
|
</p>
|
|
<div class="org-src-container">
|
|
<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
|
|
|
|
<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
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org90f8a1b" class="outline-2">
|
|
<h2 id="org90f8a1b">Multimedia keys</h2>
|
|
<div class="outline-text-2" id="text-org90f8a1b">
|
|
</div>
|
|
<div id="outline-container-org99f76b9" class="outline-3">
|
|
<h3 id="org99f76b9">Sound</h3>
|
|
<div class="outline-text-3" id="text-org99f76b9">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Mute/Unmute</span>
|
|
XF86AudioMute
|
|
amixer -D pulse sset Master toggle
|
|
|
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Increase Volume</span>
|
|
XF86AudioRaiseVolume
|
|
amixer -D pulse sset Master 2%+
|
|
|
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Decrease Volume</span>
|
|
XF86AudioLowerVolume
|
|
amixer -D pulse sset Master 2%-
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org34c6f17" class="outline-3">
|
|
<h3 id="org34c6f17">Backlight</h3>
|
|
<div class="outline-text-3" id="text-org34c6f17">
|
|
<div class="org-src-container">
|
|
<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>
|
|
XF86MonBrightnessDown
|
|
xbacklight -dec <span class="org-highlight-numbers-number">10</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgb243371" class="outline-3">
|
|
<h3 id="orgb243371">Change Tracks</h3>
|
|
<div class="outline-text-3" id="text-orgb243371">
|
|
<div class="org-src-container">
|
|
<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>
|
|
super + {greater,less}
|
|
mpc {next,prev}
|
|
</pre>
|
|
</div>
|
|
|
|
<div class="org-src-container">
|
|
<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>
|
|
XF86AudioNext
|
|
mpc next
|
|
|
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Previous music</span>
|
|
XF86AudioPrev
|
|
mpc prev
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org7030418" class="outline-3">
|
|
<h3 id="org7030418">Print Screen</h3>
|
|
<div class="outline-text-3" id="text-org7030418">
|
|
<div class="org-src-container">
|
|
<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>
|
|
XF86Display
|
|
rofi -show window
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgbf3ca39" class="outline-3">
|
|
<h3 id="orgbf3ca39">Other</h3>
|
|
<div class="outline-text-3" id="text-orgbf3ca39">
|
|
<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
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org4f74836" class="outline-2">
|
|
<h2 id="org4f74836"><code>Super + key</code> - Start Applications</h2>
|
|
<div class="outline-text-2" id="text-org4f74836">
|
|
<div class="org-src-container">
|
|
<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
|
|
rofi -show run
|
|
|
|
<span class="org-comment-delimiter"># </span><span class="org-comment">categorized menu</span>
|
|
super + z
|
|
rofi -show drun
|
|
</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
|
|
$TERMINAL
|
|
|
|
<span class="org-comment-delimiter"># </span><span class="org-comment">File Manager</span>
|
|
super + o
|
|
$TERMINAL -e tmux new-session -A -s ranger ranger
|
|
|
|
<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 tmux new-session -A -s neomutt neomutt
|
|
|
|
<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>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org95c65ac" class="outline-2">
|
|
<h2 id="org95c65ac"><code>Super + Shift</code> - Managing Applications</h2>
|
|
<div class="outline-text-2" id="text-org95c65ac">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Bluetooth Manager</span>
|
|
super + shift + b
|
|
blueman-manager
|
|
|
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Calculator</span>
|
|
super + shift + c
|
|
rofi-calc
|
|
|
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Sound Manager</span>
|
|
super + shift + s
|
|
pavucontrol
|
|
|
|
<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-orgd3fdbc1" class="outline-2">
|
|
<h2 id="orgd3fdbc1"><code>Super + Space</code> - Command Mode</h2>
|
|
<div class="outline-text-2" id="text-orgd3fdbc1">
|
|
<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
|
|
$TERMINAL --title khal -e ikhal
|
|
|
|
<span class="org-comment-delimiter"># </span><span class="org-comment">pcmanfm: GUI file manager</span>
|
|
super + space ; o
|
|
nautilus;
|
|
|
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Run another instance of Neomutt in read-only mode</span>
|
|
super + space ; m
|
|
$TERMINAL -e neomutt -R
|
|
|
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Music with ncmpcpp</span>
|
|
super + space ; w
|
|
$TERMINAL -e tmux new-session -A -s gomuks gomuks
|
|
|
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Music with ncmpcpp</span>
|
|
super + space ; p
|
|
$TERMINAL -e tmux new-session -A -s ncmpcpp ncmpcpp
|
|
|
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Default Browser</span>
|
|
super + space ; i
|
|
$BROWSER;
|
|
|
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Emacs</span>
|
|
super + space ; e
|
|
<span class="org-variable-name">emacsclient -create-frame --alternate-editor</span>=<span class="org-string">""</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orga3d4227" class="outline-2">
|
|
<h2 id="orga3d4227">I3 related</h2>
|
|
<div class="outline-text-2" id="text-orga3d4227">
|
|
</div>
|
|
|
|
<div id="outline-container-orgdbe9d37" class="outline-3">
|
|
<h3 id="orgdbe9d37">Kill Window</h3>
|
|
<div class="outline-text-3" id="text-orgdbe9d37">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">close and kill</span>
|
|
super + q
|
|
i3-msg kill
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org1423ca3" class="outline-3">
|
|
<h3 id="org1423ca3">Set the window State</h3>
|
|
<div class="outline-text-3" id="text-org1423ca3">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Set the window to full-screen</span>
|
|
super + f
|
|
i3-msg fullscreen toggle
|
|
|
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Set the window to floating</span>
|
|
super + s
|
|
i3-msg floating toggle
|
|
|
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Alternate between the tiled and normal layout</span>
|
|
super + t
|
|
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
|
|
|
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Sticky window</span>
|
|
super + y
|
|
i3-msg sticky toggle
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org69184b8" class="outline-3">
|
|
<h3 id="org69184b8">focus/swap</h3>
|
|
<div class="outline-text-3" id="text-org69184b8">
|
|
<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 to the given desktop</span>
|
|
super + {1-9}
|
|
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>
|
|
super + ctrl + {1-9}
|
|
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>
|
|
super + shift + {1-9}
|
|
<span class="org-variable-name">WP</span>={1-9} && i3-msg move container to workspace $WP && i3-msg workspace $WP
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgc5f1368" class="outline-3">
|
|
<h3 id="orgc5f1368">Preselect</h3>
|
|
<div class="outline-text-3" id="text-orgc5f1368">
|
|
<p>
|
|
Preselect the direction
|
|
</p>
|
|
<div class="org-src-container">
|
|
<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}
|
|
i3-msg split h
|
|
|
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Set Vertical Layout</span>
|
|
super + ctrl + {j,k,Up,Down}
|
|
i3-msg split v
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org57e5904" class="outline-3">
|
|
<h3 id="org57e5904">Resize</h3>
|
|
<div class="outline-text-3" id="text-org57e5904">
|
|
<p>
|
|
Expand/Shrink a window
|
|
</p>
|
|
<div class="org-src-container">
|
|
<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>
|
|
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
|
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Vertical Shrink</span>
|
|
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
|
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Horizontal Grow</span>
|
|
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>
|
|
<p class="date">Created: 2022-05-09 lun. 10:04</p>
|
|
</div>
|
|
</body>
|
|
</html>
|