Created
January 21, 2022 16:55
-
-
Save LinArcX/187204b635edb07ad298afa70f67f235 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun linarcx-keyboard-layout (ml) | |
(declare (ignore ml)) | |
(let ((cmd "xkb-switch -p")) | |
(string-trim '(#\Newline) (run-shell-command cmd t)))) | |
(add-screen-mode-line-formatter #\L #'linarcx-keyboard-layout) | |
Also the output of: `(run-shell-command "xkb-switch -p"" t)` is: | |
"us | |
" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment