- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
多年来我一直在尝试来自 KDE/MATE 的很棒的东西,我真的很喜欢它。在我之前的工作流程中,我真的只遗漏了一件事。
有时我会使用具有大量 float 窗口的应用程序。我发现在 float WM 中非常有用的是卷起或遮蔽窗口的能力,基本上只保留应用程序的标题栏但隐藏其窗口内容。
这在 awesome 中可能吗?或者是否有其他选项,如标签窗口(如 i3 中的)或您有其他建议吗?
提前致谢!
最佳答案
Is this possible in awesome?
理论上是的,但实际上我不知道有谁实现了必要的魔法来使这项工作正常进行。一个半好的一阶近似值可能是将窗口的大小调整为高度 1。
未经测试的草图:
function toggle_roll_up_or_shade(c)
if c.shade then
c:geometry{ height = c.shade }
c.shade = nil
c.size_hints_honor = c.size_hints_honor_before_shade
elseif c.floating then
c.shade = c.height
c.size_hints_honor_before_shade = c.size_hints_honor
c.size_hints_honor = false
c:geometry{ height = 1 }
end
end
然后上面的函数将绑定(bind)到一些键,类似于默认配置中 Mod+Ctrl+Space 绑定(bind)到 awful.client.floating.toggle
的方式。
这是一个可能适用于 AwesomeWM v3.5 的变体:
function toggle_roll_up_or_shade(c)
if awful.client.property.get(c, "shade") then
c:geometry{ height = c.shade }
awful.client.property.set(c, "shade", nil)
c.size_hints_honor = c.size_hints_honor_before_shade
elseif c.floating then
client.property.set(c, "shade", c.height)
client.property.set(c, "size_hints_honor_before_shade", c.size_hints_honor)
c.size_hints_honor = false
c:geometry{ height = 1 }
end
end
另外,如果你想获得标题栏的高度,你应该可以使用local _, height = c:titlebar_top()
。我不确定这是否也适用于 AwesomeWM v3.5。
关于linux - 卷起/遮挡 float 窗口真棒?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55594605/
我刚刚开始使用 Awesome WM。一切看起来都很棒,尤其是我的辅助显示器的多头显示器,唯一令人困惑的是主窗口计数和非主窗口的列数。关于它应该如何工作的想法一切都很清楚,但是当需要练习时却非常困难,
我在react-table行中使用垃圾桶图标,我想在单击该图标时删除该行(我对HTML/JS的了解非常基础)。但是,当我将 onClick 处理程序放在图标内或图标周围时,它会在渲染页面时触发,而在单
在 float 布局中,或者当窗口在任何其他布局中 float 时,在最大化时无法移动它们/调整它们的大小。然而,我希望能够将它们拖出最大化状态/调整它们的大小。这似乎不起作用: awful.butt
在 awesome wm当我按下 mod-q我杀死了当前窗口。我想弹出一个是/否对话框来确认操作: if zenity --question --title='Quit?' --text='Quit?
我使用 Awesome 作为我的 WM,但我不知道如何让我的终端窗口占据我屏幕上的整个平铺空间。我的分辨率是 1366x768。 最佳答案 我认为这个问题已经在 FAQ [ 3 ] 很棒的 wm。 您
来源:https://github.com/judasn/IntelliJ-IDEA-Tutorial/blob/master/jrebel-setup.md 在 Java Web 开发中, 一般
我有两个显示器,开箱即用的 AwesomeWM 完全按照我喜欢的方式工作。但是,我想启动一个特别宽的应用程序 (avidemux),以便它在两个屏幕上水平延伸。 desired: app across
我是一名优秀的程序员,十分优秀!