-1

当拱门抛出错误时,我正在编辑 polybar 和 i3 的配置文件

我用 polybar 和 i3 定制了我的 ArchLinux,但我无法理解系统抛出的一些错误。因此,我在下面放了一个屏幕截图和我的 .config:

我的桌面截图

#focus, floating, & sticky
for_window [title="(?i)(?:copying|deleting|moving)"] floating enable
for_window [window_role="(?i)(?:pop-up|setup)"]
for_window [class=""]
popup_during_fullscreen smart
exec --no-startup-id i3-msg workspace $WS1


ERROR: CONFIG: Expected one of these tokens: <string>
ERROR: CONFIG: (in file /home/amts/.config/i3/config)
ERROR: CONFIG: Line 286: for_window [title="(?i)(?:copying|deleting|moving)"] floating enable
ERROR: CONFIG: Line 287: for_window [window_role="(?i)(?:pop-up|setup)"]
ERROR: CONFIG: Line 288: for_window [class=""]
ERROR: CONFIG:           ^^^^^^^^^^^^^^^^^^^^^
ERROR: CONFIG: Line 289: popup_during_fullscreen smart
ERROR: CONFIG: Line 290: 
ERROR: CONFIG: Expected one of these tokens: <word>
ERROR: CONFIG: (in file /home/amts/.config/i3/config)
ERROR: CONFIG: Line 287: for_window [title="(?i)(?:copying|deleting|moving)"] floating enable
ERROR: CONFIG: Line 288: for_window [window_role="(?i)(?:pop-up|setup)"]
ERROR: CONFIG: Line 289: for_window [class=""]
ERROR: CONFIG:                              ^^
ERROR: CONFIG: Line 290: popup_during_fullscreen smart
ERROR: CONFIG: Line 291: 
ERROR: FYI: You are using i3 version 4.16.1 (2019-01-27)
4

2 回答 2

1

尝试删除此行:

for_window [class=""]

或在类属性中添加您想要的应用程序,或将 * 放在所有应用程序的“”之间。

于 2019-05-21T06:20:17.270 回答
0

你可以启用 i3 调试

如果使用 ~/.xsession

exec i3 --shmlog-size=26214400

在这里找到更多选项: https ://i3wm.org/docs/debugging.html

顺便说一句,这是什么(?:)意思?我从没见过

于 2019-04-19T02:24:37.870 回答