Compare commits

..

2 Commits

Author SHA1 Message Date
d0a450d4e8 [Setup] Make cleaner 2025-10-30 10:42:50 +01:00
786d5c5fe0 [Yazi] Fix themes 2025-10-30 10:42:42 +01:00
3 changed files with 9 additions and 8 deletions

View File

@@ -1,2 +1,3 @@
[flavor] [flavor]
use = "tokyo-night" dark = "tokyo-night"
light = "tokyo-night"

View File

@@ -1,2 +1,3 @@
[flavor] [flavor]
use = "{{ yazi-theme }}" dark = "{{ yazi-theme }}"
light = "{{ yazi-theme }}"

11
setup
View File

@@ -28,7 +28,6 @@ trap 'echo -e "\nCaught Ctrl+C, exiting..."; exit 130' SIGINT
# Read platform to install on (only if no platform file present in ~/.config/) # Read platform to install on (only if no platform file present in ~/.config/)
platform="" platform=""
if [[ -f ~/.config/platform ]]; then if [[ -f ~/.config/platform ]]; then
echo "Config type already selected, skipping"
platform=$(cat ~/.config/platform) platform=$(cat ~/.config/platform)
else else
read -p "Choose the configs to install, Laptop or Desktop (l/D): " platform read -p "Choose the configs to install, Laptop or Desktop (l/D): " platform
@@ -58,7 +57,6 @@ fi
# hyprvim config # hyprvim config
hyprvim="" hyprvim=""
if [[ -f ~/.config/hyprvim ]]; then if [[ -f ~/.config/hyprvim ]]; then
echo "hyprvim config already specified, skipping"
hyprvim=$(cat ~/.config/hyprvim) hyprvim=$(cat ~/.config/hyprvim)
else else
read -p "Would you like to use hyprvim? (Y/n) " hyprvim read -p "Would you like to use hyprvim? (Y/n) " hyprvim
@@ -81,19 +79,19 @@ cp -r ./config/xdg-desktop-portal/ ~/.config/
# Depending on platform, remove one or the other config and rename remaining one # Depending on platform, remove one or the other config and rename remaining one
if [[ "$platform" == "d" ]]; then if [[ "$platform" == "d" ]]; then
echo "Running on desktop" echo "==> Running on desktop"
cp -f ~/.config/hypr/hyprland_desktop.conf ~/.config/hypr/hyprland.conf cp -f ~/.config/hypr/hyprland_desktop.conf ~/.config/hypr/hyprland.conf
else else
echo "Running on laptop" echo "==> Running on laptop"
cp -f ~/.config/hypr/hyprland_laptop.conf ~/.config/hypr/hyprland.conf cp -f ~/.config/hypr/hyprland_laptop.conf ~/.config/hypr/hyprland.conf
fi fi
# Enable or disable "hyprvim" (using hyprland with vim-inspired modes) # Enable or disable "hyprvim" (using hyprland with vim-inspired modes)
if [[ "$hyprvim" == "y" ]]; then if [[ "$hyprvim" == "y" ]]; then
echo "Enabling hyprvim" echo "==> Enabling hyprvim"
mv -f ~/.config/hypr/hyprland/mode-binds.conf ~/.config/hypr/hyprland/binds.conf mv -f ~/.config/hypr/hyprland/mode-binds.conf ~/.config/hypr/hyprland/binds.conf
else else
echo "Disabling hyprvim" echo "==> Disabling hyprvim"
rm -rf ~/.config/hypr/hyprland/modal-binds rm -rf ~/.config/hypr/hyprland/modal-binds
rm ~/.config/hypr/hyprland/mode-binds.conf rm ~/.config/hypr/hyprland/mode-binds.conf
fi fi
@@ -114,6 +112,7 @@ cp ./config/lint/indentconfig.yaml ~/.indentconfig.yaml
echo " echo "
=> Installing yazi plugins => Installing yazi plugins
" "
rm -rf ~/.config/yazi/plugins/*
ya pkg upgrade ya pkg upgrade
if [[ "$restart" == "y" ]]; then if [[ "$restart" == "y" ]]; then