0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Ubuntu環境でVSCodeを半透明にする方法

Last updated at Posted at 2026-01-10

TL;DR

方法は2つ

1: 手動でクリックして透明化

transset 0.8
# And then, you touch VS Code window

2: コマンド一発で自動透明化

for id in $(xdotool search --class "code"); do transset -i $id 0.8; done

これはなに

Ubuntuで作業中、エディタを透かしてブラウザやターミナルを見たい時のための設定備忘録です。

必要なツールのインストール

まずは透明度を操作する transset と、ウィンドウ特定を自動化する xdotool をインストールします。

sudo apt update
sudo apt install x11-apps xdotool

方法 1: 手動でクリックして透明化

コマンド実行後、マウスカーソルが「+」に変わるので、透明にしたいVSCodeのウィンドウをクリックします。

transset 0.8
  • 0.8 は不透明度です(0.0で完全透明、1.0で不透明)。

方法 2: コマンド一発で自動透明化

VSCodeのウィンドウIDを自動取得して適用します。
複数ウィンドウが開いていても一括で反映可能です。

for id in $(xdotool search --class "code"); do transset -i $id 0.8; done

公式ドキュメント

余談

下記の拡張機能を使えば、MacOSなどは透明化できますがUbuntuは対応していません。
そのため、色々調べていてこの方法を見つけたので共有をしました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?