Set the background transparency of linux terminal konsole and vim

Author: Too handsome to go out c++hahatang31843264

First, you need to enable 3D desktop effects in Linux. You can search online for the method, which is roughly to install the compiz component.

Konsole terminal sets the background image or sets the background transparency as follows:

Open the terminal--Settings---Manage configuration scheme---Edit configuration scheme----Appearance-----Edit-------Background transparency/wallpaper are set separately

After setting, you must restart konsole for it to take effect.

vim sets the background transparency (depends on the transparency setting of the terminal):

Open .vimrc and add

hi Normal  ctermfg=252 ctermbg=none

In this way, you can see the desktop wallpaper in the terminal and vim.

In the previous picture, when konsole is set to 10% transparency, the effect after opening the file in vim.


Guess you like

Origin blog.csdn.net/zmlovelx/article/details/8612787