Skip to content

snobb/dwm-guard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DWM process handler

The DWM process handler that allows restarting dwm without closing all windows.

Usage:

  1. compile and add "exec dwmguard" to .xinitrc
  2. configure a shortcut in dwm that would exit dwm with exit code != 0

The dwm guard will exit if dwm exited with exit code 0 or restart dwm otherwise.

Function to exit with custom exit code:

static void exit_code(const Arg *args)
{
        exit(args->i);
}

Shortcut in DWM configh.h

    { MODKEY|ShiftMask,        XK_r,            exit_code,      {.i = 42} },

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published