logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

rpws - Implements multiple workspaces in ratpoison

Author

        Mike O'Connor <stew@vireo.org>

Description

        B<rpws> implements multiple workspaces in ratpoison by making calls
        to fdump, freestore.  It was adapted from rpws which comes with
        ratpoison in the contrib directory.

Files

        rpws requires use of a lockfile.  It defaults to using
       /tmp/rpws.<UID>.lock but this can be changed by setting the
       environment variable RPWS_LOCKFILE to your desired lockfile.

Name

       rpws - Implements multiple workspaces in ratpoison

Synopsis

        rpws init n [-k] [-a]  - setup rpws with n workspaces.
                                   -a sets up command aliases;
                                   -k sets up key bindings and aliases.
        rpws dump <fname>      - dumps the current layout to <fname>
        rpws restore <fname>   - restores rpws workspaces from <fname>
        rpws current           - print the current workspace
        rpws help              - this documentation
        rpws n                 - switch to this workspace

Usage

       Add the following line in ~/.ratpoisonrc

            exec /path/to/rpws init 6 -k

       This creates 6 aliases rpws1, rpws2, etc. It also binds the keys M-F1, M-F2, etc to each rpwsN alias.
       Moreover, rpwsn (Next) and rpwsp (Prev) are created, and C-M-{Right,Left} are bound to rpws{n,p}. Aliases
       rpwsm1, rpwsm2, etc. and rpwsm{n,p} are used to move the focused window to another workspace.

       Full list of keybindings created are:

           M-F$i           Goto workspace $i
           C-M-Right       Goto Next workspace
           C-M-Left        Goto Prev workspace
           C-M-S-F$i       Move window to workspace $i
           C-M-greater     Move current window to next workspace
           C-M-less        Move current window to prev workspace

See Also