Catppuccin fixes for laptop and init script

Quentin Duchemin 2023-12-19 21:32:31 +01:00
parent a3577d8e98
commit 64cfe37fea
7 changed files with 17 additions and 14 deletions

View File

@ -38,6 +38,7 @@ nm-connection-editor
noto-fonts-emoji noto-fonts-emoji
numlockx numlockx
obsidian obsidian
oh-my-posh
oh-my-zsh-git oh-my-zsh-git
pacman-contrib pacman-contrib
pass pass

View File

@ -21,15 +21,15 @@ export BAR_TEMP_OK="%{F$MOCHA_MAUVE} %{F-} %temperature-c%"
export BAR_TEMP_WARN="%{F$MOCHA_PEACH} %{F-} %temperature-c%" export BAR_TEMP_WARN="%{F$MOCHA_PEACH} %{F-} %temperature-c%"
export BAR_MENU_OPEN="%{F$MOCHA_MAUVE}%{F$MOCHA_TEXT}" export BAR_MENU_OPEN="%{F$MOCHA_MAUVE}%{F$MOCHA_TEXT}"
export BAR_MENU_CLOSE="%{F$MOCHA_MAUVE}%{F$MOCHA_TEXT}" export BAR_MENU_CLOSE="%{F$MOCHA_MAUVE}%{F$MOCHA_TEXT}"
export BAR_BACKLIGHT="{F$MOCHA_SKY}☀️%{F$MOCHA_TEXT} %percentage%%" export BAR_BACKLIGHT="%{F$MOCHA_SKY}☀️%{F$MOCHA_TEXT} %percentage%%"
export BAR_BATTERY_FULL="%{$MOCHA_SAPPHIRE} %percentage%%" export BAR_BATTERY_FULL="%{F$MOCHA_SAPPHIRE} %{F$MOCHA_TEXT}%percentage%%"
export BAR_BATTERY_CHARGING="${MOCHA_LAVENDER}%percentage%%" export BAR_BATTERY_CHARGING="%{F$MOCHA_LAVENDER} %{F$MOCHA_TEXT}%percentage%%"
export BAR_BATTERY_DISCHARGIN="${MOCHA_PEACH}%percentage%%" export BAR_BATTERY_DISCHARGING="%{F$MOCHA_PEACH} %{F$MOCHA_TEXT}%percentage%%"
export BAR_MEMORY_DESKTOP="%{F$MOCHA_MAUVE}" export BAR_MEMORY_DESKTOP="%{F$MOCHA_MAUVE}"
export BAR_MEMORY_LAPTOP="%{F$MOCHA_MAUVE}%percentage_used%%" export BAR_MEMORY_LAPTOP="%{F$MOCHA_MAUVE} %{F$MOCHA_TEXT}%percentage_used%%"
export BAR_MEMORY_LAPTOP_WARN="%{F$MOCHA_PEACH}%percentage_used%%" export BAR_MEMORY_LAPTOP_WARN="%{F$MOCHA_PEACH} %percentage_used%%"
export BAR_DATE="%{F$MOCHA_MAUVE}🕓%{F$MOCHA_TEXT} %date% · %time%" export BAR_DATE="%{F$MOCHA_MAUVE}🕓%{F$MOCHA_TEXT} %date% · %time%"
export BAR_LOW_VOL="%{F$MOCHA_MAUVE}🔈%{F$MOCHA_TEXT}" export BAR_LOW_VOL="%{F$MOCHA_MAUVE}🔈%{F$MOCHA_TEXT}"
export BAR_MED_VOL="%{F$MOCHA_MAUVE}🔉%{F$MOCHA_TEXT}" export BAR_MED_VOL="%{F$MOCHA_MAUVE}🔉%{F$MOCHA_TEXT}"
export BAR_HIGH_VOL="%{F$MOCHA_MAUVE}🔊%{F$MOCHA_TEXT}" export BAR_HIGH_VOL="%{F$MOCHA_MAUVE}🔊%{F$MOCHA_TEXT}"
export BAR_HEAD_VOL="%{F$MOCHA_MAUVE}%{F$MOCHA_TEXT}" export BAR_HEAD_VOL="%{F$MOCHA_MAUVE}%%{F$MOCHA_TEXT}"

View File

@ -120,7 +120,7 @@ label-focused-font = 0
label-focused-padding = 4 label-focused-padding = 4
label-unfocused = %icon% %name% label-unfocused = %icon% %name%
label-unfocused-underline = ${colors.surface1} label-unfocused-underline = ${colors.surface0}
label-unfocused-font = 0 label-unfocused-font = 0
label-unfocused-padding = 4 label-unfocused-padding = 4

View File

@ -1,4 +1,4 @@
#icons=(  ) #icons=(  )
icons=( ) icons=( )
#parts=(/ /home /mnt/backup) #parts=(/ /home /mnt/backup)
parts=(/ /home) parts=(/ /home)

View File

@ -16,7 +16,7 @@ for i in "${!parts[@]}"; do
else else
color="$MOCHA_MAUVE" color="$MOCHA_MAUVE"
fi fi
output=$output"%{F${color}}${icons[$i]} $used%{F$MOCHA_TEXT} · $avail" output=$output"%{F${color}}${icons[$i]} $used%{F$MOCHA_TEXT} · $avail"
if [ $(($i + 1)) -ne "${#parts[@]}" ] ; then if [ $(($i + 1)) -ne "${#parts[@]}" ] ; then
output=$output" " output=$output" "
fi fi

View File

@ -121,13 +121,15 @@ if [ ! -z "$INIT" ]; then
pip install --break-system-packages pychee pip install --break-system-packages pychee
# Additionnal plugins for ZSH # Additionnal plugins for ZSH
echo -e "* Install ZSH plugins for oh-my-zsh..." echo -e "* Install ZSH plugins for oh-my-zsh..."
sudo git clone https://github.com/zdharma-continuum/fast-syntax-highlighting.git /usr/share/oh-my-zsh/plugins/zsh-fast-syntax-highlighting sudo git clone https://github.com/zdharma-continuum/fast-syntax-highlighting.git /usr/share/oh-my-zsh/plugins/fast-syntax-highlighting
sudo git clone https://github.com/zsh-users/zsh-autosuggestions /usr/share/oh-my-zsh/plugins/zsh-autosuggestions sudo git clone https://github.com/zsh-users/zsh-autosuggestions /usr/share/oh-my-zsh/plugins/zsh-autosuggestions
sudo git clone https://github.com/unixorn/fzf-zsh-plugin.git /usr/share/oh-my-zsh/plugins/fzf-zsh-plugin sudo git clone https://github.com/unixorn/fzf-zsh-plugin.git /usr/share/oh-my-zsh/plugins/fzf-zsh-plugin
echo -e "* Install everything we need for Catppuccin themes..." echo -e "* Install everything we need for Catppuccin themes..."
echo -e "\tFor polybar..." echo -e "\tFor polybar..."
wget https://github.com/catppuccin/polybar/blob/main/themes/mocha.ini -O ~/.config/polybar/mocha.ini wget https://raw.githubusercontent.com/catppuccin/polybar/main/themes/mocha.ini -O ~/.config/polybar/mocha.ini
sudo wget https://raw.githubusercontent.com/catppuccin/zsh-fsh/main/themes/catppuccin-macchiato.ini -O /usr/share/oh-my-zsh/plugins/fast-syntax-highlighting echo -e "\tFor zsh..."
sudo mkdir -p /usr/local/share/fsh
sudo wget https://raw.githubusercontent.com/catppuccin/zsh-fsh/main/themes/catppuccin-mocha.ini -O /usr/local/share/fsh/catpuccin-mocha.ini
# Basic directory structure # Basic directory structure
echo -e "* Create base home directories..." echo -e "* Create base home directories..."
mkdir -p ~/documents ~/images/screenshots ~/videos ~/downloads mkdir -p ~/documents ~/images/screenshots ~/videos ~/downloads

2
.zshrc
View File

@ -60,7 +60,7 @@ source $ZSH/oh-my-zsh.sh
# Use Quick Term prompt theme made for Oh My Posh, in zsh # Use Quick Term prompt theme made for Oh My Posh, in zsh
eval "$(oh-my-posh init zsh --config https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/quick-term.omp.json)" eval "$(oh-my-posh init zsh --config https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/quick-term.omp.json)"
# And use Catppuccin Mocha theme for ZSH fast hightlight plugin (LOCAL means searching in /usr/local/fsh) # And use Catppuccin Mocha theme for ZSH fast hightlight plugin (LOCAL means searching in /usr/local/share/fsh)
fast-theme LOCAL:catppuccin-mocha >/dev/null fast-theme LOCAL:catppuccin-mocha >/dev/null
# Preferred editor for local and remote sessions # Preferred editor for local and remote sessions