From 607978dbf28097d2ede720638b186f4e98050886 Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Thu, 18 Sep 2025 23:30:10 -0400 Subject: [PATCH 1/3] Remove ST configuration and change GTK themes --- bin/swap_mode.sh | 47 ++++------------------------------------------- home/.zshrc | 8 ++++---- 2 files changed, 8 insertions(+), 47 deletions(-) diff --git a/bin/swap_mode.sh b/bin/swap_mode.sh index f4a9b27..2130c0c 100755 --- a/bin/swap_mode.sh +++ b/bin/swap_mode.sh @@ -62,58 +62,19 @@ if [ "$(uname)" != "Darwin" ]; then if [ "$MODE" == "dark" ]; then echo "Swapping to dark mode" # GTK Theme - sed -i -e 's@Net/ThemeName.*@Net/ThemeName "Orchis-Grey-Dark"@' ~/.xsettingsd + gsettings set org.gnome.desktop.interface gtk-theme '' + gsettings set org.gnome.desktop.interface gtk-theme 'WhiteSur-Dark' # Rofi theme sed -i -e "s/light.rasi/dark.rasi/" $HOME/.config/rofi/config.rasi - # Swap ST colors and reset - echo " st*color0:#191919 - st*color1:#DE6E7C - st*color2:#819B69 - st*color3:#B77E64 - st*color4:#6099C0 - st*color5:#B279A7 - st*color6:#66A5AD - st*color7:#BBBBBB - st*color8:#3d3839 - st*color9:#E8838F - st*color10:#8BAE68 - st*color11:#D68C67 - st*color12:#61ABDA - st*color13:#CF86C1 - st*color14:#65B8C1 - st*color15:#8e8e8e - " > ~/.Xresources - xrdb merge ~/.Xresources - killall st -s "USR1" - else echo "Swapping to light mode" # GTK Theme - sed -i -e 's@Net/ThemeName.*@Net/ThemeName "Orchis-Grey-Light"@' ~/.xsettingsd + gsettings set org.gnome.desktop.interface gtk-theme '' + gsettings set org.gnome.desktop.interface gtk-theme 'WhiteSur-Light' # Rofi theme sed -i -e "s/dark.rasi/light.rasi/" $HOME/.config/rofi/config.rasi - # # Update ST colors - echo " st*color0:#F0EDEC - st*color1:#A8334C - st*color2:#4F6C31 - st*color3:#944927 - st*color4:#286486 - st*color5:#88507D - st*color6:#3B8992 - st*color7:#2C363C - st*color8:#CFC1BA - st*color9:#94253E - st*color10:#3F5A22 - st*color11:#803D1C - st*color12:#1D5573 - st*color13:#7B3B70 - st*color14:#2B747C - st*color15:#4F5E68 - " > ~/.Xresources - xrdb merge ~/.Xresources - killall st -s "USR1" fi killall -HUP xsettingsd diff --git a/home/.zshrc b/home/.zshrc index af49b5b..d7e36d3 100644 --- a/home/.zshrc +++ b/home/.zshrc @@ -25,7 +25,7 @@ export PASSWORD_STORE_CHARACTER_SET='a-zA-Z0-9+\-$!*_=' export XDEB_PKGROOT=${HOME}/.config/xdeb # Add cuda to path -export PATH="$PATH:/usr/local/cuda-12.8/bin" +#export PATH="$PATH:/usr/local/cuda-12.8/bin" export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda-12.8/lib64" #============================================================================== @@ -129,10 +129,10 @@ if [ "$(uname)" = "Darwin" ]; then alias gemini="(source ~/.gemini_project && gemini)" export NVIM_JDTLS_JAVA_HOME="/Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home/" # I only start tmux by default on Mac because of dwm+swallow patch - if [[ -z "$TMUX" ]] && [[ -n "$PS1" ]]; then - tmux attach -t dev || tmux new -s dev - fi else alias ls="ls --classify --group-directories-first --color" fi +if [[ -z "$TMUX" ]] && [[ -n "$PS1" ]]; then + tmux attach -t dev || tmux new -s dev +fi From 66b9b394993da6f56e0ab0308479c5dcaa258b35 Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Thu, 18 Sep 2025 23:36:31 -0400 Subject: [PATCH 2/3] Add gemini lazy load --- home/.zshrc | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/home/.zshrc b/home/.zshrc index 0051c18..7552697 100644 --- a/home/.zshrc +++ b/home/.zshrc @@ -85,23 +85,31 @@ load_nvm() { # Create placeholder functions that load nvm once, then call the real command nvm() { - unset -f nvm node npm + unset -f nvm node npm gemini load_nvm nvm "$@" } node() { - unset -f nvm node npm + unset -f nvm node npm gemini load_nvm node "$@" } npm() { - unset -f nvm node npm + unset -f nvm node npm gemini load_nvm npm "$@" } +gemini() { + unset -f nvm node npm gemini + load_nvm + gemini "$@" + + +} + # ghcup [ -f "/home/aselimov/.ghcup/env" ] && . "/home/aselimov/.ghcup/env" # ghcup-env From 47b0bbbdc58058f166f64b8222cdfb7d651fc424 Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Sat, 20 Sep 2025 09:13:33 -0400 Subject: [PATCH 3/3] Fix incorrect sed command --- bin/swap_mode.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/swap_mode.sh b/bin/swap_mode.sh index 31cf960..9e23766 100755 --- a/bin/swap_mode.sh +++ b/bin/swap_mode.sh @@ -7,14 +7,14 @@ GHOSTTY_CONF="${HOME}/.config/ghostty/config" [ -f "$GHOSTTY_CONF" ] || { echo "Missing $GHOSTTY_CONF"; exit 1; } set_light_mode() { - sed -E -i '' 's/^([[:space:]]*theme[[:space:]]*=[[:space:]]*)zenwritten-dark/\1zenwritten-light/' "$GHOSTTY_CONF" - sed -E -i '' 's/(vim.g.light_mode[[:space:]]*=[[:space:]]*).*/\1true/' "$NVIM_CONF" + sed -E -i 's/^([[:space:]]*theme[[:space:]]*=[[:space:]]*)zenwritten-dark/\1zenwritten-light/' "$GHOSTTY_CONF" + sed -E -i 's/(vim.g.light_mode[[:space:]]*=[[:space:]]*).*/\1true/' "$NVIM_CONF" MODE="light" } set_dark_mode() { - sed -E -i '' 's/^([[:space:]]*theme[[:space:]]*=[[:space:]]*)zenwritten-light/\1zenwritten-dark/' "$GHOSTTY_CONF" - sed -E -i '' 's/(vim.g.light_mode[[:space:]]*=[[:space:]]*).*/\1false/' "$NVIM_CONF" + sed -E -i 's/^([[:space:]]*theme[[:space:]]*=[[:space:]]*)zenwritten-light/\1zenwritten-dark/' "$GHOSTTY_CONF" + sed -E -i 's/(vim.g.light_mode[[:space:]]*=[[:space:]]*).*/\1false/' "$NVIM_CONF" MODE="dark" }