unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* battery.el: Add option to play a sound when battery hits critical?
@ 2022-06-02 15:42 T.V Raman
  2022-06-02 16:28 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: T.V Raman @ 2022-06-02 15:42 UTC (permalink / raw)
  To: emacs-devel

Subject line almost says it all:

battery.el can change the face used to display battery status in the
modeline. 

Could we also have a defcustom that makes an auditory alert that is
configurable when it transitions from normal to low and low to
critical?

I could do this in emacspeak with an advice, but it might be a more
generally useful feature 



-- 

Thanks,

--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1  🦮

-- 

Thanks,

--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1  🦮



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: battery.el: Add option to play a sound when battery hits critical?
  2022-06-02 15:42 battery.el: Add option to play a sound when battery hits critical? T.V Raman
@ 2022-06-02 16:28 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2022-06-02 16:28 UTC (permalink / raw)
  To: T.V Raman; +Cc: emacs-devel

> Date: Thu, 02 Jun 2022 08:42:48 -0700
> From: "T.V Raman" <raman@google.com>
> 
> Subject line almost says it all:
> 
> battery.el can change the face used to display battery status in the
> modeline. 
> 
> Could we also have a defcustom that makes an auditory alert that is
> configurable when it transitions from normal to low and low to
> critical?

Maybe we should have a hook that would be run by the battery.el's
timer function, then you could write a hook function to do whatever
you want, including playing a sound.

Suggest to file a feature request bug report about this.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-06-02 16:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-02 15:42 battery.el: Add option to play a sound when battery hits critical? T.V Raman
2022-06-02 16:28 ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).