diff --git a/bin/emojis b/bin/emojis index 008a130..c0d58b7 100755 --- a/bin/emojis +++ b/bin/emojis @@ -7,7 +7,7 @@ set -e -dmenu="dmenu -theme-str 'window {width: 50%;}' -i -p Emoji" +dmenu="dmenu -theme-str 'window {width: 25%;}' -i -p Emoji" case "$1" in "list") data=$(sed '0,/^__DATA__$/d' "$0") diff --git a/bin/swap_mode.sh b/bin/swap_mode.sh index 2debbd4..9e23766 100755 --- a/bin/swap_mode.sh +++ b/bin/swap_mode.sh @@ -2,11 +2,9 @@ NVIM_CONF="${HOME}/.config/nvim/init.lua" GHOSTTY_CONF="${HOME}/.config/ghostty/config" -DUNST_CONF="${HOME}/.config/dunst/dunstrc" [ -f "$NVIM_CONF" ] || { echo "Missing $NVIM_CONF"; exit 1; } [ -f "$GHOSTTY_CONF" ] || { echo "Missing $GHOSTTY_CONF"; exit 1; } -[ -f "$DUNST_CONF" ] || { echo "Missing $DUNST_CONF"; exit 1; } set_light_mode() { sed -E -i 's/^([[:space:]]*theme[[:space:]]*=[[:space:]]*)zenwritten-dark/\1zenwritten-light/' "$GHOSTTY_CONF" @@ -66,47 +64,18 @@ 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' - sed -i -e 's@Net/ThemeName.*@Net/ThemeName "WhiteSur-Dark"@' ~/.xsettingsd - # Rofi theme sed -i -e "s/light.rasi/dark.rasi/" $HOME/.config/rofi/config.rasi - # Swap dunst urgency_low background and foreground - sed -E -i '/^\[urgency_low\]/,/^\[.*\]/ { - s/^([[:space:]]*background[[:space:]]*=[[:space:]]*).*/\1"#3d3839"/ - s/^([[:space:]]*foreground[[:space:]]*=[[:space:]]*).*/\1"#8e8e8e"/ - }' "$DUNST_CONF" - - # Swap dunst urgency_normal background and foreground - sed -E -i '/^\[urgency_normal\]/,/^\[.*\]/ { - s/^([[:space:]]*background[[:space:]]*=[[:space:]]*).*/\1"#3d3839"/ - s/^([[:space:]]*foreground[[:space:]]*=[[:space:]]*).*/\1"#BBBBBB"/ - }' "$DUNST_CONF" 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' - sed -i -e 's@Net/ThemeName.*@Net/ThemeName "WhiteSur-Light"@' ~/.xsettingsd - # Swap dunst urgency_low background and foreground - sed -E -i '/^\[urgency_low\]/,/^\[.*\]/ { - s/^([[:space:]]*background[[:space:]]*=[[:space:]]*).*/\1"#8e8e8e"/ - s/^([[:space:]]*foreground[[:space:]]*=[[:space:]]*).*/\1"#3d3839"/ - }' "$DUNST_CONF" - - # Swap dunst urgency_normal background and foreground - sed -E -i '/^\[urgency_normal\]/,/^\[.*\]/ { - s/^([[:space:]]*background[[:space:]]*=[[:space:]]*).*/\1"#BBBBBB"/ - s/^([[:space:]]*foreground[[:space:]]*=[[:space:]]*).*/\1"#191919"/ - }' "$DUNST_CONF" - # Rofi theme sed -i -e "s/dark.rasi/light.rasi/" $HOME/.config/rofi/config.rasi fi - killall dunst killall -HUP xsettingsd fi diff --git a/config/ghostty/config b/config/ghostty/config index 7384a2b..7815010 100644 --- a/config/ghostty/config +++ b/config/ghostty/config @@ -1,7 +1,7 @@ # --- Basics font-family = "IosevkaTermSlab Nerd Font Propo" font-style = "Regular" -font-size = 11 +font-size = 12 background-opacity = 1.0 window-decoration = none confirm-close-surface = false diff --git a/home/.profile b/home/.profile index 37c2c11..f0b0284 100644 --- a/home/.profile +++ b/home/.profile @@ -2,8 +2,5 @@ [ -f "/home/aselimov/.ghcup/env" ] && . "/home/aselimov/.ghcup/env" # ghcup-env -export PATH="$PATH:/usr/local/cuda-12.8/bin:$HOME/bin:$HOME/.local/bin" +export PATH="$PATH:/usr/local/cuda-12.8/bin:$HOME/bin" export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda-12.8/lib64" - -export ANTHROPIC_BASE_URL=https://api.z.ai/api/anthropic -export ANTHROPIC_AUTH_TOKEN="$(pass list zai_token)" diff --git a/home/.xprofile b/home/.xprofile index 54c686a..f0b0284 100755 --- a/home/.xprofile +++ b/home/.xprofile @@ -2,5 +2,5 @@ [ -f "/home/aselimov/.ghcup/env" ] && . "/home/aselimov/.ghcup/env" # ghcup-env -export PATH="$PATH:/usr/local/cuda-12.8/bin:$HOME/bin:$HOME/.local/bin" +export PATH="$PATH:/usr/local/cuda-12.8/bin:$HOME/bin" export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda-12.8/lib64" diff --git a/home/.zshrc b/home/.zshrc index a136b9e..b08182a 100644 --- a/home/.zshrc +++ b/home/.zshrc @@ -16,8 +16,6 @@ setopt HIST_IGNORE_SPACE # Don't save commands starting with space # Environment Variables #============================================================================== -source ~/.profile - export OMPI_MCA_rmaps_base_oversubscribe=1 export CLICOLOR=1 export LSCOLORS=ExGxBxDxCxEgEdxbxgxcxd @@ -96,13 +94,10 @@ gemini() { unset -f nvm node npm gemini load_nvm gemini "$@" + + } -claude() { - unset -f claude - npm 2>&1 1>/dev/null - claude "$@" -} # ghcup [ -f "/home/aselimov/.ghcup/env" ] && . "/home/aselimov/.ghcup/env" # ghcup-env