Run the battery status from ‘user-emacs-directory’
I can’t remember now why, but it must have failed for some reason before.
This commit is contained in:
parent
6b24843ac8
commit
391a3660a4
1 changed files with 3 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||||
;; Keywords: local
|
;; Keywords: local
|
||||||
;; Version: 2019.1006.113112
|
;; Version: 2020.0724.190100
|
||||||
;; Package-Requires: (oni-alert alert-termux)
|
;; Package-Requires: (oni-alert alert-termux)
|
||||||
|
|
||||||
;; This program is free software; you can redistribute it and/or modify
|
;; This program is free software; you can redistribute it and/or modify
|
||||||
|
@ -43,7 +43,8 @@ The following %-sequences are provided:
|
||||||
%L Plugged
|
%L Plugged
|
||||||
%B Status
|
%B Status
|
||||||
%d Temperature"
|
%d Temperature"
|
||||||
(let ((info (with-temp-buffer
|
(let ((default-directory user-emacs-directory)
|
||||||
|
(info (with-temp-buffer
|
||||||
(call-process "termux-battery-status" nil t)
|
(call-process "termux-battery-status" nil t)
|
||||||
(goto-char (point-min))
|
(goto-char (point-min))
|
||||||
(json-read))))
|
(json-read))))
|
||||||
|
|
Loading…
Reference in a new issue