diff options
| author | Josh Rahm <rahm@google.com> | 2022-04-11 17:23:42 -0600 |
|---|---|---|
| committer | Josh Rahm <joshuarahm@gmail.com> | 2022-10-09 12:19:46 -0600 |
| commit | e5c89fe04061392cf102bb5286bbd203b81099de (patch) | |
| tree | 8a043c6b9ab24ac0d9db7503e0df90b18637aa21 /extras | |
| parent | 074987f0f5ebdf608aea6c2d86f70fd5fbc6b640 (diff) | |
| download | rde-e5c89fe04061392cf102bb5286bbd203b81099de.tar.gz rde-e5c89fe04061392cf102bb5286bbd203b81099de.tar.bz2 rde-e5c89fe04061392cf102bb5286bbd203b81099de.zip | |
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.
Diffstat (limited to 'extras')
| -rw-r--r-- | extras/HOME/.xmobarrc | 4 |
1 files changed, 2 insertions, 2 deletions
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% <fc=#a0a0a0><fn=3>%uname%</fn></fc><fc=#404040> │\ - \</fc>%StdinReader%}\ + \</fc>%UnsafeStdinReader%}\ \{ %cpu% %memory% <fc=#404040>\ \│</fc> %weather% <fc=#404040>│\ \</fc> <fc=#a0a0a0>%media%</fc> <fc=#404040>│ \ \</fc>%bluetooth%%bat% <fc=#404040>│</fc> <fn=2><fc=#606060>%time%</fc></fn> " , commands = [ - Run StdinReader, + Run UnsafeStdinReader, Run Date "%m/%d %H:%M:%S" "time" 10, Run Cpu [ "-t", "<fn=3><fc=#000000><bar></fc></fn>", |