stumpwm.stumpwm-contrib/util/end-session
2023-02-16 13:56:34 +01:00
..
end-session.asd Add end-session module 2018-02-15 13:53:11 -07:00
end-session.lisp Better name for end-session command variable, added configuration example to README 2023-02-16 13:56:34 +01:00
package.lisp Better name for end-session command variable, added configuration example to README 2023-02-16 13:56:34 +01:00
README.org Better name for end-session command variable, added configuration example to README 2023-02-16 13:56:34 +01:00

end-session

This module provides commands to gracefully close all open programs and shutdown or reboot the computer. A logout command is also provided.

This module requires the use of logind (or elogind), and requires the polkit package to be installed, as well as the wmctrl command.

Usage

Add these lines to your .stumprc file:

  ;; if you haven't added to load path yet:
  (add-to-load-path #p"path-to-contrib/util/end-session")
  ;; actually load the module
  (load-module "end-session")
  ;; Use loginctl instead of the default systemctl
  (setf end-session:*end-session-command* "loginctl")

Commands Provided:

  • end-session Prompts for shutdown, restart, or logoff. You can customize what this shows with *end-session-menu*. See end-session.lisp::86
  • shutdown-computer
  • restart-computer
  • logout