diff --git a/doc/Cheat_sheet/Default_hotkeys.md b/doc/Cheat_sheet/Default_hotkeys.md index eed9d4d..b0e5e0f 100644 --- a/doc/Cheat_sheet/Default_hotkeys.md +++ b/doc/Cheat_sheet/Default_hotkeys.md @@ -1,221 +1,208 @@ ## bug.n default hotkeys -### Abbreviations - -* `!` Alt -* `^` Ctrl, Control -* `#` Win / LWin, the left Windows key -* `+` Shift - ### Window management -#### #Down -Activate the next window in the active view. +#### WinDown +_Activate_ the _next_ window in the active view. -#### #Up -Activate the previous window in the active view. +#### WinUp +_Activate_ the _previous_ window in the active view. -#### #+Down -Move the active window to the next position in the window list of the view. +#### WinShiftDown +_Move_ the active window _to the next position_ in the window list of the view. -#### #+Up -Move the active window to the previous position in the window list of the view. +#### WinShiftUp +_Move_ the active window _to the previous position_ in the window list of the view. -#### #+Enter -Move the active window to the first position in the window list of the view. +#### WinShiftEnter +_Move_ the active window _to the first position_ in the window list of the view. -#### #c -Close the active window. +#### Winc +_Close_ the active window. -#### #+d -Show / Hide the title bar of the active window. +#### WinShiftd +_Show / Hide the title bar_ of the active window. -#### #+f -Toggle the floating status of the active window. +#### WinShiftf +_Toggle_ the _floating status_ of the active window. -#### #^m -Minimize the active window. +#### WinCtrlm +_Minimize_ the active window. -#### #+m -Move the active window by key (only floating windows). +#### WinShiftm +_Move_ the active window _by key_. -#### #+s -Resize the active window by key (only floating windows). +#### WinShifts +_Resize_ the active window _by key_. -#### #+x -Move and resize the active window to the size of the work area (only floating -windows). +#### WinShiftx +_Move and resize_ the active window _to_ the size of the _work area_. -#### #i +#### Wini Get information for the active window. -#### #+i -Get a window list for the active view. +#### WinShifti +_Get a window list_ for the active view. -#### !Down -Manually move the active window to the next area in the layout. +#### AltDown +Manually _move_ the active window _to the next area_ in the layout. -#### !Up -Manually move the active window to the previous area in the layout. +#### AltUp +Manually _move_ the active window _to the previous area_ in the layout. -#### !+Enter -Move and resize the active window to the size of the work area (only floating -windows). +#### AltShiftEnter +_Move and resize_ the active window _to_ the size of the _work area_. -#### !<n> -Manually move the active window to the nth area in -the layout (n = 1..9). - -#### !0 -Manually move the active window to the nth area in +#### Alt<n> +Manually _move_ the active window _to the nth area_ in the layout. -#### !BackSpace +#### Alt0 +Manually _move_ the active window _to the nth area_ in +the layout. + +#### AltBackSpace Toggle the stack area of the layout. ### Window debugging -#### #^i -Dump window information on the windows of the active view to the log. +#### WinCtrli +_Dump_ window information on the _windows of the active view_ to the log. -#### #+^i -Dump window information on the contents of the managed window list to the log. +#### WinCtrlShifti +_Dump_ window information on the _managed windows_ to the log. -#### #^h -Print a description of the formatting (column headings) used in the previous -two log messages to the log. +#### WinCtrlh +_Print column headings_ to the log. -#### #^d +#### WinCtrld Decrement the debug log level. -#### #^+d +#### WinCtrlShiftd Increment the debug log level. ### Layout management -#### #Tab -Set the previously set layout. +#### WinTab +Set the _previous_ly set _layout_. -#### #f -Set the floating layout. +#### Winf +Set the _floating layout_. -#### #m -Set the monocle layout. +#### Winm +Set the _monocle layout_. -#### #t -Set the tile layout. +#### Wint +Set the _tile layout_. -#### #Left -Reduce the size of the master area in the active view (only for the "tile" -layout). +#### WinLeft +_Reduce_ the size of _the master area_ in the active view. -#### #Right -Enlarge the size of the master area in the active view (only for the "tile" -layout). +#### WinRight +_Enlarge_ the size of _the master area_ in the active view. -#### #^t -Rotate the layout axis (only for the "tile" layout). +#### WinCtrlt +Rotate the layout axis. -#### #^Enter -Mirror the layout axis (only for the "tile" layout). +#### WinCtrlEnter +Mirror the layout axis. -#### #^Tab -Rotate the master axis (only for the "tile" layout). +#### WinCtrlTab +Rotate the master axis. -#### #^+Tab -Rotate the stack axis (only for the "tile" layout). +#### WinCtrlShiftTab +Rotate the stack axis. -#### #^Up -Increase the master Y dimension by 1 (only for the "tile" layout). +#### WinCtrlUp +Increase the master Y dimension. -#### #^Down -Decrease the master Y dimension by 1 (only for the "tile" layout). +#### WinCtrlDown +Decrease the master Y dimension. -#### #^Right -Increase the master X dimension by 1 (only for the "tile" layout). +#### WinCtrlRight +Increase the master X dimension. -#### #^Left -Decrease the master X dimension by 1 (only for the "tile" layout). +#### WinCtrlLeft +Decrease the master X dimension. -#### #+Left -Decrease the gap between windows in "monocle" and "tile" layout. +#### WinShiftLeft +_Decrease the gap between windows_ in "monocle" and "tile" layout. -#### #+Right -Increase the gap between windows in "monocle" and "tile" layout. +#### WinShiftRight +_Increase the gap between windows_ in "monocle" and "tile" layout. ### View / Tag management -#### #+n +#### WinShiftn Toggle the view margins. -#### #BackSpace +#### WinBackSpace Activate the previously activated view. -#### #+0 -Tag the active window with all tags (n = 1..`Config_viewCount`). +#### WinShift0 +Tag the active window with all tags. -#### #<n> -Activate the nth view (n = 1..`Config_viewCount`). +#### Win<n> +Activate the nth view. -#### #+<n> -Tag the active window with the nth tag (n = -1..`Config_viewCount`). +#### WinShift<n> +Tag the active window with the nth tag. -#### #^<n> -Add / Remove the nth tag (n = 1..`Config_viewCount`) -for the active window, if it is not / is already set. +#### WinCtrl<n> +Add / Remove the nth tag for the active window, if +it is not / is already set. ### Monitor management -#### #. -Activate the next monitor in a multi-monitor environment. +#### Win. +Activate the _next monitor_ in a multi-monitor environment. -#### #, -Activate the previous monitor in a multi-monitor environment. +#### Win, +Activate the _previous monitor_ in a multi-monitor environment. -#### #+. -Set the active window's view to the active view on the next monitor in a +#### WinShift. +_Set_ the active window's view _to_ the active view on _the next monitor_ in a multi-monitor environment. -#### #+, -Set the active window's view to the active view on the previous monitor in a +#### WinShift, +_Set_ the active window's view _to_ the active view on _the previous monitor_ in a multi-monitor environment. -#### #^+. -Set all windows of the active view on the active view of the next monitor in +#### WinCtrlShift. +_Set all windows_ of the active view _on_ the active view of _the next monitor_ in a multi-monitor environment. -#### #^+, -Set all windows of the active view on the active view of the previous monitor +#### WinCtrlShift, +_Set all windows_ of the active view _on_ the active view of _the previous monitor_ in a multi-monitor environment. ### GUI management -#### #+Space -Hide / Show the bar (bug.n status bar) on the active monitor. +#### WinShiftSpace +_Hide / Show the bar_ (bug.n status bar) on the active monitor. -#### #Space +#### WinSpace Hide / Show the task bar. -#### #y -Open the command GUI for executing programmes or bug.n functions. +#### Winy +_Open the command GUI_ for executing programmes or bug.n functions. -#### #+y +#### WinShifty Toggle the overflow window of the 'notify icons'. -#### !+y +#### AltShifty Indicate the areas of the "tile" layout. ### Administration -#### #^e +#### WinCtrle Open the configuration file in the standard text editor. -#### #^s -Save the current state of monitors, views, layouts to the configuration file. +#### WinCtrls +_Save the current state_ of monitors, views, layouts to the configuration file. -#### #^r -Reload bug.n (i. e. the whole script). +#### WinCtrlr +_Reload_ bug.n (i. e. the whole script). -#### #^q -Quit bug.n, restore the default Windows UI and show all windows. +#### WinCtrlq +_Quit_ bug.n, restore the default Windows UI and show all windows. diff --git a/doc/Cheat_sheet/README.md b/doc/Cheat_sheet/README.md index 0f87c00..db97267 100644 --- a/doc/Cheat_sheet/README.md +++ b/doc/Cheat_sheet/README.md @@ -4,11 +4,16 @@ The cheat sheet was created from `bug.n/doc/Default_hotkeys.md` as a source by * copying the file to `bug.n/doc/Cheat_sheet/` * changing the title from "Default hotkeys" to "bug.n default hotkeys" -* changing the heading "General description" to "Abbreviations" -* finding and replacing "\r\n\r\n[^#*`>].-\r\n\r\n" with "\r\n\r\n" (lpeg pattern) -* finding and replacing "`Config_hotkey=" with "#### " (lpeg pattern) -* finding and replacing "::.-\n> " with "\n" (lpeg pattern) -* finding and replacing "" with "<n>" (lpeg pattern) +* removing the section "General description" +* finding and replacing `\r\n\r\n[^#*`>].-\r\n\r\n` with `\r\n\r\n` (lpeg pattern) +-- This step has to be repeated. There are sections, which contain more than one additional paragraph. +* finding and replacing ``Config_hotkey=` with `#### ` +* finding and replacing `::.-\n> ` with `\n` (lpeg pattern) +* finding and replacing `#` with `Win` +* finding and replacing `!` with `Alt` +* finding and replacing `^` with `Ctrl` +* finding and replacing `+` with `Shift` +* finding and replacing `` with `<n>` * converting the markdown to HTML with the following command: `pandoc -o cheat_sheet.html -S --section-divs -c reset.css -c cheat_sheet.css Default_hotkeys.md` diff --git a/doc/Cheat_sheet/cheat_sheet.css b/doc/Cheat_sheet/cheat_sheet.css index 0e8583d..99ea22a 100644 --- a/doc/Cheat_sheet/cheat_sheet.css +++ b/doc/Cheat_sheet/cheat_sheet.css @@ -8,6 +8,7 @@ height: 190mm; width: 277mm; } +em { font-weight: bold; } h2 { /* background-color: #008AB8;*/ /* border-radius: 4px;*/ @@ -38,35 +39,37 @@ h3 { padding: 4px; } -.level4 { margin: 4px 0; } +.level4 { padding: 4px 0; } .level4:last-child { margin: 0px 0; } .level4:nth-child(2n+1) { background-color: lightgrey; } h4 { float: left; font-family: Ubuntu Mono, monospace; + line-height: 12px; padding: 0 1mm; - width: 16mm; + width: 30mm; } p { - margin-left: 18mm; + margin-left: 32mm; padding: 0 1mm; } +small { font-size: 8px; } +sup { vertical-align: top; } -#abbreviations { position: absolute; top: 0; left: 0; } -#layout-management { position: absolute; top: 24.7ex; left: 0; } -#administration { position: absolute; bottom: 0; left: 0; } +#layout-management { position: absolute; top: 0; left: 0; } +#monitor-management { position: absolute; bottom: 0; left: 0; } -#window-management { position: absolute; top: 0; left: 93.5mm; } -#window-debugging { position: absolute; bottom: 0; left: 93.5mm; } +h2 { position: absolute; top: 0; left: 93.5mm; } +#window-management { position: absolute; bottom: 0; left: 93.5mm; } -#view-tag-management { position: absolute; top: 0; right: 0; } /* 3.2ex * 3 */ -#monitor-management { position: absolute; top: 33.7ex; right: 0; } -h2 { position: absolute; top: 39.0ex; right: 0; } -#gui-management { position: absolute; bottom: 0; right: 0; } +#view-tag-management { position: absolute; top: 0; right: 0; } +#gui-management { position: absolute; top: 30.4ex; right: 0; } +#administration { position: absolute; top: 61.3ex; right: 0; } +#window-debugging { position: absolute; bottom: 0; right: 0; } code { font-family: Ubuntu Mono, monospace; } kbd { - background-color: lightgrey; + background-color: #f0f0f0; border: 1px solid grey; border-bottom-width: 2px; border-radius: 4px; diff --git a/doc/Cheat_sheet/cheat_sheet.html b/doc/Cheat_sheet/cheat_sheet.html index 8bfd378..d3ffb3a 100644 --- a/doc/Cheat_sheet/cheat_sheet.html +++ b/doc/Cheat_sheet/cheat_sheet.html @@ -12,282 +12,273 @@

bug.n default hotkeys

-
-

Abbreviations

-
    -
  • ! Alt
  • -
  • ^ Ctrl, Control
  • -
  • # Win / LWin, the left Windows key
  • -
  • + Shift
  • -
-

Window management

-
-

#Down

-

Activate the next window in the active view.

+
+

WinDown

+

Activate the next window in the active view.

-
-

#Up

-

Activate the previous window in the active view.

+
+

WinUp

+

Activate the previous window in the active view.

-
-

#+Down

-

Move the active window to the next position in the window list of the view.

+
+

WinShiftDown

+

Move the active window to the next position in the window list of the view.

-
-

#+Up

-

Move the active window to the previous position in the window list of the view.

+
+

WinShiftUp

+

Move the active window to the previous position in the window list of the view.

-
-

#+Enter

-

Move the active window to the first position in the window list of the view.

+
+

WinShiftEnter

+

Move the active window to the first position in the window list of the view.

-
-

#c

-

Close the active window.

+
+

Winc

+

Close the active window.

-
-

#+d

-

Show / Hide the title bar of the active window.

+
+

WinShiftd

+

Show / Hide the title bar of the active window.

-
-

#+f

-

Toggle the floating status of the active window.

+
+

WinShiftf

+

Toggle the floating status of the active window.

-
-

#^m

-

Minimize the active window.

+
+

WinCtrlm

+

Minimize the active window.

-
-

#+m

-

Move the active window by key (only floating windows).

+
+

WinShiftm

+

Move the active window by key.

-
-

#+s

-

Resize the active window by key (only floating windows).

+
+

WinShifts

+

Resize the active window by key.

-
-

#+x

-

Move and resize the active window to the size of the work area (only floating windows).

+
+

WinShiftx

+

Move and resize the active window to the size of the work area.

-
-

#i

+
+

Wini

Get information for the active window.

-
-

#+i

-

Get a window list for the active view.

+
+

WinShifti

+

Get a window list for the active view.

-
-

!Down

-

Manually move the active window to the next area in the layout.

+
+

AltDown

+

Manually move the active window to the next area in the layout.

-
-

!Up

-

Manually move the active window to the previous area in the layout.

+
+

AltUp

+

Manually move the active window to the previous area in the layout.

-
-

!+Enter

-

Move and resize the active window to the size of the work area (only floating windows).

+
+

AltShiftEnter

+

Move and resize the active window to the size of the work area.

-
-

!<n>

-

Manually move the active window to the nth area in the layout (n = 1..9).

+
+

Alt<n>

+

Manually move the active window to the nth area in the layout.

-
-

!0

-

Manually move the active window to the nth area in the layout.

+
+

Alt0

+

Manually move the active window to the nth area in the layout.

-
-

!BackSpace

+
+

AltBackSpace

Toggle the stack area of the layout.

Window debugging

-
-

#^i

-

Dump window information on the windows of the active view to the log.

+
+

WinCtrli

+

Dump window information on the windows of the active view to the log.

-
-

#+^i

-

Dump window information on the contents of the managed window list to the log.

+
+

WinCtrlShifti

+

Dump window information on the managed windows to the log.

-
-

#^h

-

Print a description of the formatting (column headings) used in the previous two log messages to the log.

+
+

WinCtrlh

+

Print column headings to the log.

-
-

#^d

+
+

WinCtrld

Decrement the debug log level.

-
-

#^+d

+
+

WinCtrlShiftd

Increment the debug log level.

Layout management

-
-

#Tab

-

Set the previously set layout.

+
+

WinTab

+

Set the previously set layout.

-
-

#f

-

Set the floating layout.

+
+

Winf

+

Set the floating layout.

-
-

#m

-

Set the monocle layout.

+
+

Winm

+

Set the monocle layout.

-
-

#t

-

Set the tile layout.

+
+

Wint

+

Set the tile layout.

-
-

#Left

-

Reduce the size of the master area in the active view (only for the “tile” layout).

+
+

WinLeft

+

Reduce the size of the master area in the active view.

-