node package manager
We need your input. Help make JavaScript better: Take the 2017 JavaScript Ecosystem survey ยป

wmjs

wmjs

X window manager for Node.

screenshot


Installation

npm i -g wmjs

Usage

This is pretty crappy, right now. To check it out, clone this repo and do ./run.sh (you'll need to have Xephyr installed). To stop that, ./stop.sh.

To use with startx, put something like this in your ~/.xinitrc:

#!/bin/sh

xrdb -merge ~/.Xresources
exec wmjs # add this line

To make this available to your session manager, put something like this in /usr/share/xsessions (works on Debian, not tested on anything else):

[Desktop Entry]
Encoding=UTF-8
Name=wmjs
Comment=Window manger in node
Exec=/path/to/wmjs
Icon=wmjs
Type=XSession
X-LightDM-DesktopName=wmjs
DesktopNames=wmjs

Where /path/to/wmjs is something like /usr/local/bin/wmjs (see npm bin -g).

Requirements

To run in Xephyr, you need Xephyr.

You'll also need dmenu and an x-terminal-emulator.

Prior Art

This is heavily based on code from the following projects:

Recommended Applications

You can use any programs you like, but these fit well with minimalistic window managers.

  • Browser: Qutebrowser
    • Alternatives: min, uzbl, dwb
    • More extreme: w3m, Lynx, elinks
  • File manager: Ranger
    • Alternatives: noice, rover, nnn
  • Editor: Neovim
    • Alternatives: Vim, vi, Emacs
  • Audio player: Angrplayer
    • Alternatives: moc, cmus, mplayer
  • Video: mpv
    • Alternatives: mplayer
  • Terminal emulator: st
    • Alternatives: urxvt, rxvt, xterm

License

MIT