configs

configs
git clone https://git.prime8.dev/configs.git
Log | Files | Refs | README

commit 344da9620d9babe4d9195e7d6d00dfd261643983
parent d0af9b26b46bc3f59223d768b47dba043145d45c
Author: Damian Myrda <damian@prime8.dev>
Date:   Tue, 20 Jan 2026 21:51:55 -0600

add linux support

Diffstat:
MBrewfile | 36++++++------------------------------
Mlink.sh | 6++----
Mprograms/btop/btop.conf | 39+++++++++++++++++++++++++++++++++++++++
Mprograms/fish/config.fish | 1+
Mprograms/fish/fish_plugins | 1-
Mprograms/zed/settings.json | 18+++++-------------
Msetup.sh | 56+++++++++++++++++++++++---------------------------------
7 files changed, 76 insertions(+), 81 deletions(-)

diff --git a/Brewfile b/Brewfile @@ -1,14 +1,9 @@ -# Taps -tap "withgraphite/tap" -tap "mongodb/brew" - # CLI Tools brew "bat" brew "btop" brew "eza" brew "fish" brew "git" -brew "gnupg" brew "neovim" brew "neovim-remote" brew "pfetch" @@ -19,7 +14,7 @@ brew "zoxide" ## install 1password-cli manually # Development -brew "bun" +brew "oven-sh/bun/bun" brew "fnm" brew "gh" brew "go" @@ -29,25 +24,15 @@ brew "opencode" brew "python" brew "yarn" -# Work (Mandolin) -brew "doppler" -brew "mongodb-community" -brew "redis" -brew "temporal" -brew "withgraphite/tap/graphite" -cask "microsoft-office" -cask "mongodb-compass" - # Apps - Communication -# cask "beeper" -cask "microsoft-teams" -# cask "signal" +cask "beeper" +cask "signal" cask "slack" # Apps - Productivity cask "chatgpt" cask "grammarly-desktop" -# cask "libreoffice" +cask "libreoffice" cask "notion" # Apps - Utilities @@ -55,23 +40,14 @@ cask "1password" cask "balenaetcher" cask "iina" cask "postman" -# cask "soduto" +cask "soduto" cask "spotify" cask "tailscale-app" -# cask "thinkorswim" cask "wakatime" # Desktop Environment -cask "alt-tab" -cask "ghostty" -cask "jordanbaird-ice" cask "zed" -cask "orion" -cask "raycast" - -# Input -cask "karabiner-elements" -cask "scroll-reverser" +cask "zen" # Fonts cask "font-jetbrains-mono-nerd-font" diff --git a/link.sh b/link.sh @@ -42,15 +42,13 @@ link_config "$PROGRAMS_DIR/gh/config.yml" "$CONFIG_DIR/gh/config.yml" link_config "$PROGRAMS_DIR/opencode/opencode.json" "$CONFIG_DIR/opencode/opencode.json" link_config "$PROGRAMS_DIR/opencode/command" "$CONFIG_DIR/opencode/command" link_config "$PROGRAMS_DIR/opencode/plugin" "$CONFIG_DIR/opencode/plugin" -link_config "$PROGRAMS_DIR/opencode/oh-my-opencode.json" "$CONFIG_DIR/opencode/oh-my-opencode.json" # Karabiner link_config "$PROGRAMS_DIR/karabiner/karabiner.json" "$CONFIG_DIR/karabiner/karabiner.json" link_config "$PROGRAMS_DIR/karabiner/assets" "$CONFIG_DIR/karabiner/assets" # Zed -link_config "$PROGRAMS_DIR/zed/settings.json" "$CONFIG_DIR/zed/settings.json" -link_config "$PROGRAMS_DIR/zed/keymap.json" "$CONFIG_DIR/zed/keymap.json" -link_config "$PROGRAMS_DIR/zed/opencode" "$CONFIG_DIR/zed/opencode" +link_config "$PROGRAMS_DIR/zed/settings.json" "$HOME/.var/app/dev.zed.Zed/config/zed/settings.json" +link_config "$PROGRAMS_DIR/zed/keymap.json" "$HOME/.var/app/dev.zed.Zed/config/zed/keymap.json" echo "✅ Config symlinks complete!" diff --git a/programs/btop/btop.conf b/programs/btop/btop.conf @@ -40,6 +40,9 @@ graph_symbol = "braille" # Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty". graph_symbol_cpu = "default" +# Graph symbol to use for graphs in gpu box, "default", "braille", "block" or "tty". +graph_symbol_gpu = "default" + # Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty". graph_symbol_mem = "default" @@ -103,6 +106,9 @@ cpu_graph_upper = "Auto" #* Select from a list of detected attributes from the options menu. cpu_graph_lower = "Auto" +#* If gpu info should be shown in the cpu box. Available values = "Auto", "On" and "Off". +show_gpu_info = "Auto" + #* Toggles if the lower CPU graph should be inverted. cpu_invert_lower = true @@ -142,6 +148,9 @@ base_10_sizes = false #* Show CPU frequency. show_cpu_freq = true +#* How to calculate CPU frequency, available values: "first", "range", "lowest", "highest" and "average". +freq_mode = "first" + #* Draw a clock at top of screen, formatting according to strftime, empty string to disable. #* Special formatting: /host = hostname | /user = username | /uptime = system uptime clock_format = "%X" @@ -231,3 +240,33 @@ log_level = "WARNING" #* Automatically save current settings to config file on exit. save_config_on_exit = true + +#* Measure PCIe throughput on NVIDIA cards, may impact performance on certain cards. +nvml_measure_pcie_speeds = true + +#* Measure PCIe throughput on AMD cards, may impact performance on certain cards. +rsmi_measure_pcie_speeds = true + +#* Horizontally mirror the GPU graph. +gpu_mirror_graph = true + +#* Set which GPU vendors to show. Available values are "nvidia amd intel" +shown_gpus = "nvidia amd intel" + +#* Custom gpu0 model name, empty string to disable. +custom_gpu_name0 = "" + +#* Custom gpu1 model name, empty string to disable. +custom_gpu_name1 = "" + +#* Custom gpu2 model name, empty string to disable. +custom_gpu_name2 = "" + +#* Custom gpu3 model name, empty string to disable. +custom_gpu_name3 = "" + +#* Custom gpu4 model name, empty string to disable. +custom_gpu_name4 = "" + +#* Custom gpu5 model name, empty string to disable. +custom_gpu_name5 = "" diff --git a/programs/fish/config.fish b/programs/fish/config.fish @@ -4,6 +4,7 @@ set -g BROWSER "open -a orion" # path set -gx PATH "$HOME/.local/bin" $PATH +eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv fish)" # 1password ssh agent set -gx SSH_AUTH_SOCK ~/.1password/agent.sock diff --git a/programs/fish/fish_plugins b/programs/fish/fish_plugins @@ -1,3 +1,2 @@ jorgebucaran/fisher ilancosman/tide@v6 -ik11235/wakatime.fish diff --git a/programs/zed/settings.json b/programs/zed/settings.json @@ -1,5 +1,6 @@ { // Editor + "buffer_font_family": "JetBrainsMono Nerd Font", "lsp": { "vtsls": { "settings": { @@ -41,7 +42,6 @@ "dock": "bottom", "default_width": 480, "scroll_multiplier": 1.0, - "close_on_exit": "always", "shell": { "program": "fish", }, @@ -60,9 +60,7 @@ "OpenCode": { "type": "custom", "command": "opencode", - "args": [ - "acp" - ], + "args": ["acp"], }, }, // Privacy @@ -78,19 +76,13 @@ // Linting "languages": { "JavaScript": { - "language_servers": [ - "vtsls" - ], + "language_servers": ["vtsls"], }, "TypeScript": { - "language_servers": [ - "vtsls" - ], + "language_servers": ["vtsls"], }, "TSX": { - "language_servers": [ - "vtsls" - ], + "language_servers": ["vtsls"], }, }, } diff --git a/setup.sh b/setup.sh @@ -3,25 +3,28 @@ set -e SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -echo "🔧 Starting macOS setup..." - -# Hostname -# HOSTNAME="macbox" -# echo "🖥️ Setting system hostname to '$HOSTNAME'..." -# sudo scutil --set HostName "$HOSTNAME" && echo "✅ HostName set" -# sudo scutil --set ComputerName "$HOSTNAME" && echo "✅ ComputerName set" -# sudo scutil --set LocalHostName "$HOSTNAME" && echo "✅ LocalHostName set" - -# Dock -echo "📦 Configuring Dock preferences..." -defaults write com.apple.dock orientation -string "left" && echo "✅ Dock position set to bottom" -defaults write com.apple.dock autohide -bool true && echo "✅ Dock autohide enabled" -defaults write com.apple.dock autohide-delay -float 0 && echo "✅ Dock autohide delay set" -defaults write com.apple.dock no-bouncing -bool true && echo "✅ Dock bounce disabled" -killall Dock && echo "🔄 Dock restarted" - -# Windows -defaults write -g NSWindowShouldDragOnGesture -bool true && echo "✅ Window drag by gesture enabled" +# Detect OS and run appropriate setup +if [[ "$OSTYPE" == "darwin"* ]]; then + echo "🔧 Starting macOS setup..." + + # Hostname + HOSTNAME="macbox" + echo "🖥️ Setting system hostname to '$HOSTNAME'..." + sudo scutil --set HostName "$HOSTNAME" && echo "✅ HostName set" + sudo scutil --set ComputerName "$HOSTNAME" && echo "✅ ComputerName set" + sudo scutil --set LocalHostName "$HOSTNAME" && echo "✅ LocalHostName set" + + # Dock + echo "📦 Configuring Dock preferences..." + defaults write com.apple.dock orientation -string "left" && echo "✅ Dock position set to bottom" + defaults write com.apple.dock autohide -bool true && echo "✅ Dock autohide enabled" + defaults write com.apple.dock autohide-delay -float 0 && echo "✅ Dock autohide delay set" + defaults write com.apple.dock no-bouncing -bool true && echo "✅ Dock bounce disabled" + killall Dock && echo "🔄 Dock restarted" + + # Windows + defaults write -g NSWindowShouldDragOnGesture -bool true && echo "✅ Window drag by gesture enabled" +fi # Homebrew echo "🍺 Installing Homebrew packages with Brewfile..." @@ -29,7 +32,6 @@ if ! command -v brew >/dev/null 2>&1; then echo "❌ Homebrew not found. Please install it first: https://brew.sh" exit 1 fi - brew update && echo "✅ Homebrew updated" brew upgrade && echo "✅ Homebrew upgraded" BREWFILE_PATH="./Brewfile" @@ -44,16 +46,4 @@ brew cleanup && echo "✅ Homebrew cleanup completed" # Symlink configs "$SCRIPT_DIR/link.sh" -# Set fish as default shell -echo "🐟 Setting fish as default shell..." -FISH_PATH="$(which fish)" -if ! grep -q "$FISH_PATH" /etc/shells; then - echo "$FISH_PATH" | sudo tee -a /etc/shells >/dev/null -fi -if [ "$SHELL" != "$FISH_PATH" ]; then - chsh -s "$FISH_PATH" && echo "✅ Default shell set to fish" -else - echo "✅ Fish is already the default shell" -fi - -echo "✅ macOS setup script completed!" +echo "✅ Setup script completed!"