在 Konsole 中动态设置透明度

发布于 2024-09-24 13:07:13 字数 168 浏览 3 评论 0原文

我喜欢 Konsole 上的透明效果,但当我在 vim 中时,我需要集中注意力,这可能会分散注意力。有没有办法根据我当前的窗口是否在 vim 中动态地打开和关闭透明度? 也许我可以运行一个脚本来代替 vim,如下所示: 将 konsole 透明度设置为关闭; 维姆; 将 konsole 透明度设置为打开; 有什么想法吗?

I like the transparency effect on Konsole, but when I'm in vim I need to focus and it can be distracting. Is there a way to dynamically turn the transparency on and off, depending on whether my current window is in vim?
Maybe I could run a script in place of vim that looks like this:
set konsole transparency off;
vim;
set konsole transparency on;
Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

漫雪独思 2024-10-01 13:07:14

启动一个新的 konsole

konsole --notransparency -e vim

来更改您需要处理 dbus 的当前 konsole 属性。 脚本 Konsole

Launch a new konsole with

konsole --notransparency -e vim

for changing current konsole properties you need to deal with dbus. Scripting Konsole

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文