From b781b13b0edebbefc68da57adfd2dc89564ad2cc Mon Sep 17 00:00:00 2001 From: Tine Date: Thu, 18 Apr 2024 18:50:00 +0200 Subject: [PATCH] feat: new font, packages and code config --- code/extensions.txt | 10 ++++++++++ code/settings.json | 10 ++++++++++ install.sh | 5 +++++ kitty/kitty.conf | 10 ++++------ nix/core.nix | 10 ++++++++-- vscode.sh | 39 +++++++++++++++++++++++++++++++++++++++ 6 files changed, 76 insertions(+), 8 deletions(-) create mode 100644 code/extensions.txt create mode 100644 code/settings.json create mode 100755 vscode.sh diff --git a/code/extensions.txt b/code/extensions.txt new file mode 100644 index 0000000..8d3838a --- /dev/null +++ b/code/extensions.txt @@ -0,0 +1,10 @@ +eamodio.gitlens +github.copilot +github.copilot-chat +github.vscode-pull-request-github +golang.go +ms-vscode-remote.remote-containers +ms-vscode-remote.remote-ssh +ms-vscode-remote.remote-ssh-edit +ms-vscode.remote-explorer +mvllow.rose-pine diff --git a/code/settings.json b/code/settings.json new file mode 100644 index 0000000..79cd4e2 --- /dev/null +++ b/code/settings.json @@ -0,0 +1,10 @@ +{ + "workbench.colorTheme": "Rosé Pine Dawn", + "window.menuBarVisibility": "toggle", + "editor.fontLigatures": true, + "workbench.preferredDarkColorTheme": "Rosé Pine Moon", + "workbench.preferredLightColorTheme": "Rosé Pine Dawn", + "window.titleBarStyle": "custom", + "window.customTitleBarVisibility": "auto", + "editor.fontFamily": "'mnts.dev', 'Droid Sans Mono', 'monospace', monospace" +} \ No newline at end of file diff --git a/install.sh b/install.sh index a31d31e..f5d68cd 100755 --- a/install.sh +++ b/install.sh @@ -118,3 +118,8 @@ sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug. nvim --headless +PlugInstall +qa || true nvim --headless +PlugUpdate +qa || true nvim --headless +PlugUpgrade +qa || true + +if command -v code; then + echo_header "==[host] Installing vscode extensions" + ./code/vscode-extensions.sh --install +fi diff --git a/kitty/kitty.conf b/kitty/kitty.conf index ad468b6..18d312b 100644 --- a/kitty/kitty.conf +++ b/kitty/kitty.conf @@ -1,7 +1,7 @@ -font_family Liga Operator Mono SSm Book Nerd Font -bold_font Liga Operator Mono SSm Medium Nerd Font -italic_font Liga Operator Mono SSm BookItalic Nerd Font -bold_italic_font Liga Operator Mono SSm MediumItalic Nerd Font +font_family mnts.dev Regular +bold_font mnts.dev Bold +italic_font mnts.dev Italic +bold_italic_font mnts.dev Bold Italic disable_ligatures never hide_window_decorations yes @@ -12,8 +12,6 @@ include themes/rose-pine-dawn.conf include theme.conf # Tab Bar -tab_bar_style separator -tab_separator "" tab_title_template " {fmt.fg.red}{bell_symbol}{activity_symbol}{fmt.fg.tab}{'/'.join(tab.active_oldest_wd.split('/')[-2:])} " # Layouts diff --git a/nix/core.nix b/nix/core.nix index 182b489..6363196 100644 --- a/nix/core.nix +++ b/nix/core.nix @@ -22,13 +22,12 @@ bat tmux jq + yq fd fzf gnumake age sops - jq - yq http-prompt watchexec devbox @@ -37,6 +36,9 @@ sqlfluff tree redis + dive + ctop + bottom # Nodejs nodejs_20 @@ -91,6 +93,10 @@ recursive = true; source = ../nvim; }; + "${config.xdg.configHome}/Code/User" = { + recursive = true; + source = ../code; + }; }; programs.gh = { diff --git a/vscode.sh b/vscode.sh new file mode 100755 index 0000000..6c465f1 --- /dev/null +++ b/vscode.sh @@ -0,0 +1,39 @@ +#!/bin/bash +set -euo pipefail + +ACTION= +while [[ $# -gt 0 ]]; do + case $1 in + --install) + ACTION=install + break + shift + ;; + --store) + ACTION=store + break + shift + ;; + -h | --help) + echo "Usage: vscode.sh [--install|--store]" + exit 0 + ;; + -* | --*) + echo "Unknown option $1" + exit 1 + ;; + esac +done +if [ -z "$ACTION" ]; then + echo "No action specified" + echo "Usage: vscode.sh [--install|--store]" + exit 1 +fi + +if [ "$ACTION" = "install" ]; then + for extension in $(cat code/extensions.txt); do + code --install-extension $extension + done +elif [ "$ACTION" = "store" ]; then + code --list-extensions >code/extensions.txt +fi