diff --git a/bin/swap_mode.sh b/bin/swap_mode.sh index 2debbd4..521e853 100755 --- a/bin/swap_mode.sh +++ b/bin/swap_mode.sh @@ -66,7 +66,7 @@ if [ "$(uname)" != "Darwin" ]; then # GTK Theme gsettings set org.gnome.desktop.interface gtk-theme '' gsettings set org.gnome.desktop.interface gtk-theme 'WhiteSur-Dark' - gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark' + gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark' sed -i -e 's@Net/ThemeName.*@Net/ThemeName "WhiteSur-Dark"@' ~/.xsettingsd # Rofi theme @@ -83,12 +83,23 @@ if [ "$(uname)" != "Darwin" ]; then s/^([[:space:]]*foreground[[:space:]]*=[[:space:]]*).*/\1"#BBBBBB"/ }' "$DUNST_CONF" + # Plasma theme + if [[ "$XDG_CURRENT_DESKTOP" == "KDE" ]]; then + plasma-apply-lookandfeel -a com.github.vinceliuice.WhiteSur-dark + plasma-apply-cursortheme phinger-cursors-dark + kwriteconfig6 --file kdeglobals --group Icons --key Theme Papirus-Dark + kwriteconfig6 --file ksplashrc --group KSplash --key Theme Breeze + kquitapp6 plasmashell + sleep 0.3 + kstart5 plasmashell + fi + else echo "Swapping to light mode" # GTK Theme gsettings set org.gnome.desktop.interface gtk-theme '' gsettings set org.gnome.desktop.interface gtk-theme 'WhiteSur-Light' - gsettings set org.gnome.desktop.interface color-scheme 'default' + gsettings set org.gnome.desktop.interface color-scheme 'default' sed -i -e 's@Net/ThemeName.*@Net/ThemeName "WhiteSur-Light"@' ~/.xsettingsd # Swap dunst urgency_low background and foreground sed -E -i '/^\[urgency_low\]/,/^\[.*\]/ { @@ -104,7 +115,17 @@ if [ "$(uname)" != "Darwin" ]; then # Rofi theme sed -i -e "s/dark.rasi/light.rasi/" $HOME/.config/rofi/config.rasi - + # + # Plasma theme + if [[ "$XDG_CURRENT_DESKTOP" == "KDE" ]]; then + plasma-apply-lookandfeel -a com.github.vinceliuice.WhiteSur-alt + plasma-apply-cursortheme phinger-cursors-dark + kwriteconfig6 --file kdeglobals --group Icons --key Theme Papirus + kwriteconfig6 --file ksplashrc --group KSplash --key Theme Breeze + kquitapp6 plasmashell + sleep 0.3 + kstart6 plasmashell + fi fi killall dunst diff --git a/config/ghostty/config b/config/ghostty/config index 18755a9..db4b4ad 100644 --- a/config/ghostty/config +++ b/config/ghostty/config @@ -3,7 +3,7 @@ font-family = "IosevkaTerm Nerd Font Propo" font-style = "Regular" font-size = 11 background-opacity = 1.0 -window-decoration = none +window-decoration = auto confirm-close-surface = false # Auto light/dark theme pair that matches your two palettes below diff --git a/home/.zshrc b/home/.zshrc index a136b9e..98ba654 100644 --- a/home/.zshrc +++ b/home/.zshrc @@ -34,6 +34,7 @@ source ~/.profile #============================================================================== alias clip2png="xclip -selection clipboard -target image/png -out" +alias k="kubectl" @@ -103,6 +104,12 @@ claude() { npm 2>&1 1>/dev/null claude "$@" } + +codex() { + unset -f codex + npm 2>&1 1>/dev/null + codex "$@" +} # ghcup [ -f "/home/aselimov/.ghcup/env" ] && . "/home/aselimov/.ghcup/env" # ghcup-env @@ -159,3 +166,11 @@ fi if [[ -z "$TMUX" ]] && [[ -n "$PS1" ]]; then tmux attach -t dev || tmux new -s dev fi + +# pnpm +export PNPM_HOME="/home/aselimov/.local/share/pnpm" +case ":$PATH:" in + *":$PNPM_HOME:"*) ;; + *) export PATH="$PNPM_HOME:$PATH" ;; +esac +# pnpm end