From e5c89fe04061392cf102bb5286bbd203b81099de Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Mon, 11 Apr 2022 17:23:42 -0600 Subject: Add clickable workspaces to XMobar. This is using xdotool to send a keystroke, which is not the best way to do this. In fact, a proper server protocol would be better, but this is how it is at the momement unfortunately. There is a problem where trying to use xdotool to send a key for a multibyte character will cause all events to freeze on XMonad for some reason, so these actions are guarded so only 'a-zA-Z0-9' are clickable and the rest are not, which is /okay/, I don't use unicode workspaces that often. --- extras/HOME/.xmobarrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extras') diff --git a/extras/HOME/.xmobarrc b/extras/HOME/.xmobarrc index 7461de8..aa252f7 100644 --- a/extras/HOME/.xmobarrc +++ b/extras/HOME/.xmobarrc @@ -29,13 +29,13 @@ Config , alignSep = "}{" , template = " %logo% %uname% │\ - \%StdinReader%}\ + \%UnsafeStdinReader%}\ \{ %cpu% %memory% \ \│ %weather% │\ \ %media% │ \ \%bluetooth%%bat% %time% " , commands = [ - Run StdinReader, + Run UnsafeStdinReader, Run Date "%m/%d %H:%M:%S" "time" 10, Run Cpu [ "-t", "", -- cgit