Skip to content

Commit

Permalink
Store VSCode settings, add launcher for Wayland
Browse files Browse the repository at this point in the history
  • Loading branch information
fortes committed Sep 17, 2024
1 parent 505a920 commit b5c4b6c
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/install_vscode
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,13 @@ main() {
echo "VSCode already installed, skipping"
fi

# TODO: On Mac, need to do `--user-data-dir ~/.config/Code` when launching

echo "Installing extensions"
for extension in "${EXTENSIONS[@]}"; do
echo "Installing extension: ${extension}"
code --install-extension ${extension}
done
code --install-extension "${extension}"
done
}

main
Expand Down
7 changes: 7 additions & 0 deletions stowed-files/Code/.config/Code/User/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"github.copilot.enable": {
"markdown": true
},
"files.autoSave": "afterDelay"
}

29 changes: 29 additions & 0 deletions stowed-files/Code/.local/share/applications/code.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[Desktop Entry]
Name=Visual Studio Code
Comment=Code Editing. Redefined.
GenericName=Text Editor
# Make sure to use wayland
Exec=code --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform-hint=auto %F
Icon=vscode
Type=Application
StartupNotify=false
StartupWMClass=Code
Categories=TextEditor;Development;IDE;
MimeType=application/x-code-workspace;
Actions=new-empty-window;
Keywords=vscode;

[Desktop Action new-empty-window]
Name=New Empty Window
Name[de]=Neues leeres Fenster
Name[es]=Nueva ventana vacía
Name[fr]=Nouvelle fenêtre vide
Name[it]=Nuova finestra vuota
Name[ja]=新しい空のウィンドウ
Name[ko]=새 빈 창
Name[ru]=Новое пустое окно
Name[zh_CN]=新建空窗口
Name[zh_TW]=開新空視窗
# Make sure to use wayland
Exec=code --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform-hint=auto --new-window %F
Icon=vscode

0 comments on commit b5c4b6c

Please sign in to comment.