繁体   English   中英

对 Xmonad 工作区使用 unicode 字符

[英]Use unicode characters for Xmonad workspaces

我想在 Xmonad 的工作区中使用Nerd Fonts 中的Unicode 字符。

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

以供参考:

工作区 Unicode 名称数组

但是,我在编译时收到以下错误:

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 

有没有机会使用一整套书呆子字体unicode字符? 我已经看到其他人在他们的 config 中使用了 unicode 的子集。

我认为您遇到了GHC 错误 #5518 作为一种解决方法,请尝试使用转义语法(例如, "1:\\62057""1:\\xf269"而不是"1:" )。

暂无
暂无

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

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