]> git.sur5r.net Git - i3/i3/commitdiff
docs: add reference card (by Zeus Panchenko)
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 23 Jul 2010 19:38:42 +0000 (21:38 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 23 Jul 2011 20:21:10 +0000 (22:21 +0200)
Conflicts:

docs/Makefile

docs/Makefile
docs/refcard.tex [new file with mode: 0644]

index 50808a8ca9fb61c5343c33e196328612e35cba10..e49d58ee11843d94ca5929a8fd217daa863656db 100644 (file)
@@ -1,5 +1,5 @@
 
-all: hacking-howto.html debugging.html userguide.html ipc.html multi-monitor.html wsbar.html tree-migrating.html
+all: hacking-howto.html debugging.html userguide.html ipc.html multi-monitor.html wsbar.html tree-migrating.html refcard.pdf
 
 hacking-howto.html: hacking-howto
        asciidoc -a toc -n $<
@@ -23,6 +23,9 @@ multi-monitor.html: multi-monitor
 wsbar.html: wsbar
        asciidoc -a toc -n $<
 
+refcard.pdf: refcard.tex
+       pdflatex refcard.tex && pdflatex refcard.tex
+
 clean:
        rm -f */*.{aux,log,toc,bm,pdf,dvi}
        rm -f *.log *.html
diff --git a/docs/refcard.tex b/docs/refcard.tex
new file mode 100644 (file)
index 0000000..c945db5
--- /dev/null
@@ -0,0 +1,107 @@
+\documentclass[10pt,a4,landscape]{article}
+
+% \usepackage[cam,a4,center,info,]{crop} % frame
+\usepackage[height=20cm,width=25.7cm,noheadfoot,landscape]{geometry} % A4 - 210×297 mm
+
+\usepackage[T1]{fontenc}
+\usepackage{multicol}
+\usepackage{color}
+\usepackage{url}
+\usepackage{lastpage}
+
+\usepackage{hyperref}
+\hypersetup{
+  pdftitle={i3 Reference Card},
+  pdfauthor={\textcopyright\ Zeus Panchenko},
+  pdfkeywords={i3, refcard},
+  pdfsubject={based on http://i3.zekjur.net/docs/userguide.html},
+  pdfpagemode={FullScreen}}
+
+\definecolor{lightgray}{gray}{0.7}
+
+\pagestyle{empty}
+
+\setlength{\parindent}{0in}
+\setlength{\columnseprule}{0.5pt}
+\setlength{\columnsep}{20pt}
+
+\newcommand{\RefCardTitle}[2]
+{\centering{\Large{\textbf{i3 Reference Card (#1/#2)\\
+        {\scriptsize{\url{http://i3.zekjur.net/docs/userguide.html}}}}}}
+  \vspace{1mm}}
+
+
+\newcommand{\RefCardSec}[1] {\vspace{2mm} \raggedright {\vspace{0.5mm}
+    \colorbox{lightgray} {\makebox[0.31\textwidth][l]
+      {\Large{\textsc{\textsf{\textbf{\color{black}#1}}}}}}
+    \vspace{0.5mm}}}
+
+\newcommand{\RefCardRow}[2] {\normalsize{\textbf{\texttt{#1}}}
+  \hspace{\stretch{1}} \raggedleft{\small{\textnormal{#2}}} \\}
+
+\begin{document}
+
+\centering
+
+\begin{multicols}{3}
+  \RefCardTitle{\thepage}{\pageref{LastPage}}
+
+  \RefCardSec{Moving around}
+
+  \RefCardRow{Mod1+Enter}{open new terminal}
+  \RefCardRow{Mod1+j}{focus (left)}
+  \RefCardRow{Mod1+k}{focus (down)}
+  \RefCardRow{Mod1+l}{focus (up)}
+  \RefCardRow{Mod1+;}{focus (right)}
+  \RefCardRow{Mod1+Shift+j}{move window (left)}
+  \RefCardRow{Mod1+Shift+k}{move window (down)}
+  \RefCardRow{Mod1+Shift+l}{move window (up)}
+  \RefCardRow{Mod1+Shift+;}{move window (right)}
+  \RefCardRow{Mod1+Control+j}{snap (left)}
+  \RefCardRow{Mod1+Control+k}{snap (down)}
+  \RefCardRow{Mod1+Control+l}{snap (up)}
+  \RefCardRow{Mod1+Control+;}{snap (right)}
+  \RefCardRow{Mod1+Shift+q}{kill a window}
+  \RefCardRow{Mod1+Shift+<number>}{move a window to another workspace}
+
+
+  \RefCardSec{Changing container modes}
+
+  \RefCardRow{Mod1+e}{default}
+  \RefCardRow{Mod1+h}{stacking}
+  \RefCardRow{Mod1+w}{tabbed}
+  \RefCardRow{Mod1+Shift+f}{global fullscreen}
+  \RefCardRow{Mod1+f}{toggle fullscreen}
+  \RefCardRow{Mod1+Shift+Space}{toggle floating}
+  \RefCardRow{Mod1+<Mouse>}{drag floating}
+
+  \RefCardSec{Opening other applications}
+
+  \RefCardRow{Mod1+v}{open application launcher (dmenu)}
+
+  \RefCardSec{Using workspaces}
+
+  \RefCardRow{Mod1+<number>}{switch to another workspace}
+
+  \RefCardSec{Restarting i3 inplace}
+
+  \RefCardRow{Mod1+Shift+r}{restart i3 inplace}
+
+  \RefCardSec{Exiting i3}
+
+  \RefCardRow{Mod1+Shift+e}{exit i3}
+
+  \vspace{1cm}
+  \tiny{
+    \begin{center}
+      Copyright \copyright 2009, Michael Stapelberg \\
+      All rights reserved. \\
+      Designed by Zeus Panchenko
+    \end{center}
+      Permission is granted to copy, distribute and/or modify this
+      document provided the copyright notice and this permission
+      notice are preserved on all copies.}
+
+\end{multicols}
+
+\end{document}