Skip to content

Instantly share code, notes, and snippets.

@jfdm
Created October 13, 2013 13:41
Show Gist options
  • Save jfdm/6962502 to your computer and use it in GitHub Desktop.
Save jfdm/6962502 to your computer and use it in GitHub Desktop.
A simple xmonad cheatsheet.
\documentclass[pdftex, 12pt, a4paper, british, final]{article}
\usepackage[l2tabu,orthodox]{nag}
\usepackage{fixltx2e}
\usepackage{babel}
\usepackage[strict=true]{csquotes}
\usepackage{isodate}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[protrusion=true, expansion=true]{microtype}
\usepackage{xspace}
\usepackage{multicol}
\usepackage{paralist}
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage{array}
\usepackage[vmargin=0.5in, hmargin=1in]{geometry}
\pagestyle{empty}
\setcounter{secnumdepth}{-1}
\begin{document}
\begin{landscape}
\begin{multicols}{3}
\begin{center}
\begin{tabular}{c}
\Large\bfseries xMonad Cheatsheet\\
\end{tabular}
\end{center}
\section{xmonad}
\begin{tabularx}{\columnwidth}{X>{\ttfamily}l}
Quit xmonad & M-S-q\\
Restart xmonad & M-q\\
\end{tabularx}
\section{Windows}
\begin{tabularx}{\columnwidth}{X>{\ttfamily}l}
Swap with next Window & M-S-j\\
Focus on next Window & M-j \\
\midrule
Swap with previous Window & M-S-k\\
Focus on previous Window & M-k \\
\midrule
Focus on previous Window & M-S-TAB \\
Focus on next Window & M-S \\
\end{tabularx}
\section{Programs}
\begin{tabularx}{\columnwidth}{X>{\ttfamily}l}
Kill focused Window & M-S-c \\
\midrule
gmrun & M-S-p \\
Launch Program & M-p \\
\midrule
Launch Terminal & M-S-RET \\
\end{tabularx}
\section{Multi-Monitor}
\begin{tabularx}{\columnwidth}{X>{\ttfamily}l}
Move Window to Screen $1$ & M-S-w\\
Focus on Screen $1$ & M-w\\
\midrule
Move Window to Screen $2$ & M-S-e\\
Focus on Screen $2$ & M-e\\
\midrule
Move Window to Screen $3$ & M-S-r\\
Focus on Screen $3$ & M-r\\
\end{tabularx}
\section{Workspaces}
\begin{tabularx}{\columnwidth}{X>{\ttfamily}l}
Move Window to Workspace $1$ & M-S-1\\
Move Window to Workspace $2$ & M-S-2\\
Move Window to Workspace $3$ & M-S-3\\
Move Window to Workspace $4$ & M-S-4\\
Move Window to Workspace $5$ & M-S-5\\
Move Window to Workspace $6$ & M-S-6\\
Move Window to Workspace $7$ & M-S-7\\
Move Window to Workspace $8$ & M-S-8\\
Move Window to Workspace $9$ & M-S-9\\
\midrule
Switch to Workspace $1$ & M-1\\
Switch to Workspace $2$ & M-2\\
Switch to Workspace $3$ & M-3\\
Switch to Workspace $4$ & M-4\\
Switch to Workspace $5$ & M-5\\
Switch to Workspace $6$ & M-6\\
Switch to Workspace $7$ & M-7\\
Switch to Workspace $8$ & M-8\\
Switch to Workspace $9$ & M-9\\
\end{tabularx}
\section{Master Area}
\begin{tabularx}{\columnwidth}{X>{\ttfamily}l}
Shrink Master Area & M-h \\
Expand Master Area & M-l \\
\midrule
Focus Master Window & M-m \\
\midrule
More Master Windows & M-, \\
Fewer Master Windows & M-. \\
\midrule
Swap Focused with Master & M-RET
\end{tabularx}
\section{Layouts}
\begin{tabularx}{\columnwidth}{X>{\ttfamily}l}
Reset to Default & M-S-space \\
Next Layout & M-space \\
\midrule
Tile Floating Window & M-t \\
Refresh Viewed Sizes & M-n \\
\end{tabularx}
\end{multicols}
\end{landscape}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment