简体   繁体   English

对 Xmonad 工作区使用 unicode 字符

[英]Use unicode characters for Xmonad workspaces

I want to use Unicode characters from the Nerd Fonts for my workspaces in Xmonad.我想在 Xmonad 的工作区中使用Nerd Fonts 中的Unicode 字符。

myWorkspaces = ["1:", "2:", "3:", "4:", "5:", "6:ﱘ", "7:", "8:", "9:"]

For reference:以供参考:

工作区 Unicode 名称数组

However, I get the following error on compilation:但是,我在编译时收到以下错误:

xmonad.hs:191:13: error:
    lexical error in string/character literal at character '\62057'
    |
191 |         ["1:", "2:", "3:", "4:", "5:", "6:ﱘ", "7:", "8:", "9:"]
    |             ^

Please check the file for errors.

Warning: Missing charsets in String to FontSet conversion 

Is there any chance to use a full set of nerd fonts unicode characters?有没有机会使用一整套书呆子字体unicode字符? I have seen that others use a subset of unicode in their config .我已经看到其他人在他们的 config 中使用了 unicode 的子集。

I think you're running into GHC bug #5518 .我认为您遇到了GHC 错误 #5518 As a workaround, try the escape syntax instead (eg, "1:\\62057" or "1:\\xf269" instead of "1:" ).作为一种解决方法,请尝试使用转义语法(例如, "1:\\62057""1:\\xf269"而不是"1:" )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM