/!\ this script not working on vscode >= 1.98, see issue1
this script move window controls to left in linux with gnome style
you need to install vscode-custom-css
in your vscode settings:
{
...
// change were this script is located
"vscode_custom_css.imports": ["https://raw.githubusercontent.com/remigermain/vscode-controls-linux/refs/heads/main/script.js"],
// needed to change to custom style
"window.titleBarStyle": "custom",
// important to disable native controls
"window.experimentalControlOverlay": false
}
next restart your vscode in sudo mode or follow the extentions instructions.
# run vscode in sudo
sudo chown -R $(whoami) "$(which codium 2>/dev/null || which code)"
sudo chown -R $(whoami) /usr/share/$(which codium &>/dev/null && echo "codium" || echo "code")
# in vscode open command palette
Reload custom CSS and JS