[taffybar] Remap NSP

This commit is contained in:
Ivan Malison 2021-08-20 15:37:49 -06:00
parent ed95ed104b
commit c14de26be4
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -99,8 +99,10 @@ getFullWorkspaceNames = go <$> readAsListOfString Nothing "_NET_DESKTOP_FULL_NAM
where go = zip [WorkspaceId i | i <- [0..]]
workspaceNamesLabelSetter workspace =
fromMaybe "" . lookup (workspaceIdx workspace) <$>
remapNSP . fromMaybe "" . lookup (workspaceIdx workspace) <$>
liftX11Def [] getFullWorkspaceNames
where remapNSP "NSP" = "S"
remapNSP n = n
enableLogger logger level = do
logger <- getLogger logger