【发布时间】:2021-08-13 04:06:33
【问题描述】:
我大约一周前安装了 Awesome WM。从那时起,我一直试图在启动时按特定顺序放置终端客户端(裸终端和 vim、vim、htop)。这是我要实现的目标的直观表示:
########################
# # htop #
# ###########
# vim # bare #
# ###########
# # vifm #
########################
我已经设法将 vim 放置在正确的位置,但其他窗口的放置顺序似乎是任意的,每次重新启动都会改变。这是我的 autostart.lua 配置的内容:
1 local awful = require("awful")
1
2 awful.spawn.single_instance(terminal.."-e xmodmap ~/.Xmodmap; exit")
3 awful.spawn.single_instance("brave-browser", {
4 fullscreen = true,
5 focus = true
6 })
7
8 awful.spawn(terminal.." -e vim", {
9 tag = "edit",
10 placement = awful.placement.left,
11 callback = function(c) awful.client.setmaster(c) end})
12 awful.spawn(terminal.." -e htop", {
13 tag = "edit",
14 height = 80,
15 placement = awful.placement.top_right})
16 awful.spawn(terminal, {
17 tag = "edit",
18 placement = awful.placement.right})
19 awful.spawn(terminal.." -e vifm", {
20 tag = "edit",
21 placement = awful.placement.bottom_right})
22
23 awful.spawn(terminal.." -e neomutt", {
24 tag = "communication",
25 fullscreen = true })
26
27 awful.spawn("Spotify", { tag = "read" })
我遇到问题的标签布局是“平铺”。我正在使用 Awesome v4.3。我应该添加什么客户端属性来获得所需的行为?
【问题讨论】:
标签: lua awesome-wm