Ubuntu 中可以通过图形化的方式设置 gnome-terminal 的透明度,但是在 Debian 系列中无法通过这种方式设置。查询了许多资料,发现可以在 shell脚本中通过 xprop 设置终端的透明度,如 ~/.bashrc 等。
代码如下:
TRANSPARENCY_HEX=$(printf 0x%x $((0xffffffff * 70 / 100)))
if [ -n "$WINDOWID" ]; then
xprop -id "$WINDOWID" -f _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY "$TRANSPARENCY_HEX"
else
windowid=$(xprop -root | grep "_NET_ACTIVE_WINDOW(WINDOW)" | cut -d ' ' -f 5)
xprop -id "$windowid" -f _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY "$TRANSPARENCY_HEX"
fi
通过调整 TRANSPARENCT_HEX 中的值可以调整透明度。
debian12也适用
Loved this article! It’s both insightful and entertaining. For more, check out: EXPLORE FURTHER. What are your thoughts?
hello there and thank you for your info – I have definitely picked up something new from right here.
I did however expertise several technical issues
using this website, since I experienced to reload the website lots of times previous to I could get
it to load properly. I had been wondering if your web host is OK?
Not that I’m complaining, but slow loading instances times
will very frequently affect your placement in google and could
damage your high quality score if advertising and marketing with Adwords.
Well I am adding this RSS to my email and could look out for much more of your respective intriguing content.
Make sure you update this again very soon.. Escape room lista
I was examining some of your posts on this website and I think this
site is rattling instructive! Retain posting.Leadership