在 i3wm 中使 Guake 浮动

在 i3wm 中使 Guake 浮动

我想在i3下默认Guake作为浮动窗口打开。我在 ~/.i3/config 下创建了一个条目,内容如下。

我的代码是 -

for_window [class="guake"] floating enable

我的窗口 xprop 是 -

$ xprop
GDK_TIMESTAMP_PROP(GDK_TIMESTAMP_PROP) = 0x61
WM_STATE(WM_STATE):
                window state: Normal
                icon window: 0x0
_NET_WM_DESKTOP(CARDINAL) = 4294967295
_NET_WM_STATE(ATOM) = _NET_WM_STATE_ABOVE, _NET_WM_STATE_STICKY, _NET_WM_STATE_SKIP_TASKBAR, _NET_WM_STATE_SKIP_PAGER
WM_HINTS(WM_HINTS):
                Client accepts input or input focus: True
                Initial state is Normal State.
                window id # of group leader: 0x1200001
XdndAware(ATOM) = BITMAP
_MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) = 0x6c, 0x0, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0
_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x2, 0x0, 0x0, 0x0, 0x0
_NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 18874401
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
_NET_WM_USER_TIME(CARDINAL) = 3768611
_NET_WM_USER_TIME_WINDOW(WINDOW): window id # 0x1200020
WM_CLIENT_LEADER(WINDOW): window id # 0x1200001
_NET_WM_PID(CARDINAL) = 1265
WM_LOCALE_NAME(STRING) = "en_US.UTF-8"
WM_CLIENT_MACHINE(STRING) = "class-VirtualBox"
WM_NORMAL_HINTS(WM_SIZE_HINTS):
                program specified location: 0, 0
                program specified minimum size: 1 by 1
                window gravity: North
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST
WM_CLASS(STRING) = "guake", "Main.py"
WM_ICON_NAME(STRING) = "Guake Terminal"
_NET_WM_ICON_NAME(UTF8_STRING) = "Guake Terminal"
WM_NAME(STRING) = "Guake Terminal"
_NET_WM_NAME(UTF8_STRING) = "Guake Terminal"

如何让 guake 在 i3 中打开时始终浮动?

答案1

正确的命令是 -

for_window [instance="guake"] floating enable

将以上内容添加到 ~/.i3/config 中,以便 guake 正常运行和浮动。

相关内容