Difference between pages "Install/Stage3" and "Package:Spectrwm"

(Difference between pages)
(Your SubArch)
 
 
Line 1: Line 1:
<noinclude>
+
{{Ebuild
{{InstallPart|the process of installing the Stage3 tarball}}
+
|Summary=A small, dynamic tiling window manager for X11.
</noinclude>
+
|CatPkg=x11-wm/spectrwm
=== Installing the Stage 3 tarball ===
+
|Maintainer=
 +
|Homepage=https://opensource.conformal.com/wiki/spectrwm
 +
}}
  
After creating filesystems, the next step is downloading the initial Stage 3 tarball. The Stage 3 is a pre-compiled system used as a starting point to install Funtoo Linux. Load one of the following URLs in another browser window:
+
{{Note|Spectrwm was previously known as Scrotwm.}}
  
{{MirrorList}}
+
==== Introduction ====
 +
From their page:
 +
spectrwm is a small dynamic tiling window manager for X11. It tries to stay out of the way so that valuable screen real estate can be used for much more important stuff. It has sane defaults and does not require one to learn a language to do any configuration. It was written by hackers for hackers and it strives to be small, compact and fast.
  
Now, let's navigate the directories on the mirrors to find the appropriate build of Funtoo Linux for you.
 
  
==== Which Build? ====
 
 
'''If you're not sure, pick <code>funtoo-current</code>.'''
 
 
Funtoo Linux has various different 'builds', or variants. Here is a list of the various builds that are available, and what their distinctive features are:
 
 
{{TableStart}}
 
<tr><th class="info">Build</th><th class="info">Description</th></tr>
 
<tr><td><code>funtoo-current</code></td><td>The most commonly-selected build of Funtoo Linux. Receives rapid updates and preferred by desktop users.</td></tr>
 
<tr><td><code>funtoo-current-hardened</code></td><td>Same package set as <code>funtoo-current</code>, but with a hardened, exploit-resistant toolchain.</td></tr>
 
<tr><td><code>funtoo-stable</code></td><td>Emphasizes less-frequent package updates and trusted, reliable versions of packages over the latest versions.</td></tr>
 
{{TableEnd}}
 
 
If you want to read more about this, have a look at [[Funtoo_Linux#What_are_the_differences_between_.27stable.27.2C_.27current.27_and_.27experimental.27_.3F|Differences between stable, current and experimental]].
 
 
==== What Architecture?  ====
 
 
'''If you're not sure, pick <code>x86-64bit</code>, or possibly <code>pure64</code> for server systems.'''
 
 
For PC-compatible systems, the following choices are available:
 
 
{{TableStart}}
 
<tr><th class="info">Architecture</th><th class="info">Description</th></tr>
 
<tr><td><code>x86-64bit</code></td><td>For modern 64-bit processors. Uses new 64-bit instructions and address space. Maintains 32-bit compatibility with multilib.</td></tr>
 
<tr><td><code>pure64</code></td><td>For modern 64-bit processors but with no support for 64-bit compatibility.</td></tr>
 
<tr><td><code>x86-32bit</code></td><td>For older 32-bit systems such as Athlon XP, Pentium 4, or earlier Atom.</td></tr>
 
{{TableEnd}}
 
 
==== Your SubArch ====
 
 
Inside <code>/funtoo-current/x86-64bit/</code> on one of our mirrors, you'll see a bunch of directories for various ''subarches'' of Funtoo Linux. Subarches are builds of Funtoo Linux that are designed to run on a particular type of CPU, to offer the best possible performance. They also take advantage of the instruction sets available for each CPU.
 
 
If you are using an AMD-based CPU, download a stage3 from <code>generic_64</code>, <code>amd64-k8</code>, <code>amd64-k10</code>, <code>amd64-bulldozer</code>, <code>amd64-piledriver</code>, <code>amd64-steamroller</code> or <code>amd64-jaguar</code>.  See [[Subarches]] for help figuring out what AMD subarch is best for you.
 
 
If you are using an Intel-based CPU, download a stage3 from <code>generic_64</code>, <code>atom_64</code>, <code>core2_64</code> or <code>corei7</code>. Note that <code>corei7</code> is ideal for any modern Intel processor, including Core i3 and Core i5, and many Xeons.
 
 
If you are using a 32-bit CPU, download a stage3 from <code>generic_32</code>, <code>i686</code>, <code>core2_32</code>, <code>atom_32</code> or <code>athlon-xp</code>.
 
 
==== Setting the Date ====
 
 
{{fancyimportant|If your system's date and time are too far off (typically by months or years,) then it may prevent Portage from properly downloading source tarballs. This is because some of our sources are downloaded via HTTPS, which use SSL certificates and are marked with an activation and expiration date. However, if you system time is relatively close to correct, you can probably skip this step for now.}}
 
 
Now is a good time to verify the date and time are correctly set to UTC. Use the <code>date</code> command to verify the date and time:
 
  
 +
==== Installation ====
 
<console>
 
<console>
# ##i##date
+
# ##i##emerge x11-wm/spectrwm
Fri Jul 15 19:47:18 UTC 2011
+
</console>
 +
Xlockmore is also needed
 +
<console>
 +
# ##i##emerge x11-misc/xlockmore
 
</console>
 
</console>
  
If the date and/or time need to be corrected, do so using <code>date MMDDhhmmYYYY</code>, keeping in mind <code>hhmm</code> are in 24-hour format. The example below changes the date and time to "July 16th, 2011 @ 8:00PM" UTC:
 
  
 +
==== Setup ====
 +
===== xinitrc =====
 +
Edit ~/.xinitrc:
 +
<pre>
 +
exec spectrwm
 +
</pre>
 +
Copy /etc/spectrwm.conf to your home dir as an hidden file.
 
<console>
 
<console>
# ##i##date 071620002011
+
$ ##i## cp /etc/spectrwm.conf ~/.spectrwm.conf
Fri Jul 16 20:00:00 UTC 2011
+
 
</console>
 
</console>
 +
You can edit spectrwm.conf to suit your needs. The file is thoroughly commented so you won't feel lost.
  
==== Download the Stage3 ====
+
==== Bindings (default) ====
Once you are in your Funtoo Linux root filesystem, use <code>wget</code> to download the Stage 3 tarball you have chosen to use as the basis for your new Funtoo Linux system. It should be saved to the <code>/mnt/funtoo</code> directory as follows:
+
{{Note|Usually the M (Modus) key is either alt or the super key.}}
 +
From the man page:
  
<console># ##i##cd /mnt/funtoo
+
BINDINGS
# ##i##wget http://ftp.osuosl.org/pub/funtoo/funtoo-current/x86-64bit/generic_64/stage3-latest.tar.xz
+
</console>
+
  
Note that 64-bit systems can run 32-bit or 64-bit stages, but 32-bit systems can only run 32-bit stages. Make sure that you select a Stage 3 build that is appropriate for your CPU. If you are not certain, it is a safe bet to choose the <code>generic_64</code> or <code>generic_32</code> stage. Consult the [[Download]] page for more information.
+
    spectrwm provides many functions (or actions) accessed via key or mouse
 +
    bindings.
  
Once the stage is downloaded, extract the contents with the following command, substituting in the actual name of your stage 3 tarball:
+
    The current mouse bindings are described below:
<console>
+
{| class="wikitable sortable"
# ##i##tar xpf stage3-latest.tar.xz
+
|-
</console>
+
! Mouse binding  !! description
 +
|-
 +
| M1 || Focus window
 +
|-
 +
| M-M1 || Move window
 +
|-
 +
| M-M3|| Resize window
 +
|-
 +
| M-S-M3|| Resize window while maintaining it centered
 +
|}                     
 +
 
 +
    The default key bindings are described below:
 +
 
 +
          M-S-<Return>       term
 +
          M-p                menu
 +
          M-S-q              quit
 +
          M-q                restart
 +
          M-<Space>          cycle_layout
 +
          M-S-<\>            flip_layout
 +
          M-S-<Space>        stack_reset
 +
          M-h                master_shrink
 +
          M-l                master_grow
 +
          M-,                master_add
 +
          M-.                 master_del
 +
          M-S-,              stack_inc
 +
          M-S-.               stack_dec
 +
          M-<Return>         swap_main
 +
          M-j, M-<TAB>        focus_next
 +
          M-k, M-S-<TAB>      focus_prev
 +
          M-m                focus_main
 +
          M-S-j              swap_next
 +
          M-S-k              swap_prev
 +
          M-b                bar_toggle
 +
          M-S-b              bar_toggle_ws
 +
          M-x                wind_del
 +
          M-S-x              wind_kill
 +
          M-<1-9,0,F1-F12>    ws_<1-22>
 +
          M-S-<1-9,0,F1-F12>  mvws_<1-22>
 +
          M-<Keypad 1-9>      rg_<1-9>
 +
          M-S-<Keypad 1-9>    mvrg_<1-9>
 +
          M-<Right>          ws_next
 +
          M-<Left>            ws_prev
 +
          M-<Up>              ws_next_all
 +
          M-<Down>            ws_prev_all
 +
          M-a                ws_next_move
 +
          M-S-<Left>          ws_prev_move
 +
          M-S-<Up>            ws_prior
 +
          M-S-<Right>        rg_next
 +
          M-S-<Left>          rg_prev
 +
          M-s                screenshot_all
 +
          M-S-s              screenshot_wind
 +
          M-S-v              version
 +
          M-t                float_toggle
 +
          M-S-<Delete>        lock
 +
          M-S-i              initscr
 +
          M-w                iconify
 +
          M-S-w              uniconify
 +
          M-S-r              always_raise
 +
          M-v                button2
 +
          M--                width_shrink
 +
          M-=                width_grow
 +
          M-S--              height_shrink
 +
          M-S-=              height_grow
 +
          M-[                move_left
 +
          M-]                move_right
 +
          M-S-[              move_up
 +
          M-S-]              move_down
 +
          M-S-/              name_workspace
 +
          M-/                search_workspace
 +
          M-f                search_win
 +
 
 +
The action names and descriptions are listed below:
  
{{important|It is very important to use <code>tar's</code> "<code>'''p'''</code>" option when extracting the Stage 3 tarball - it tells <code>tar</code> to ''preserve'' any permissions and ownership that exist within the archive. Without this option, your Funtoo Linux filesystem permissions will be incorrect.}}
+
          term              Spawn a new terminal (see PROGRAMS above).
 +
          menu              Menu (see PROGRAMS above).
 +
          quit              Quit spectrwm.
 +
          restart          Restart spectrwm.
 +
          cycle_layout      Cycle layout.
 +
          flip_layout      Swap the master and stacking areas.
 +
          stack_reset      Reset layout.
 +
          master_shrink    Shrink master area.
 +
          master_grow      Grow master area.
 +
          master_add        Add windows to master area.
 +
          master_del        Remove windows from master area.
 +
          stack_inc        Add columns/rows to stacking area.
 +
          stack_dec        Remove columns/rows from stacking area.
 +
          swap_main        Move current window to master area.
 +
          focus_next        Focus next window in workspace.
 +
          focus_prev        Focus previous window in workspace.
 +
          focus_main        Focus on main window in workspace.
 +
          swap_next        Swap with next window in workspace.
 +
          swap_prev        Swap with previous window in workspace.
 +
          bar_toggle        Toggle overall visibility of status bars.
 +
          bar_toggle_ws    Toggle status bar on current workspace.
 +
          wind_del          Delete current window in workspace.
 +
          wind_kill        Destroy current window in workspace.
 +
          ws_n              Switch to workspace n, where n is 1 through
 +
                            workspace_limit.
 +
          mvws_n            Move current window to workspace n, where n is 1
 +
                            through workspace_limit.
 +
          rg_n              Focus on region n, where n is 1 through 9.
 +
          mvrg_n            Move current window to region n, where n is 1
 +
                            through 9.
 +
          ws_next          Switch to next workspace with a window in it.
 +
          ws_prev          Switch to previous workspace with a window in it.
 +
          ws_next_all      Switch to next workspace.
 +
          ws_prev_all      Switch to previous workspace.
 +
          ws_next_move      Switch to next workspace with the current window.
 +
          ws_prev_move      Switch to previous workspace with the current
 +
                            window.
 +
          ws_prior          Switch to last visited workspace.
 +
          rg_next          Switch to next region.
 +
          rg_prev          Switch to previous region.
 +
          screenshot_all    Take screenshot of entire screen (if enabled)
 +
                            (see PROGRAMS above).
 +
          screenshot_wind  Take screenshot of selected window (if enabled)
 +
                            (see PROGRAMS above).
 +
          version          Toggle version in status bar.
 +
          float_toggle      Toggle focused window between tiled and floating.
 +
          lock              Lock screen (see PROGRAMS above).
 +
          initscr          Reinitialize physical screens (see PROGRAMS
 +
                            above).
 +
          iconify          Minimize (unmap) currently focused window.
 +
          uniconify        Maximize (map) window returned by dmenu
 +
                            selection.
 +
          always_raise      When set tiled windows are allowed to obscure
 +
                            floating windows.
 +
          button2          Fake a middle mouse button click (mouse button
 +
                            2).
 +
          width_shrink      Shrink the width of a floating window.
 +
          width_grow        Grow the width of a floating window.
 +
          height_shrink    Shrink the height of a floating window.
 +
          height_grow      Grow the height of a floating window.
 +
          move_left        Move a floating window a step to the left.
 +
          move_right        Move a floating window a step to the right.
 +
          move_up          Move a floating window a step upwards.
 +
          move_down        Move a floating window a step downwards.
 +
          name_workspace    Name the current workspace.
 +
          search_workspace  Search for a workspace.
 +
          search_win        Search the windows in the current workspace.
 +
{{EbuildFooter}}

Revision as of 02:54, November 17, 2014

x11-wm/spectrwm


Source Repository:Gentoo Portage Tree
Homepage

Summary: A small, dynamic tiling window manager for X11.

Spectrwm


Note

Spectrwm was previously known as Scrotwm.

Introduction

From their page: spectrwm is a small dynamic tiling window manager for X11. It tries to stay out of the way so that valuable screen real estate can be used for much more important stuff. It has sane defaults and does not require one to learn a language to do any configuration. It was written by hackers for hackers and it strives to be small, compact and fast.


Installation

# emerge x11-wm/spectrwm 

Xlockmore is also needed

# emerge x11-misc/xlockmore


Setup

xinitrc

Edit ~/.xinitrc:

exec spectrwm

Copy /etc/spectrwm.conf to your home dir as an hidden file.

 $  cp /etc/spectrwm.conf ~/.spectrwm.conf

You can edit spectrwm.conf to suit your needs. The file is thoroughly commented so you won't feel lost.

Bindings (default)

Note

Usually the M (Modus) key is either alt or the super key.

From the man page:

BINDINGS

    spectrwm provides many functions (or actions) accessed via key or mouse
    bindings.
    The current mouse bindings are described below:
Mouse binding description
M1 Focus window
M-M1 Move window
M-M3 Resize window
M-S-M3 Resize window while maintaining it centered
    The default key bindings are described below:
          M-S-<Return>        term
          M-p                 menu
          M-S-q               quit
          M-q                 restart
          M-<Space>           cycle_layout
          M-S-<\>             flip_layout
          M-S-<Space>         stack_reset
          M-h                 master_shrink
          M-l                 master_grow
          M-,                 master_add
          M-.                 master_del
          M-S-,               stack_inc
          M-S-.               stack_dec
          M-<Return>          swap_main
          M-j, M-<TAB>        focus_next
          M-k, M-S-<TAB>      focus_prev
          M-m                 focus_main
          M-S-j               swap_next
          M-S-k               swap_prev
          M-b                 bar_toggle
          M-S-b               bar_toggle_ws
          M-x                 wind_del
          M-S-x               wind_kill
          M-<1-9,0,F1-F12>    ws_<1-22>
          M-S-<1-9,0,F1-F12>  mvws_<1-22>
          M-<Keypad 1-9>      rg_<1-9>
          M-S-<Keypad 1-9>    mvrg_<1-9>
          M-<Right>           ws_next
          M-<Left>            ws_prev
          M-<Up>              ws_next_all
          M-<Down>            ws_prev_all
          M-a                 ws_next_move
          M-S-<Left>          ws_prev_move
          M-S-<Up>            ws_prior
          M-S-<Right>         rg_next
          M-S-<Left>          rg_prev
          M-s                 screenshot_all
          M-S-s               screenshot_wind
          M-S-v               version
          M-t                 float_toggle
          M-S-<Delete>        lock
          M-S-i               initscr
          M-w                 iconify
          M-S-w               uniconify
          M-S-r               always_raise
          M-v                 button2
          M--                 width_shrink
          M-=                 width_grow
          M-S--               height_shrink
          M-S-=               height_grow
          M-[                 move_left
          M-]                 move_right
          M-S-[               move_up
          M-S-]               move_down
          M-S-/               name_workspace
          M-/                 search_workspace
          M-f                 search_win

The action names and descriptions are listed below:

          term              Spawn a new terminal (see PROGRAMS above).
          menu              Menu (see PROGRAMS above).
          quit              Quit spectrwm.
          restart           Restart spectrwm.
          cycle_layout      Cycle layout.
          flip_layout       Swap the master and stacking areas.
          stack_reset       Reset layout.
          master_shrink     Shrink master area.
          master_grow       Grow master area.
          master_add        Add windows to master area.
          master_del        Remove windows from master area.
          stack_inc         Add columns/rows to stacking area.
          stack_dec         Remove columns/rows from stacking area.
          swap_main         Move current window to master area.
          focus_next        Focus next window in workspace.
          focus_prev        Focus previous window in workspace.
          focus_main        Focus on main window in workspace.
          swap_next         Swap with next window in workspace.
          swap_prev         Swap with previous window in workspace.
          bar_toggle        Toggle overall visibility of status bars.
          bar_toggle_ws     Toggle status bar on current workspace.
          wind_del          Delete current window in workspace.
          wind_kill         Destroy current window in workspace.
          ws_n              Switch to workspace n, where n is 1 through
                            workspace_limit.
          mvws_n            Move current window to workspace n, where n is 1
                            through workspace_limit.
          rg_n              Focus on region n, where n is 1 through 9.
          mvrg_n            Move current window to region n, where n is 1
                            through 9.
          ws_next           Switch to next workspace with a window in it.
          ws_prev           Switch to previous workspace with a window in it.
          ws_next_all       Switch to next workspace.
          ws_prev_all       Switch to previous workspace.
          ws_next_move      Switch to next workspace with the current window.
          ws_prev_move      Switch to previous workspace with the current
                            window.
          ws_prior          Switch to last visited workspace.
          rg_next           Switch to next region.
          rg_prev           Switch to previous region.
          screenshot_all    Take screenshot of entire screen (if enabled)
                            (see PROGRAMS above).
          screenshot_wind   Take screenshot of selected window (if enabled)
                            (see PROGRAMS above).
          version           Toggle version in status bar.
          float_toggle      Toggle focused window between tiled and floating.
          lock              Lock screen (see PROGRAMS above).
          initscr           Reinitialize physical screens (see PROGRAMS
                            above).
          iconify           Minimize (unmap) currently focused window.
          uniconify         Maximize (map) window returned by dmenu
                            selection.
          always_raise      When set tiled windows are allowed to obscure
                            floating windows.
          button2           Fake a middle mouse button click (mouse button
                            2).
          width_shrink      Shrink the width of a floating window.
          width_grow        Grow the width of a floating window.
          height_shrink     Shrink the height of a floating window.
          height_grow       Grow the height of a floating window.
          move_left         Move a floating window a step to the left.
          move_right        Move a floating window a step to the right.
          move_up           Move a floating window a step upwards.
          move_down         Move a floating window a step downwards.
          name_workspace    Name the current workspace.
          search_workspace  Search for a workspace.
          search_win        Search the windows in the current workspace.