This script moves the window controls (close, minimize, and maximize buttons) to the left.
- Shape was created in a similar form to the Whitesur theme.
- Active windows use red, yellow, and green controls.
- Hovering an active control reveals its centered action glyph.
- Inactive windows use muted gray controls.
applycreates byte-for-byte backups before changing VS Code files;restoreputs back the backup for the currently installed VS Code version.
Caution
This is a binary-bundle patch for VS Code 1.130.x on Linux. Do not run it against another version. VS Code updates can overwrite the patched files; rerun apply only after verifying that the script supports the new version.
Use the Microsoft VS Code Linux package installed at /usr/share/code and the distribution-provided Node.js interpreter at /usr/bin/node. For safety, this version patches only that standard system location.
If /usr/bin/node is missing, install your distribution's Node.js package first. On Debian or Ubuntu:
sudo apt install nodejsSet these user settings before applying the patch:
Clone this repository and run:
sudo /usr/bin/node "$PWD/script.js" applyThe script validates that resources/app/package.json reports a 1.130.x version, then changes only these two bundle files and creates adjacent backup files:
resources/app/out/vs/workbench/workbench.desktop.main.jsresources/app/out/vs/workbench/workbench.desktop.main.css
Restart VS Code completely after applying the patch.
Restore the exact files saved before the first apply:
sudo /usr/bin/node "$PWD/script.js" restoreCheck what the script would do without writing files:
/usr/bin/node script.js apply --dry-runThis version replaces the earlier vscode-custom-css approach, which was tied to VS Code 1.97.2 and older DOM structure. It does not modify GNOME settings, Electron window creation, or any VS Code user files beyond the two titlebar settings shown above.
{ "window.titleBarStyle": "custom", "window.controlsStyle": "custom" }