Skip to content

Instantly share code, notes, and snippets.

View nanjigen's full-sized avatar
🗼
Working from a cafe in Tokyo

Daniel Otto nanjigen

🗼
Working from a cafe in Tokyo
View GitHub Profile
(defun a/_exwm-statusbar-battery ()
"Get laptop battery current capacity."
(let ((bat
(concat
(string-trim
(shell-command-to-string
"cat /sys/class/power_supply/BAT0/capacity"))
"%")))
bat))