[英]Fade unfocused GNU Emacs frame (X window)
Is it possible to make GNU Emacs 24 dim unfocused windows a bit? 是否可以使GNU Emacs 24稍微模糊不聚焦的窗口? For example, I can set my
rxvt-unicode
clients to become darker when their windows don't have focus with this string in ~/.Xdefaults
: 例如,我可以将我的
rxvt-unicode
客户端设置为当窗口的焦点不在~/.Xdefaults
时,它们的窗口变暗:
URxvt*fading: 50
It greatly reduces discomfort when you have a lot of terminal windows on 2+ monitors. 当2个以上的显示器上有很多终端窗口时,它将大大减少不适感。 I would like a similar feature in Emacs, but couldn't google up anything.
我想要Emacs中的类似功能,但是不能用Google搜索任何内容。
Here is how it looks like with urxvt (png, 1.43 MB) urxvt的外观如下(png,1.43 MB)
I do something similar: 我做类似的事情:
(set-frame-parameter (selected-frame) 'alpha '(100 60))
(aput 'default-frame-alist 'alpha '(100 60))
which sets the alpha value of the selected frame to 100, and an unselected frame to 60, making it somewhat transparent. 它将选定帧的alpha值设置为100,将未选定帧的alpha值设置为60,使其有些透明。 I haven't tested to confirm that works for other frame-parameters.
我还没有进行测试以确认是否适用于其他框架参数。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.