diff options
| author | Simon Parri <simonparri@ganzeria.com> | 2025-11-22 12:01:07 -0600 |
|---|---|---|
| committer | Simon Parri <simonparri@ganzeria.com> | 2025-11-22 12:01:07 -0600 |
| commit | 74a7c21271f34cb70ba7ad37908347d30e1e61f7 (patch) | |
| tree | e069cc27f5c5c68c4e237b439cfdbc61438528ef | |
| parent | d46f8727bfb04ce1ae554adcca1edaf57dd7b335 (diff) | |
| download | dotfiles-74a7c21271f34cb70ba7ad37908347d30e1e61f7.tar.gz dotfiles-74a7c21271f34cb70ba7ad37908347d30e1e61f7.zip | |
Emacs/Mobile-Device: Implement `suspend' command
| -rw-r--r-- | common/.emacs.d/init.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/.emacs.d/init.el b/common/.emacs.d/init.el index 51dd64f..ed3b77f 100644 --- a/common/.emacs.d/init.el +++ b/common/.emacs.d/init.el @@ -4033,6 +4033,10 @@ instead." (interactive) (onboard--call-method "Show")) + (defun suspend () + (interactive) + (spawn-shell-cmd "systemctl suspend")) + (defvar-keymap mobile-device-mode-map "<XF86PowerOff> <XF86PowerOff>" 'onboard-toggle "<XF86PowerOff> <XF86AudioRaiseVolume>" 'mobile-device-volume-mode |
