https://github.com/zevlg/x-agent
Xorg session agent
https://github.com/zevlg/x-agent
Last synced: about 2 months ago
JSON representation
Xorg session agent
- Host: GitHub
- URL: https://github.com/zevlg/x-agent
- Owner: zevlg
- License: mit
- Created: 2016-11-24T23:16:34.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-04-06T14:45:59.000Z (about 6 years ago)
- Last Synced: 2025-01-19T14:54:48.327Z (over 1 year ago)
- Language: C
- Size: 4.88 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# x-agent
Xorg session agent
`x-agent` starts sibling window manager process(`WM`) and provides
keybinds to control this process. If `WM` crashes or exits for some
reason, `x-agent` starts `WM` again.
Handy for window manager developers.
## x-agent keybindings
* C-Sh-F6 - Kill `WM` with SIGABORT signal, this will cause
`WM` to dump core for futher investigation.
* C-Sh-F9 - Kill `WM` with SIGKILL signal, this will cause
`WM` to always exit.
* C-Sh-F11 - Kill `WM` with SIGTERM signal, this will cause
`WM` to terminate normally.
* C-Sh-ESC - Exit x-agent.
## Example of using x-agent with [EXWM](https://github.com/ch11ng/exwm)
`$ cat ~/.xinitrc`
```console
xrdb -merge $HOME/.Xdefaults
xmodmap $HOME/.Xmodmap
xset s off -dpms
xset m 5 3
xset r rate 250 50
unclutter -idle 1 &
xterm &
exec x-agent -f $HOME/.emacs.d/emacs.log -- emacs -L $HOME/.emacs.d/modules
```