Update colorscheme swap configuration and other small changes

This commit is contained in:
Alex Selimov 2025-11-11 21:23:30 -05:00
parent d91099eae5
commit 40b9e351e6
Signed by: aselimov
GPG key ID: 3DDB9C3E023F1F31
3 changed files with 40 additions and 4 deletions

View file

@ -66,7 +66,7 @@ if [ "$(uname)" != "Darwin" ]; then
# GTK Theme # GTK Theme
gsettings set org.gnome.desktop.interface 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 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 sed -i -e 's@Net/ThemeName.*@Net/ThemeName "WhiteSur-Dark"@' ~/.xsettingsd
# Rofi theme # Rofi theme
@ -83,12 +83,23 @@ if [ "$(uname)" != "Darwin" ]; then
s/^([[:space:]]*foreground[[:space:]]*=[[:space:]]*).*/\1"#BBBBBB"/ s/^([[:space:]]*foreground[[:space:]]*=[[:space:]]*).*/\1"#BBBBBB"/
}' "$DUNST_CONF" }' "$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 else
echo "Swapping to light mode" echo "Swapping to light mode"
# GTK Theme # GTK Theme
gsettings set org.gnome.desktop.interface 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 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 sed -i -e 's@Net/ThemeName.*@Net/ThemeName "WhiteSur-Light"@' ~/.xsettingsd
# Swap dunst urgency_low background and foreground # Swap dunst urgency_low background and foreground
sed -E -i '/^\[urgency_low\]/,/^\[.*\]/ { sed -E -i '/^\[urgency_low\]/,/^\[.*\]/ {
@ -104,7 +115,17 @@ if [ "$(uname)" != "Darwin" ]; then
# Rofi theme # Rofi theme
sed -i -e "s/dark.rasi/light.rasi/" $HOME/.config/rofi/config.rasi 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 fi
killall dunst killall dunst

View file

@ -3,7 +3,7 @@ font-family = "IosevkaTerm Nerd Font Propo"
font-style = "Regular" font-style = "Regular"
font-size = 11 font-size = 11
background-opacity = 1.0 background-opacity = 1.0
window-decoration = none window-decoration = auto
confirm-close-surface = false confirm-close-surface = false
# Auto light/dark theme pair that matches your two palettes below # Auto light/dark theme pair that matches your two palettes below

View file

@ -34,6 +34,7 @@ source ~/.profile
#============================================================================== #==============================================================================
alias clip2png="xclip -selection clipboard -target image/png -out" alias clip2png="xclip -selection clipboard -target image/png -out"
alias k="kubectl"
@ -103,6 +104,12 @@ claude() {
npm 2>&1 1>/dev/null npm 2>&1 1>/dev/null
claude "$@" claude "$@"
} }
codex() {
unset -f codex
npm 2>&1 1>/dev/null
codex "$@"
}
# ghcup # ghcup
[ -f "/home/aselimov/.ghcup/env" ] && . "/home/aselimov/.ghcup/env" # ghcup-env [ -f "/home/aselimov/.ghcup/env" ] && . "/home/aselimov/.ghcup/env" # ghcup-env
@ -159,3 +166,11 @@ fi
if [[ -z "$TMUX" ]] && [[ -n "$PS1" ]]; then if [[ -z "$TMUX" ]] && [[ -n "$PS1" ]]; then
tmux attach -t dev || tmux new -s dev tmux attach -t dev || tmux new -s dev
fi fi
# pnpm
export PNPM_HOME="/home/aselimov/.local/share/pnpm"
case ":$PATH:" in
*":$PNPM_HOME:"*) ;;
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
# pnpm end