Closed rdiaz02 closed 5 years ago
That's a great idea.
Right now the closest you can get is calling the exwm-nw-get-name
function. However, the way it is written right now requires that you tell it which workspace you want the name of. So the complete function call would be:
(exwm-nw-get-name (exwm-nw--current))
I'll work on making that a bit easier so you can call that function from your mode line format and from emacsclient.
Thanks a lot! That would be great.
I just release version 0.2.0 which fixes this. The exwm-nw-get-name
function can now be called without arguments, in which case it will return the name of the current workspace. That makes it really easy to get this information from outside of Emacs:
$ emacsclient --eval '(exwm-nw-get-name)'
"emacs"
Thanks for exwm-nw! Is it possible to show the name of the workspace in the modeline or in a bar? (e.g., lemonbar, xmobar, etc)? The names are shown when I use
exwm-workspace-switch
(s-w
), so they are obviously there. But (elisp ignorant here) I do not see how to have them displayed in the visible workspaces.