Skip to content

lauchimoon/pswm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pretty Simple Window Manager

Inspired by evilwm.

Quick start

$ git clone https://github.com/lauchimoon/pswm.git
$ cd pswm
$ Xephyr -br -ac -noreset -screen 800x600 -resizeable :1 &
$ gcc -o pswm main.c -lX11 -lXrandr
$ DISPLAY=:1 xsetroot -solid \#400040 -cursor_name top_left_arrow
$ ./pswm 1

Usage

Keyboard

  • Mod + Return: spawn terminal
  • Mod + H: move window to the left
  • Mod + J: move window downwards
  • Mod + K: move window upwards
  • Mod + L: move window to the right
  • Mod + X: maximize window (resize to display dimensions)

Mouse

  • Mod + LeftButton: drag window
  • Mod + RightButton: resize window

Mod and terminal are configured on a .pswmrc file which must be located at your home directory. Here's an example:

mask mod1
term xterm

In case this file didn't exist beforehand, pswm will create it with the defaults stated at main.c

Demo

References

About

Pretty simple window manager

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages