commit 27ad1efe421fedaf5020cb09dd3b666d147ca22f Author: BlackAngelTV Date: Thu Sep 10 21:45:40 2026 +0200 feat: package the violet Hyprland theme as distributable dotfiles Complete violet-themed desktop pack: Hyprland, Waybar, wofi, kitty, btop, GTK, zsh/bash prompts, GRUB theme, SDDM theme and wallpaper, with an installer script (backup + substitutions) and French docs. Generated with Codebuff ๐Ÿค– Co-Authored-By: Codebuff diff --git a/README.md b/README.md new file mode 100644 index 0000000..e9a882a --- /dev/null +++ b/README.md @@ -0,0 +1,192 @@ +# ๐Ÿ’œ violet-dotfiles โ€” Thรจme VIOLET pour Hyprland + +Toute la config visuelle ยซ รฉdition violette ยป : **Hyprland**, **Waybar**, **wofi**, +**kitty**, **btop**, **GTK**, **prompt zsh/bash**, **fond d'รฉcran**, **GRUB** et +**SDDM**. Palette unique extraite d'une image de rรฉfรฉrence : + +| Rรดle | Couleur | Hex | +|-------------|----------|----------| +| Fond image | violet | `#29242e`| +| Fond profond| violet | `#1f1a2e`| +| Surface | gris | `#313244`| +| Texte | blanc | `#fafafa`| +| Lavande | highlight| `#c3b6f6`| +| Mauve | accent | `#cba6f7`| +| Indigo | secondaire| `#7064b6`| +| Teal | info | `#94e2d5`| +| Rose | alerte | `#f569ca`| + +--- + +## ๐Ÿ“ Contenu du dossier + +``` +violet-dotfiles/ +โ”œโ”€โ”€ install.sh โ† script d'installation (recommandรฉ) +โ”œโ”€โ”€ README.md โ† ce fichier +โ”œโ”€โ”€ hypr/ โ† Hyprland : hyprland.conf, hyprlock, hyprpaper +โ”œโ”€โ”€ waybar/ โ† barre du haut : config, style.css, icons/logo.png +โ”œโ”€โ”€ wofi/ โ† menu d'applications (Super+R) +โ”œโ”€โ”€ kitty/ โ† terminal +โ”œโ”€โ”€ btop/ โ† moniteur systรจme : themes/violet.theme +โ”œโ”€โ”€ gtk/ โ† rรฉglages sombres GTK3 + GTK4 +โ”œโ”€โ”€ zsh/ โ† prompt style Kali (kali-violet.zshrc) +โ”œโ”€โ”€ bash/ โ† prompt style Kali pour bash (optionnel) +โ”œโ”€โ”€ grub/ +โ”‚ โ”œโ”€โ”€ violet/ โ† thรจme GRUB complet (fond, polices, menu) +โ”‚ โ””โ”€โ”€ default-grub.conf โ† exemple de /etc/default/grub +โ”œโ”€โ”€ sddm/ +โ”‚ โ”œโ”€โ”€ catppuccin-mocha-mauve/ โ† thรจme de l'รฉcran de connexion +โ”‚ โ””โ”€โ”€ 10-fws.conf โ† config SDDM +โ””โ”€โ”€ wallpapers/ + โ””โ”€โ”€ Banner.png โ† fond d'รฉcran (3440ร—1440) +``` + +--- + +## ๐Ÿš€ Installation rapide + +Prรฉrequis : **Arch Linux / FWS**, session **Hyprland** dรฉjร  fonctionnelle. + +```bash +cd violet-dotfiles +./install.sh # configs utilisateur (aucun sudo requis) +``` + +Cela installe : Hyprland, Waybar, wofi, kitty, btop, GTK, prompt zsh, +fond d'รฉcran โ€” **en sauvegardant d'abord tes configs existantes** dans +`~/.violet-backup-/`. + +### Options + +| Option | Effet | +|---------------------|---------------------------------------------------| +| `--bash` | ajoute aussi le prompt violet ร  `~/.bashrc` | +| `--grub` | installe le thรจme GRUB (sudo) + rรฉgรฉnรจre grub.cfg | +| `--sddm` | installe le thรจme SDDM de connexion (sudo) | +| `--install-deps` | installe les paquets manquants (pacman, sudo) | +| `--all` | tout ce qui prรฉcรจde | + +Exemple complet : + +```bash +./install.sh --all +``` + +Ensuite : + +```bash +hyprctl reload # ou SUPER+SHIFT+C +killall waybar; waybar & # recharge la barre +``` + +Redรฉmarre pour voir GRUB et SDDM. ๐Ÿ’œ + +--- + +## ๐Ÿ“ฆ Dรฉpendances + +Paquets Arch (installรฉs par `./install.sh --install-deps`) : + +``` +hyprland hyprlock hyprpaper waybar wofi kitty btop +mako grim slurp wl-clipboard playerctl pavucontrol +noto-fonts ttf-nerd-fonts-symbols network-manager-applet +blueman polkit-gnome dolphin +``` + +> Les icรดnes de la barre (๓ฐฅ” ๓ฐŒŒ ๓ฐ•ฟโ€ฆ) viennent de **ttf-nerd-fonts-symbols**. +> Sans ce paquet, Waybar affichera des carrรฉs vides. + +--- + +## ๐Ÿ”ง Personnalisation rapide + +| Tu veuxโ€ฆ | Fichier ร  รฉditer | +|------------------------------------|-----------------------------------------------| +| Changer la disposition clavier | `hypr/hyprland.conf` โ†’ `kb_layout` / `kb_variant` (actuel : `ch` / `fr`) | +| Mettre ton prรฉnom sur le verrou | `hypr/hyprlock.conf` โ†’ ligne ยซ Bonjour โ€ฆ ๐Ÿ’œ ยป (remplacรฉ par ton nom d'utilisateur ร  l'install) | +| Changer le fond d'รฉcran | remplace `wallpapers/Banner.png` puis relance `./install.sh` | +| Dรฉgradรฉ des bordures de fenรชtres | `hypr/hyprland.conf` โ†’ `col.active_border` | +| Couleurs de la barre | `waybar/style.css` (palette en tรชte de fichier) | +| Toujours vouloir le prompt bash | `./install.sh --bash` | + +--- + +## ๐Ÿ›  Installation manuelle (sans le script) + +1. **Hyprland** โ€” copie `hypr/` vers `~/.config/hypr/`, puis dans + `hyprpaper.conf` remplace `__WALLPAPER__` par le chemin absolu de + `wallpapers/Banner.png` (ex. `/home/toi/Images/Banner.png`). +2. **Waybar** โ€” copie `waybar/` vers `~/.config/waybar/` et remplace + `__WAYBAR_LOGO__` dans `style.css` par le chemin absolu + `~/.config/waybar/icons/logo.png`. +3. **wofi / kitty / btop / GTK** โ€” copie chaque dossier vers + `~/.config//`, puis choisis le thรจme btop : dans `~/.config/btop/btop.conf`, + ligne `color_theme = "violet"`. +4. **zsh** โ€” copie `zsh/kali-violet.zshrc` vers `~/.config/zsh/` et ajoute + dans `~/.zshrc` : + ```bash + [[ -f "$HOME/.config/zsh/kali-violet.zshrc" ]] && source "$HOME/.config/zsh/kali-violet.zshrc" + ``` +5. **GRUB** : + ```bash + sudo rm -rf /boot/grub/themes/violet + sudo cp -r grub/violet /boot/grub/themes/ + # ajoute dans /etc/default/grub (voir grub/default-grub.conf) : + # GRUB_THEME="/boot/grub/themes/violet/theme.txt" + # GRUB_GFXMODE=1920x1080,auto + sudo grub-mkconfig -o /boot/grub/grub.cfg + ``` +6. **SDDM** : + ```bash + sudo cp -r sddm/catppuccin-mocha-mauve /usr/share/sddm/themes/ + sudo cp sddm/10-fws.conf /etc/sddm.conf.d/10-fws.conf + ``` + +--- + +## โš  Dรฉpendances FWS (scripts de la distro FWS) + +Certains raccourcis et boutons appellent de petits scripts de la distro +**FWS** (`/usr/local/bin/fws-*`). Sur une autre distro ils n'existent pas : +la config fonctionne quand mรชme, ces actions sont simplement inactives. +Voici quoi mettre ร  la place si tu les veux : + +| Commande FWS | Rรดle | Remplaรงant courant | +|---------------------|-------------------------------|----------------------------------| +| `fws-powermenu` | menu arrรชt/redรฉmarrage | `wlogout` | +| `fws-keys` | รฉcran des raccourcis clavier | *(rien d'รฉquivalent)* | +| `fws-updates-check` | vรฉrif. mises ร  jour (barre) | `checkupdates` (paquet `pacman-contrib`) | +| `fws-update` | installer les mises ร  jour | `kitty -e sudo pacman -Syu` | +| `fws-brightness` | luminositรฉ รฉcran | `brightnessctl` | +| `fws-hello` | fenรชtre de bienvenue | supprimer la ligne `exec-once` | + +Exemple pour remplacer le bouton d'alimentation de Waybar : +`waybar/config` โ†’ `"on-click": "fws-powermenu"` devient `"on-click": "wlogout"`. + +--- + +## ๐Ÿ” Dรฉpannage + +| Problรจme | Solution | +|---------------------------------------|----------| +| La barre affiche des carrรฉs / | installe `ttf-nerd-fonts-symbols` et relance Waybar | +| Icรดnes manquantes | | +| Fond d'รฉcran noir | vรฉrifie que `hyprpaper` est lancรฉ (`pgrep hyprpaper`) et que le chemin dans `hypr/hyprpaper.conf` existe | +| Thรจme GRUB inchangรฉ aprรจs reboot | vรฉrifie `GRUB_THEME` dans `/etc/default/grub`, relance `sudo grub-mkconfig -o /boot/grub/grub.cfg` | +| Waybar ne dรฉmarre pas | lance `waybar --log level=debug` pour voir l'erreur | +| Config Hyprland invalide | `hyprctl --config ~/.config/hypr/hyprland.conf verify` | +| L'ancienne config me manque | tout est dans `~/.violet-backup-/` | + +--- + +## โ„น๏ธ Notes + +- Le thรจme **GRUB violet** et le **thรจme btop violet** sont des crรฉations + originales. Le thรจme **SDDM** `catppuccin-mocha-mauve` provient du projet + [Catppuccin](https://github.com/catppuccin/sddm) (licence MIT) โ€” il est + inclus pour que le paquet soit autonome. +- Testรฉ avec : Hyprland โ‰ฅ 0.56, Waybar โ‰ฅ 0.15, hyprlock 0.9, hyprpaper 0.8. +- Raccourcis utiles : `SUPER+K` = liste des raccourcis, `SUPER+X` = menu + d'alimentation, `SUPER+L` = verrouiller l'รฉcran, `SUPER+R` = menu d'apps. \ No newline at end of file diff --git a/bash/violet-prompt.bash b/bash/violet-prompt.bash new file mode 100644 index 0000000..bacca8f --- /dev/null +++ b/bash/violet-prompt.bash @@ -0,0 +1,44 @@ +# โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• +# ๐Ÿ’œ PROMPT STYLE KALI โ€” couleurs EXACTES de tty.png (image de +# rรฉfรฉrence, extraites au pixel prรจs par analyse PNG) +# โ•ญโ”€โ”€(damien๐Ÿ’€pc)-[~/chemin]- (branche) [erreur] +# $ +# Boรฎtes/bordures : mauve #cba6f7 (203,166,247) +# Texte/chemin : bleu clair #89b4fa (137,180,250) +# $ / erreur : rose #f4c1e6 (244,193,230) +# โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• +MAUVE=$'\e[38;2;203;166;247m' # mauve โ€” boรฎtes et bordures (tty.png) +BLEU=$'\e[38;2;137;180;250m' # bleu clair โ€” texte et chemin (tty.png) +ROSE=$'\e[38;2;244;193;230m' # rose โ€” $ et code d'erreur (tty.png) +RESET=$'\e[0m' + +# Branche git courante : parenthรจses mauve, nom en bleu +__fws_git_branch() { + local b + b=$(git symbolic-ref --short HEAD 2>/dev/null) || return + printf '%s(%s%s%s)%s' "$MAUVE" "$BLEU" "$b" "$MAUVE" "$RESET" +} + +# Construction du prompt ร  chaque ligne +__fws_prompt_cmd() { + local code=$? status="" + (( code != 0 )) && status="${ROSE}[$code]${RESET} " + PS1=$'\n'"${MAUVE}โ•ญโ”€โ”€(${BLEU}\u@\h${MAUVE})-[${BLEU}\w${MAUVE}]$(__fws_git_branch)${status}"$'\n'"${ROSE}\$ ${RESET}" +} +PROMPT_COMMAND=__fws_prompt_cmd + +# โ”€โ”€ Couleurs du terminal (ls assorti ร  tty.png) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ +# dossiers mauve, liens bleu, exรฉcutables rose +if command -v dircolors >/dev/null; then + eval "$(dircolors -b | sed \ + -e 's/dir=01;34/dir=01;38;2;203;166;247/' \ + -e 's/:ln=01;36:/:ln=01;38;2;137;180;250:/' \ + -e 's/:ex=01;32:/:ex=01;38;2;244;193;230:/')" +fi + +# โ”€โ”€ Alias pratiques โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ +alias update='sudo pacman -Syu' +alias cls='clear; echo -e "\e[38;2;203;166;247m ๐Ÿ’œ Terminal violet prรชt. ๐Ÿ’œ\e[0m"' +alias ll='ls -lah --color=auto' +alias ..='cd ..' +alias pkg='pacman -Q' \ No newline at end of file diff --git a/btop/themes/violet.theme b/btop/themes/violet.theme new file mode 100644 index 0000000..e28330a --- /dev/null +++ b/btop/themes/violet.theme @@ -0,0 +1,83 @@ +# โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•— +# โ•‘ btop โ€” thรจme VIOLET de Damien ๐Ÿ’œ โ•‘ +# โ•‘ Palette de l'image : bg #29242e ยท texte #fafafa โ•‘ +# โ•‘ lavande #c3b6f6 ยท mauve #cba6f7 ยท indigo #7064b6 โ•‘ +# โ•‘ teal #94e2d5 ยท rose #f569ca โ•‘ +# โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• + +theme[main_bg]="#29242e" +theme[main_fg]="#fafafa" +theme[title]="#c3b6f6" +theme[hi_fg]="#cba6f7" +theme[selected_bg]="#cba6f7" +theme[selected_fg]="#1f1a2e" +theme[inactive_fg]="#9a8cd8" +theme[graph_text]="#9a8cd8" +theme[meter_bg]="#313244" +theme[meter_fg]="#c3b6f6" +theme[proc_misc]="#9a8cd8" +theme[cpu_box]="#cba6f7" +theme[mem_box]="#94e2d5" +theme[net_box]="#8cebd4" +theme[proc_box]="#e06abd" +theme[div_line]="#3a3350" +theme[temp_start]="#c3b6f6" +theme[temp_mid]="#cba6f7" +theme[temp_end]="#f569ca" +theme[cpu_start]="#c3b6f6" +theme[cpu_mid]="#cba6f7" +theme[cpu_end]="#9a8cd8" +theme[free_start]="#8cebd4" +theme[free_mid]="#94e2d5" +theme[free_end]="#c3b6f6" +theme[cached_start]="#7064b6" +theme[cached_mid]="#9a8cd8" +theme[cached_end]="#cba6f7" +theme[available_start]="#94e2d5" +theme[available_mid]="#c3b6f6" +theme[available_end]="#cba6f7" +theme[used_start]="#cba6f7" +theme[used_mid]="#c3b6f6" +theme[used_end]="#f569ca" +theme[download_start]="#8cebd4" +theme[download_mid]="#94e2d5" +theme[download_end]="#c3b6f6" +theme[upload_start]="#f569ca" +theme[upload_mid]="#cba6f7" +theme[upload_end]="#8cebd4" +theme[process_start]="#c3b6f6" +theme[process_mid]="#9a8cd8" +theme[process_end]="#f569ca" +theme[disk_start]="#c3b6f6" +theme[disk_mid]="#9a8cd8" +theme[disk_end]="#f569ca" +theme[gpu0_start]="#cba6f7" +theme[gpu0_mid]="#c3b6f6" +theme[gpu0_end]="#f569ca" +theme[gpu1_start]="#94e2d5" +theme[gpu1_mid]="#c3b6f6" +theme[gpu1_end]="#f569ca" +theme[gpu2_start]="#9a8cd8" +theme[gpu2_mid]="#c3b6f6" +theme[gpu2_end]="#f569ca" +theme[gpu3_start]="#8cebd4" +theme[gpu3_mid]="#c3b6f6" +theme[gpu3_end]="#f569ca" +theme[gpu4_start]="#e06abd" +theme[gpu4_mid]="#c3b6f6" +theme[gpu4_end]="#f569ca" +theme[gpu5_start]="#7064b6" +theme[gpu5_mid]="#c3b6f6" +theme[gpu5_end]="#f569ca" +theme[gpu6_start]="#cba6f7" +theme[gpu6_mid]="#c3b6f6" +theme[gpu6_end]="#f569ca" +theme[gpu7_start]="#94e2d5" +theme[gpu7_mid]="#c3b6f6" +theme[gpu7_end]="#f569ca" +theme[gpu8_start]="#9a8cd8" +theme[gpu8_mid]="#c3b6f6" +theme[gpu8_end]="#f569ca" +theme[gpu9_start]="#8cebd4" +theme[gpu9_mid]="#c3b6f6" +theme[gpu9_end]="#f569ca" \ No newline at end of file diff --git a/grub/default-grub.conf b/grub/default-grub.conf new file mode 100644 index 0000000..5418113 --- /dev/null +++ b/grub/default-grub.conf @@ -0,0 +1,14 @@ +# Exemple de /etc/default/grub โ€” thรจme violet ๐Ÿ’œ +# Copie ce contenu dans /etc/default/grub (ou laisse install.sh le faire) +# puis rรฉgรฉnรจre le menu : sudo grub-mkconfig -o /boot/grub/grub.cfg +# +# Astuce : pour activer le dรฉtection des autres OS (dual-boot) : +# GRUB_DISABLE_OS_PROBER=false +GRUB_DEFAULT=0 +GRUB_TIMEOUT=8 +GRUB_DISTRIBUTOR="FWS" +GRUB_DISABLE_OS_PROBER=false + +# Thรจme violet (gรฉnรฉrรฉ automatiquement) +GRUB_THEME="/boot/grub/themes/violet/theme.txt" +GRUB_GFXMODE=1920x1080,auto \ No newline at end of file diff --git a/grub/violet/background.png b/grub/violet/background.png new file mode 100644 index 0000000..dc04fde Binary files /dev/null and b/grub/violet/background.png differ diff --git a/grub/violet/dejavu_16.pf2 b/grub/violet/dejavu_16.pf2 new file mode 100644 index 0000000..6a32de8 Binary files /dev/null and b/grub/violet/dejavu_16.pf2 differ diff --git a/grub/violet/dejavu_bold_24.pf2 b/grub/violet/dejavu_bold_24.pf2 new file mode 100644 index 0000000..d96d130 Binary files /dev/null and b/grub/violet/dejavu_bold_24.pf2 differ diff --git a/grub/violet/dejavu_mono_20.pf2 b/grub/violet/dejavu_mono_20.pf2 new file mode 100644 index 0000000..24bb39e Binary files /dev/null and b/grub/violet/dejavu_mono_20.pf2 differ diff --git a/grub/violet/empty_c.png b/grub/violet/empty_c.png new file mode 100644 index 0000000..1a3a506 Binary files /dev/null and b/grub/violet/empty_c.png differ diff --git a/grub/violet/empty_e.png b/grub/violet/empty_e.png new file mode 100644 index 0000000..1a3a506 Binary files /dev/null and b/grub/violet/empty_e.png differ diff --git a/grub/violet/empty_n.png b/grub/violet/empty_n.png new file mode 100644 index 0000000..1a3a506 Binary files /dev/null and b/grub/violet/empty_n.png differ diff --git a/grub/violet/empty_ne.png b/grub/violet/empty_ne.png new file mode 100644 index 0000000..1a3a506 Binary files /dev/null and b/grub/violet/empty_ne.png differ diff --git a/grub/violet/empty_nw.png b/grub/violet/empty_nw.png new file mode 100644 index 0000000..1a3a506 Binary files /dev/null and b/grub/violet/empty_nw.png differ diff --git a/grub/violet/empty_s.png b/grub/violet/empty_s.png new file mode 100644 index 0000000..1a3a506 Binary files /dev/null and b/grub/violet/empty_s.png differ diff --git a/grub/violet/empty_se.png b/grub/violet/empty_se.png new file mode 100644 index 0000000..1a3a506 Binary files /dev/null and b/grub/violet/empty_se.png differ diff --git a/grub/violet/empty_sw.png b/grub/violet/empty_sw.png new file mode 100644 index 0000000..1a3a506 Binary files /dev/null and b/grub/violet/empty_sw.png differ diff --git a/grub/violet/empty_w.png b/grub/violet/empty_w.png new file mode 100644 index 0000000..1a3a506 Binary files /dev/null and b/grub/violet/empty_w.png differ diff --git a/grub/violet/menu_c.png b/grub/violet/menu_c.png new file mode 100644 index 0000000..893717c Binary files /dev/null and b/grub/violet/menu_c.png differ diff --git a/grub/violet/select_c.png b/grub/violet/select_c.png new file mode 100644 index 0000000..1b1f184 Binary files /dev/null and b/grub/violet/select_c.png differ diff --git a/grub/violet/theme.txt b/grub/violet/theme.txt new file mode 100644 index 0000000..bb560bd --- /dev/null +++ b/grub/violet/theme.txt @@ -0,0 +1,81 @@ +# โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•— +# โ•‘ GRUB โ€” thรจme VIOLET de Damien ๐Ÿ’œ โ•‘ +# โ•‘ Palette : fond #29242e/#1f1a2e ยท lavande #c3b6f6 โ•‘ +# โ•‘ mauve #cba6f7 ยท indigo #7064b6 ยท texte #fafafa โ•‘ +# โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• + +# โ”€โ”€ Global โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ +desktop-image: "background.png" +desktop-color: "#1f1a2e" +title-text: "" +terminal-font: "DejaVu Mono Regular 20" +terminal-border: "0" +terminal-box: "empty_nw.png" "empty_n.png" "empty_ne.png" "empty_w.png" "empty_c.png" "empty_e.png" "empty_sw.png" "empty_s.png" "empty_se.png" + +# โ”€โ”€ Logo / nom de la distro (haut gauche) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ ++ label { + text = "FWS Linux โ™ฅ" + font = "DejaVu Bold 24" + color = "#c3b6f6" + align = "left" + left = 4% + top = 6% +} + ++ label { + text = "รฉdition violette" + font = "DejaVu Regular 16" + color = "#9a8cd8" + align = "left" + left = 4% + top = 12% +} + +# โ”€โ”€ Menu de boot โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ ++ boot_menu { + left = 15% + top = 30% + width = 70% + height = 38% + item_font = "DejaVu Regular 16" + item_color = "#fafafa" + selected_item_font = "DejaVu Bold 16" + selected_item_color = "#1f1a2e" + selected_item_pixmap_style = "select_*" + menu_pixmap_style = "menu_*" + item_height = 34 + item_padding = 4 + item_spacing = 8 + icon_width = 0 + icon_height = 0 + scrollbar = false + mouse = "true" +} + +# โ”€โ”€ Barre de compte ร  rebours (bas) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ ++ progress_bar { + id = "__timeout__" + left = 30% + top = 82% + width = 40% + height = 10 + show_text = true + text = "@TIMEOUT_NOTIFICATION_MIDDLE@" + text_color = "#c3b6f6" + font = "DejaVu Regular 16" + fg_color = "#cba6f7" + bg_color = "#313244" + text_alignment = "center" + bar_style = "*" + highlight_style = "*" +} + +# โ”€โ”€ Signature (bas droite) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ ++ label { + text = "thรจme violet par damien" + font = "DejaVu Regular 16" + color = "#6b6180" + align = "right" + left = 96% + top = 94% +} diff --git a/gtk/gtk-3.0/settings.ini b/gtk/gtk-3.0/settings.ini new file mode 100644 index 0000000..985fe02 --- /dev/null +++ b/gtk/gtk-3.0/settings.ini @@ -0,0 +1,8 @@ +# FWS โ€” rรฉglages GTK3 assortis au thรจme violet ๐Ÿ’œ +[Settings] +gtk-theme-name=Adwaita-dark +gtk-icon-theme-name=Adwaita +gtk-font-name=Noto Sans 10 +gtk-application-prefer-dark-theme=1 +gtk-cursor-theme-name=Adwaita +gtk-decoration-layout=menu:close \ No newline at end of file diff --git a/gtk/gtk-4.0/settings.ini b/gtk/gtk-4.0/settings.ini new file mode 100644 index 0000000..a4a196b --- /dev/null +++ b/gtk/gtk-4.0/settings.ini @@ -0,0 +1,7 @@ +# FWS โ€” rรฉglages GTK4 assortis au thรจme violet ๐Ÿ’œ +[Settings] +gtk-theme-name=Adwaita-dark +gtk-icon-theme-name=Adwaita +gtk-font-name=Noto Sans 10 +gtk-application-prefer-dark-theme=1 +gtk-cursor-theme-name=Adwaita \ No newline at end of file diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf new file mode 100644 index 0000000..c69423b --- /dev/null +++ b/hypr/hyprland.conf @@ -0,0 +1,184 @@ +# FWS โ€” configuration Hyprland par dรฉfaut. +# Le clavier (ch / fr) est injectรฉ ร  l'installation, +# depuis le choix fait dans Anaconda. ร‰dite ce fichier librement. +# +# Raccourcis : transposition de la config i3/sway FWS (mรชmes touches). +# Couleurs : VIOLET โ€” dรฉgradรฉ violet โ†’ lavande sur la fenรชtre active. +# (Fond du bureau, hyprlock, waybar, wofi et kitty sont assortis ๐Ÿ’œ) +# +# Les raccourcis sont dรฉclarรฉs avec ยซ bindd ยป (bind + description) : la +# description alimente l'รฉcran ยซ Raccourcis clavier ยป (bouton โŒจ de la barre +# ou SUPER+K โ†’ fws-keys, qui lit les binds Rร‰ELS via hyprctl). Ajoute +# tes propres bindd : ils apparaรฎtront automatiquement dans la liste. +# โš  Pas de virgule dans les descriptions (sรฉparateur de champs Hyprland). + +monitor = , preferred, auto, 1 + +input { + kb_layout = ch + kb_variant = fr + follow_mouse = 1 + numlock_by_default = true + touchpad { + natural_scroll = true + tap-to-click = true + } +} + +general { + gaps_in = 4 + gaps_out = 8 + border_size = 2 + # Palette de l'image : mauve #cba6f7 โ†’ lavande #c3b6f6 en dรฉgradรฉ. + col.active_border = rgb(cba6f7) rgb(c3b6f6) 45deg + col.inactive_border = rgb(313244) + layout = dwindle +} + +decoration { + rounding = 8 + # Flou et ombres COUPร‰S : rendu logiciel (llvmpipe) en VM โ€” cf. le + # wrapper fws-hyprland รฉcrit par l'installateur. Sur un vrai GPU tu + # peux les rรฉactiver (enabled = true). + blur { + enabled = false + } + shadow { + enabled = false + } +} + +animations { + enabled = true + bezier = fws, 0.22, 1.0, 0.36, 1.0 + animation = windows, 1, 3, fws + animation = workspaces, 1, 3, fws + animation = fade, 1, 2, default +} + +misc { + disable_hyprland_logo = true + disable_splash_rendering = true # pas de ยซ Thanks xxx! ยป en bas d'รฉcran + force_default_wallpaper = 0 + background_color = 0x1f1a2e # violet profond (aucun fond requis) +} + +# Dรฉmarrage de session : barre d'รฉtat, notifications, rรฉseau dans le tray, +# agent d'authentification GUI (indispensable pour les apps qui demandent +# les droits admin : gestionnaire de disques, bluemanโ€ฆ). +# Fond d'รฉcran violet (hyprpaper โ€” ne fait rien s'il n'est pas installรฉ). +exec-once = hyprpaper +exec-once = waybar +exec-once = mako +exec-once = nm-applet +# Applet Bluetooth : seulement si un adaptateur existe (en VM il n'y en a +# pas โ†’ blueman afficherait une erreur ยซ Connection to BlueZ failed ยป). +exec-once = sh -c '[ -n "$(ls -A /sys/class/bluetooth 2>/dev/null)" ] && exec blueman-applet' +exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 +# Fenรชtre de bienvenue (1er dรฉmarrage seulement โ€” se retire ensuite). +exec-once = fws-hello --autostart + +$mod = SUPER + +# --- Applications --------------------------------------------------------- +bindd = $mod, Return, Ouvrir un terminal (kitty), exec, kitty +bindd = $mod SHIFT, Return, Terminal flottant, exec, kitty --class floating-term +bindd = $mod, R, Menu des applications, exec, wofi --show drun +bindd = $mod, E, Gestionnaire de fichiers, exec, dolphin +bindd = $mod, B, Ouvrir Firefox, exec, firefox +bindd = $mod, K, Afficher les raccourcis clavier, exec, fws-keys +bindd = $mod, X, Menu d'alimentation (arrรชt/redรฉmarrageโ€ฆ), exec, fws-powermenu + +# --- Fenรชtres --------------------------------------------------------------- +bindd = $mod, Q, Fermer la fenรชtre, killactive, +bindd = $mod, V, Fenรชtre flottante ou ancrรฉe, togglefloating, +bindd = $mod, F, Plein รฉcran, fullscreen, +bindd = $mod, J, Basculer la dรฉcoupe horizontale/verticale, layoutmsg, togglesplit +bindd = $mod, L, Verrouiller l'รฉcran, exec, hyprlock +bindd = $mod SHIFT, E, Quitter la session (retour ร  SDDM), exit, +bindd = $mod SHIFT, C, Recharger la configuration Hyprland, exec, hyprctl reload + +# --- Focus (flรจches) --------------------------------------------------------- +bindd = $mod, left, Focus ร  gauche, movefocus, l +bindd = $mod, right, Focus ร  droite, movefocus, r +bindd = $mod, up, Focus en haut, movefocus, u +bindd = $mod, down, Focus en bas, movefocus, d + +# --- Dรฉplacer la fenรชtre (Maj + flรจches) --------------------------------------- +bindd = $mod SHIFT, left, Dรฉplacer la fenรชtre ร  gauche, movewindow, l +bindd = $mod SHIFT, right, Dรฉplacer la fenรชtre ร  droite, movewindow, r +bindd = $mod SHIFT, up, Dรฉplacer la fenรชtre en haut, movewindow, u +bindd = $mod SHIFT, down, Dรฉplacer la fenรชtre en bas, movewindow, d + +# --- Redimensionner (Ctrl + flรจches, maintien possible) ------------------------ +binde = $mod CTRL, left, resizeactive, -30 0 +binde = $mod CTRL, right, resizeactive, 30 0 +binde = $mod CTRL, up, resizeactive, 0 -30 +binde = $mod CTRL, down, resizeactive, 0 30 + +# --- Espaces de travail 1-10 (0 = espace 10, comme i3) -------------------------- +bindd = $mod, 1, Aller ร  l'espace 1, workspace, 1 +bindd = $mod, 2, Aller ร  l'espace 2, workspace, 2 +bindd = $mod, 3, Aller ร  l'espace 3, workspace, 3 +bindd = $mod, 4, Aller ร  l'espace 4, workspace, 4 +bindd = $mod, 5, Aller ร  l'espace 5, workspace, 5 +bindd = $mod, 6, Aller ร  l'espace 6, workspace, 6 +bindd = $mod, 7, Aller ร  l'espace 7, workspace, 7 +bindd = $mod, 8, Aller ร  l'espace 8, workspace, 8 +bindd = $mod, 9, Aller ร  l'espace 9, workspace, 9 +bindd = $mod, 0, Aller ร  l'espace 10, workspace, 10 +bindd = $mod SHIFT, 1, Envoyer la fenรชtre vers l'espace 1, movetoworkspace, 1 +bindd = $mod SHIFT, 2, Envoyer la fenรชtre vers l'espace 2, movetoworkspace, 2 +bindd = $mod SHIFT, 3, Envoyer la fenรชtre vers l'espace 3, movetoworkspace, 3 +bindd = $mod SHIFT, 4, Envoyer la fenรชtre vers l'espace 4, movetoworkspace, 4 +bindd = $mod SHIFT, 5, Envoyer la fenรชtre vers l'espace 5, movetoworkspace, 5 +bindd = $mod SHIFT, 6, Envoyer la fenรชtre vers l'espace 6, movetoworkspace, 6 +bindd = $mod SHIFT, 7, Envoyer la fenรชtre vers l'espace 7, movetoworkspace, 7 +bindd = $mod SHIFT, 8, Envoyer la fenรชtre vers l'espace 8, movetoworkspace, 8 +bindd = $mod SHIFT, 9, Envoyer la fenรชtre vers l'espace 9, movetoworkspace, 9 +bindd = $mod SHIFT, 0, Envoyer la fenรชtre vers l'espace 10, movetoworkspace, 10 + +# --- Multi-รฉcrans (comme i3 : Super+Ctrl+1/2 = รฉcran gauche/droit) ------------- +bindd = $mod CTRL, 1, Envoyer la fenรชtre vers l'รฉcran de gauche, movewindow, mon:l +bindd = $mod CTRL, 2, Envoyer la fenรชtre vers l'รฉcran de droite, movewindow, mon:r + +# --- Molette = changer d'espace de travail -------------------------------------- +bindd = $mod, mouse_up, Espace de travail prรฉcรฉdent, workspace, e-1 +bindd = $mod, mouse_down, Espace de travail suivant, workspace, e+1 + +# --- Scratchpad (espace spรฉcial) ------------------------------------------------- +bindd = $mod, S, Afficher le scratchpad, togglespecialworkspace, magic +bindd = $mod SHIFT, S, Envoyer la fenรชtre au scratchpad, movetoworkspace, special:magic + +# --- Captures d'รฉcran (grim/slurp โ†’ presse-papier ou ~/Images) ------------------- +bindd = , Print, Capture plein รฉcran vers le presse-papier, exec, grim - | wl-copy +bindd = $mod, Print, Capture d'une zone vers le presse-papier, exec, grim -g "$(slurp)" - | wl-copy +bindd = $mod SHIFT, Print, Capture d'une zone vers ~/Images, exec, sh -c 'mkdir -p ~/Images && grim -g "$(slurp)" ~/Images/capture_$(date +%Y-%m-%d_%H-%M-%S).png' + +# --- Multimรฉdia (touches XF86 : volume via PipeWire, lecture via playerctl) ------ +bindel = , XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+ +bindel = , XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- +bindl = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle +bindl = , XF86AudioPlay, exec, playerctl play-pause +bindl = , XF86AudioNext, exec, playerctl next +bindl = , XF86AudioPrev, exec, playerctl previous + +# --- Luminositรฉ de l'รฉcran (portables : touches Fn) ------------------------------ +bindel = , XF86MonBrightnessUp, exec, fws-brightness up +bindel = , XF86MonBrightnessDown, exec, fws-brightness down + +# --- Souris : dรฉplacer / redimensionner les fenรชtres ----------------------------- +bindm = $mod, mouse:272, movewindow +bindm = $mod, mouse:273, resizewindow + +# --- Rรจgles de fenรชtres (comme i3) ------------------------------------------------ +# Syntaxe Hyprland โ‰ฅ 0.55 : champs ยซ ยป + cibles ยซ match:โ€ฆ ยป +# (validรฉ contre le binaire avec --verify-config). +windowrule = float on, match:class ^(floating-term)$ +windowrule = size 900 550, match:class ^(floating-term)$ +windowrule = float on, match:class ^([Pp]avucontrol|org.pulseaudio.pavucontrol)$ +windowrule = float on, match:class ^(.?[Bb]lueman-manager.*)$ +windowrule = float on, match:class ^([Ff]ws-hello)$ +windowrule = float on, match:class ^([Ff]ws-about)$ +windowrule = float on, match:class ^([Ff]ws-bugreport)$ +windowrule = float on, match:title ^(Picture-in-Picture)$ \ No newline at end of file diff --git a/hypr/hyprlock-violet.conf b/hypr/hyprlock-violet.conf new file mode 100644 index 0000000..59c1e9c --- /dev/null +++ b/hypr/hyprlock-violet.conf @@ -0,0 +1,15 @@ +# Palette extraite de l'image de rรฉfรฉrence (Downloads/image.png) +# โ€” sourcรฉe par hyprlock.conf, rรฉfรฉrence unique pour tout le thรจme : +# +# Fond image : #29242e โ†’ rgba(41, 36, 46, x) +# Fond profond : #1f1a2e โ†’ rgba(31, 26, 46, x) +# Surface : #313244 (Catppuccin surface0, bordures inactives) +# Texte : #fafafa โ†’ rgba(250, 250, 250, 1.0) +# Lavande highlight: #c3b6f6 โ†’ rgba(195, 182, 246, x) +# Mauve : #cba6f7 โ†’ rgba(203, 166, 247, x) +# Indigo : #7064b6 โ†’ rgba(112, 100, 182, x) +# Teal : #94e2d5 โ†’ rgba(148, 226, 213, x) +# Teal clair : #8cebd4 โ†’ rgba(140, 235, 212, x) +# Rose : #f569ca โ†’ rgba(245, 105, 202, x) +# +# Fond d'รฉcran : ~/Images/Banner.png (via hyprpaper) \ No newline at end of file diff --git a/hypr/hyprlock.conf b/hypr/hyprlock.conf new file mode 100644 index 0000000..e48328b --- /dev/null +++ b/hypr/hyprlock.conf @@ -0,0 +1,90 @@ +# โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•— +# โ•‘ hyprlock โ€” รฉcran de verrouillage VIOLET ๐Ÿ’œ โ•‘ +# โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•Super+Lโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• + +source = ./hyprlock-violet.conf + +background { + monitor = + color = rgba(31, 26, 46, 1.0) # fond image #1f1a2e +} + +# Dรฉgradรฉ dรฉcoratif (bandeau vertical violet โ†’ lavande) ร  gauche +shape { + monitor = + size = 14, 100% + position = 0, 0 + halign = left + valign = center + rounding = 7 + rotations = 0 + gradient_from = rgba(195, 182, 246, 1.0) # lavande #c3b6f6 + gradient_to = rgba(112, 100, 182, 1.0) # indigo #7064b6 + angle = 180 +} + +# Grande lueur violette en fond (rectangle flou doux via dรฉgradรฉ) +shape { + monitor = + size = 60%, 3px + position = 0, 180 + halign = center + valign = center + rounding = 2 + angle = 0 + gradient_from = rgba(203, 166, 247, 0.9) + gradient_to = rgba(203, 166, 247, 0.0) +} + +# โ”€โ”€ Textes โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ +label { + monitor = + text = โŒ› $TIME + font_size = 90 + font_family = Noto Sans + color = rgba(250, 250, 250, 1.0) + position = 0, 220 + halign = center + valign = center +} + +label { + monitor = + text = Bonjour damien ๐Ÿ’œ + font_size = 22 + font_family = Noto Sans Italic + color = rgba(195, 182, 246, 0.95) + position = 0, 120 + halign = center + valign = center +} + +label { + monitor = + text = โŒจ clavier : ch / fr + font_size = 18 + font_family = Noto Sans + color = rgba(155, 112, 185, 0.8) + position = 0, -190 + halign = center + valign = center +} + +# โ”€โ”€ Champ mot de passe โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ +input-field { + monitor = + size = 320, 55 + outline_thickness = 3 + dots_center = true + dots_size = 0.28 + dots_spacing = 0.35 + dots_fade_time = 250 + outer_color = rgba(203, 166, 247, 0.9) # bord mauve #cba6f7 + inner_color = rgba(31, 26, 46, 0.92) # fond #1f1a2e + font_color = rgba(215, 200, 245, 1.0) # texte lavande + fade_on_empty = false + placeholder_text = Mot de passeโ€ฆ + position = 0, -80 + halign = center + valign = center +} \ No newline at end of file diff --git a/hypr/hyprpaper.conf b/hypr/hyprpaper.conf new file mode 100644 index 0000000..44f7860 --- /dev/null +++ b/hypr/hyprpaper.conf @@ -0,0 +1,16 @@ +# hyprpaper โ€” fond d'รฉcran : Banner.png (3440ร—1440) ๐Ÿ’œ +# TEMPLATE : le jeton WALLPAPER_PLACEHOLDER est remplacรฉ par le chemin +# rรฉel par install.sh (le fond est copiรฉ dans ~/Images/Banner.png). +# Installation manuelle : remplace WALLPAPER_PLACEHOLDER par le chemin +# absolu de ton image, ex. /home/toi/Images/Banner.png +# Format de config hyprpaper โ‰ฅ 0.8 (hyprtoolkit) : +# wallpaper { monitor = ... path = ... } +splash = false +ipc = on + +preload = __WALLPAPER__ + +wallpaper { + monitor = + path = __WALLPAPER__ +} \ No newline at end of file diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..725e121 --- /dev/null +++ b/install.sh @@ -0,0 +1,290 @@ +#!/usr/bin/env bash +# โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•— +# โ•‘ ๐Ÿ’œ violet-dotfiles โ€” installateur du thรจme VIOLET โ•‘ +# โ•‘ โ•‘ +# โ•‘ Usage : โ•‘ +# โ•‘ ./install.sh configs utilisateur (Hypr, โ•‘ +# โ•‘ Waybar, wofi, kitty, btop, โ•‘ +# โ•‘ GTK, zsh, fond d'รฉcran) โ•‘ +# โ•‘ ./install.sh --bash + prompt bash dans ~/.bashrc โ•‘ +# โ•‘ ./install.sh --grub + thรจme GRUB (demande sudo) โ•‘ +# โ•‘ ./install.sh --sddm + thรจme SDDM (demande sudo) โ•‘ +# โ•‘ ./install.sh --install-deps + paquets manquants (pacman) โ•‘ +# โ•‘ ./install.sh --all tout ce qui prรฉcรจde โ•‘ +# โ•‘ โ•‘ +# โ•‘ Les fichiers existants sont sauvegardรฉs dans โ•‘ +# โ•‘ ~/.violet-backup-/ avant d'รชtre remplacรฉs. โ•‘ +# โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• +set -euo pipefail + +SRC_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +HOME_DIR="${HOME:-$HOME}" + +DO_BASH=false +DO_GRUB=false +DO_SDDM=false +DO_DEPS=false + +for arg in "$@"; do + case "$arg" in + --bash) DO_BASH=true ;; + --grub) DO_GRUB=true ;; + --sddm) DO_SDDM=true ;; + --install-deps) DO_DEPS=true ;; + --all) DO_BASH=true; DO_GRUB=true; DO_SDDM=true; DO_DEPS=true ;; + *) echo "โš  Option inconnue : $arg (voir l'en-tรชte du script)" ;; + esac +done + +# โ”€โ”€ Couleurs pour l'affichage โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ +MAUVE=$'\e[38;2;203;166;247m' +RESET=$'\e[0m' +say() { printf '%s๐Ÿ’œ %s%s\n' "$MAUVE" "$*" "$RESET"; } +warn() { printf 'โš  %s\n' "$*"; } + +# โ”€โ”€ Vรฉrifications โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ +if [[ ! -d "$SRC_DIR/hypr" ]]; then + echo "Erreur : dossier hypr/ introuvable ร  cรดtรฉ du script." + echo "Lance install.sh depuis le dossier violet-dotfiles." + exit 1 +fi + +# โ”€โ”€ Sauvegarde des fichiers existants โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ +BACKUP_DIR="$HOME_DIR/.violet-backup-$(date +%Y%m%d-%H%M%S)" +backup() { + [[ -e "$1" ]] || return 0 + mkdir -p "$BACKUP_DIR" + local rel="${1#$HOME_DIR/}" + mkdir -p "$BACKUP_DIR/$(dirname "$rel")" + mv "$1" "$BACKUP_DIR/$rel" + warn "config existante sauvegardรฉe โ†’ ~/.violet-backup-*/$rel" +} + +# โ”€โ”€ Copie d'un dossier avec substitution โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ +install_dir() { # install_dir [sed-remplacements...] + local src="$1" dst="$2"; shift 2 + mkdir -p "$dst" + if (( $# > 0 )); then + # copie avec substitutions : chaque argument = "recherche|remplacement" + while IFS= read -r -d '' f; do + local rel="${f#$src/}" target="$dst/$rel" + mkdir -p "$(dirname "$target")" + local sed_args=() + for pair in "$@"; do + sed_args+=(-e "s|${pair%%|*}|${pair#*|}|g") + done + sed "${sed_args[@]}" "$f" > "$target" + done < <(find "$src" -type f -print0) + else + cp -r "$src"/. "$dst"/ + fi +} + +say "Installation du thรจme violet ๐Ÿ’œ" +say "Source : $SRC_DIR" +say "Cible : $HOME_DIR" + +# โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• +# 1. Fond d'รฉcran โ†’ ~/Images/Banner.png +# โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• +WALLPAPER_DST="$HOME_DIR/Images/Banner.png" +mkdir -p "$HOME_DIR/Images" +if [[ -f "$SRC_DIR/wallpapers/Banner.png" ]]; then + backup "$WALLPAPER_DST" + cp "$SRC_DIR/wallpapers/Banner.png" "$WALLPAPER_DST" + say "fond d'รฉcran โ†’ $WALLPAPER_DST" +else + WALLPAPER_DST="/chemin/vers/ton/fond.png" + warn "wallpapers/Banner.png absent : indique le chemin de ton fond d'รฉcran dans hypr/hyprpaper.conf" +fi + +# โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• +# 2. Hyprland (hyprland.conf, hyprlock, hyprpaper) +# โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• +HYPR_DST="$HOME_DIR/.config/hypr" +for f in hyprland.conf hyprlock.conf hyprlock-violet.conf; do + backup "$HYPR_DST/$f" +done +mkdir -p "$HYPR_DST" +cp "$SRC_DIR/hypr/hyprland.conf" "$HYPR_DST/" +cp "$SRC_DIR/hypr/hyprlock.conf" "$HYPR_DST/" +cp "$SRC_DIR/hypr/hyprlock-violet.conf" "$HYPR_DST/" + +# hyprpaper : chemin du fond d'รฉcran substituรฉ +backup "$HYPR_DST/hyprpaper.conf" +sed -e "s|__WALLPAPER__|$WALLPAPER_DST|g" \ + "$SRC_DIR/hypr/hyprpaper.conf" > "$HYPR_DST/hyprpaper.conf" + +# hyprlock : personnalise l'รฉcran avec le nom de l'utilisateur rรฉel +if [[ "$USER" != "damien" ]]; then + sed -i "s/Bonjour damien ๐Ÿ’œ/Bonjour $USER ๐Ÿ’œ/" "$HYPR_DST/hyprlock.conf" || true +fi +say "config Hyprland โ†’ $HYPR_DST" + +# โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• +# 3. Waybar +# โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• +WAYBAR_DST="$HOME_DIR/.config/waybar" +backup "$WAYBAR_DST/config" +backup "$WAYBAR_DST/style.css" +backup "$WAYBAR_DST/icons/logo.png" +mkdir -p "$WAYBAR_DST/icons" +cp "$SRC_DIR/waybar/config" "$WAYBAR_DST/config" +LOGO_DST="$WAYBAR_DST/icons/logo.png" +cp "$SRC_DIR/waybar/icons/logo.png" "$LOGO_DST" +sed -e "s|__WAYBAR_LOGO__|$LOGO_DST|g" \ + "$SRC_DIR/waybar/style.css" > "$WAYBAR_DST/style.css" +say "config Waybar โ†’ $WAYBAR_DST" + +# โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• +# 4. wofi, kitty, btop, GTK +# โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• +backup "$HOME_DIR/.config/wofi/config"; backup "$HOME_DIR/.config/wofi/style.css" +install_dir "$SRC_DIR/wofi" "$HOME_DIR/.config/wofi" +say "config wofi โ†’ ~/.config/wofi" + +backup "$HOME_DIR/.config/kitty/kitty.conf" +install_dir "$SRC_DIR/kitty" "$HOME_DIR/.config/kitty" +say "config kitty โ†’ ~/.config/kitty" + +backup "$HOME_DIR/.config/btop/themes/violet.theme" +install_dir "$SRC_DIR/btop" "$HOME_DIR/.config/btop" +say "thรจme btop โ†’ ~/.config/btop/themes/violet.theme" +# active le thรจme violet dans btop (s'il existe dรฉjร  une config) +if [[ -f "$HOME_DIR/.config/btop/btop.conf" ]] && ! grep -q 'color_theme = "violet"' "$HOME_DIR/.config/btop/btop.conf" 2>/dev/null; then + sed -i 's|^color_theme = .*|color_theme = "violet"|' "$HOME_DIR/.config/btop/btop.conf" 2>/dev/null || true +fi + +backup "$HOME_DIR/.config/gtk-3.0/settings.ini" +backup "$HOME_DIR/.config/gtk-4.0/settings.ini" +install_dir "$SRC_DIR/gtk/gtk-3.0" "$HOME_DIR/.config/gtk-3.0" +install_dir "$SRC_DIR/gtk/gtk-4.0" "$HOME_DIR/.config/gtk-4.0" +say "rรฉglages GTK โ†’ ~/.config/gtk-3.0 et gtk-4.0" + +# โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• +# 5. Prompt zsh +# โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• +mkdir -p "$HOME_DIR/.config/zsh" +backup "$HOME_DIR/.config/zsh/kali-violet.zshrc" +cp "$SRC_DIR/zsh/kali-violet.zshrc" "$HOME_DIR/.config/zsh/kali-violet.zshrc" +if [[ ! -f "$HOME_DIR/.zshrc" ]]; then + touch "$HOME_DIR/.zshrc" +fi +if ! grep -q "kali-violet.zshrc" "$HOME_DIR/.zshrc"; then + cat >> "$HOME_DIR/.zshrc" <<'EOF' + +# ๐Ÿ’œ Thรจme violet โ€” prompt Kali (installรฉ par violet-dotfiles) +[[ -f "$HOME/.config/zsh/kali-violet.zshrc" ]] && source "$HOME/.config/zsh/kali-violet.zshrc" +EOF +fi +say "prompt zsh โ†’ ~/.config/zsh/kali-violet.zshrc (source ajoutรฉe ร  ~/.zshrc)" + +# โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• +# 6. Prompt bash (option --bash) +# โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• +if $DO_BASH; then + mkdir -p "$HOME_DIR/.config/bash" + backup "$HOME_DIR/.config/bash/violet-prompt.bash" + cp "$SRC_DIR/bash/violet-prompt.bash" "$HOME_DIR/.config/bash/violet-prompt.bash" + if [[ ! -f "$HOME_DIR/.bashrc" ]]; then + touch "$HOME_DIR/.bashrc" + fi + if ! grep -q "violet-prompt.bash" "$HOME_DIR/.bashrc"; then + cat >> "$HOME_DIR/.bashrc" <<'EOF' + +# ๐Ÿ’œ Thรจme violet โ€” prompt Kali (installรฉ par violet-dotfiles) +[[ -f "$HOME/.config/bash/violet-prompt.bash" ]] && source "$HOME/.config/bash/violet-prompt.bash" +EOF + say "prompt bash โ†’ ~/.config/bash/violet-prompt.bash (source ajoutรฉe ร  ~/.bashrc)" + else + say "prompt bash dรฉjร  en place" + fi +fi + +# โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• +# 7. Thรจme GRUB (option --grub, sudo requis) +# โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• +if $DO_GRUB; then + if [[ ! -f "$SRC_DIR/grub/violet/theme.txt" ]]; then + warn "grub/violet/theme.txt introuvable โ€” รฉtape GRUB ignorรฉe" + else + SUDO="" + [[ $EUID -ne 0 ]] && SUDO="sudo" + say "installation du thรจme GRUB violet (sudo requis)โ€ฆ" + $SUDO mkdir -p /boot/grub/themes + $SUDO rm -rf /boot/grub/themes/violet + $SUDO cp -r "$SRC_DIR/grub/violet" /boot/grub/themes/ + # GRUB_THEME : remplace la ligne existante ou l'ajoute + if $SUDO grep -q '^GRUB_THEME=' /etc/default/grub; then + $SUDO sed -i 's|^GRUB_THEME=.*|GRUB_THEME="/boot/grub/themes/violet/theme.txt"|' /etc/default/grub + else + printf '\n# Thรจme violet (gรฉnรฉrรฉ automatiquement)\nGRUB_THEME="/boot/grub/themes/violet/theme.txt"\n' | $SUDO tee -a /etc/default/grub >/dev/null + fi + if ! $SUDO grep -q '^GRUB_GFXMODE=' /etc/default/grub; then + echo 'GRUB_GFXMODE=1920x1080,auto' | $SUDO tee -a /etc/default/grub >/dev/null + fi + $SUDO grub-mkconfig -o /boot/grub/grub.cfg + say "thรจme GRUB installรฉ (redรฉmarre pour le voir ๐Ÿ’œ)" + fi +fi + +# โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• +# 8. Thรจme SDDM (option --sddm, sudo requis) +# โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• +if $DO_SDDM; then + if [[ -d "$SRC_DIR/sddm/catppuccin-mocha-mauve" ]]; then + SUDO="" + [[ $EUID -ne 0 ]] && SUDO="sudo" + say "installation du thรจme SDDM (sudo requis)โ€ฆ" + $SUDO mkdir -p /usr/share/sddm/themes + $SUDO rm -rf /usr/share/sddm/themes/catppuccin-mocha-mauve + $SUDO cp -r "$SRC_DIR/sddm/catppuccin-mocha-mauve" /usr/share/sddm/themes/ + $SUDO mkdir -p /etc/sddm.conf.d + $SUDO cp "$SRC_DIR/sddm/10-fws.conf" /etc/sddm.conf.d/10-fws.conf + say "thรจme SDDM installรฉ (visible au prochain รฉcran de connexion)" + else + warn "sddm/catppuccin-mocha-mauve introuvable โ€” รฉtape SDDM ignorรฉe" + fi +fi + +# โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• +# 9. Dรฉpendances (option --install-deps, paquets Arch) +# โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• +DEPS=(hyprland hyprlock hyprpaper waybar wofi kitty btop mako grim slurp wl-clipboard \ + playerctl pavucontrol noto-fonts ttf-nerd-fonts-symbols network-manager-applet \ + blueman polkit-gnome dolphin) +if $DO_DEPS; then + if command -v pacman >/dev/null 2>&1; then + say "installation des dรฉpendances (pacman)โ€ฆ" + sudo pacman -S --needed --noconfirm "${DEPS[@]}" + else + warn "pas de pacman dรฉtectรฉ โ€” installe manuellement : ${DEPS[*]}" + warn "รฉquivalents Debian/Ubuntu : hyprland waybar wofi kitty btop grim slurp wl-clipboard playerctl pavucontrol fonts-noto-core fonts-noto-color-emoji blueman policykit-1-gnome dolphin" + fi +fi + +# โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• +# 10. Scripts FWS manquants (rappel) +# โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• +MISSING=() +for cmd in fws-powermenu fws-keys fws-updates-check fws-update fws-brightness fws-hello; do + command -v "$cmd" >/dev/null 2>&1 || MISSING+=("$cmd") +done +if (( ${#MISSING[@]} > 0 )); then + echo + warn "Commandes FWS absentes (scripts de la distro FWS, pas de panique) :" + warn " ${MISSING[*]}" + warn "โ†’ Les raccourcis/boutons qui les appellent ne feront rien tant qu'elles" + warn " n'existent pas. Voir README.md ยง ยซ Dรฉpendances FWS ยป pour les remplacer." +fi + +# โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• +# Fin +# โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• +echo +say "โœ” Terminรฉ !" +say "Recharge Hyprland (SUPER+SHIFT+C ou hyprctl reload) et redรฉmarre" +say "waybar pour voir le thรจme : killall waybar ; waybar &" +if [[ -d "$BACKUP_DIR" ]]; then + say "Anciennes configs : ~/.violet-backup-*/ (supprimables quand tout va bien)" +fi \ No newline at end of file diff --git a/kitty/kitty.conf b/kitty/kitty.conf new file mode 100644 index 0000000..e5f6d28 --- /dev/null +++ b/kitty/kitty.conf @@ -0,0 +1,89 @@ +# โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•— +# โ•‘ kitty โ€” thรจme VIOLET calquรฉ sur l'image de Damien ๐Ÿ’œ โ•‘ +# โ•‘ bg #29242e ยท texte #fafafa ยท lavande #c3b6f6 โ•‘ +# โ•‘ mauve #cba6f7 ยท teal #94e2d5 ยท rose #f569ca โ•‘ +# โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• + +font_family Noto Sans Mono +bold_font auto +italic_font auto +bold_italic_font auto +font_size 11.0 +modify_font cell_height 108% + +cursor_shape beam +cursor_shape_thin 1 +cursor_blink_interval 0.6 +cursor_stop_blinking_after 8 + +scrollback_lines 10000 +wheel_scroll_multiplier 5.0 +url_style curly +detect_urls yes +open_url_with default +allow_hyperlinks yes + +repaint_delay 10 +input_delay 3 +sync_to_monitor yes +enable_audio_bell no +visual_bell_duration 0.0 +window_padding_width 10 +hide_window_decorations yes +confirm_os_window_close 0 +placement_strategy center +remember_window_size yes + +# โ”€โ”€ Fond et texte : exactement l'image โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ +foreground #fafafa +background #29242e +background_opacity 0.94 +dim_opacity 0.55 +selection_foreground #1f1a2e +selection_background #7064b6 + +# Curseur : highlight lavande de l'image +cursor #c3b6f6 +cursor_text_color #1f1a2e + +# โ”€โ”€ Palette 16 couleurs tirรฉe de l'image โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ +# Normales +color0 #2a2438 # noir โ†’ fond plus profond +color1 #f569ca # rouge โ†’ rose de l'image (alertes) +color2 #8cebd4 # vert โ†’ teal clair de l'image +color3 #c3b6f6 # jaune โ†’ lavande highlight +color4 #7064b6 # bleu โ†’ indigo de l'image +color5 #cba6f7 # magenta โ†’ mauve Catppuccin +color6 #94e2d5 # cyan โ†’ teal de l'image +color7 #fafafa # blanc โ†’ texte image +# Vives +color8 #4a4160 # noir brillant (commentaires) +color9 #ff8fda # rose brillant +color10 #aef2e2 # teal brillant +color11 #d8cfff # lavande brillante +color12 #9a8cd8 # indigo brillant +color13 #e06abd # magenta de l'image +color14 #a8ecdf # teal doux +color15 #ffffff # blanc pur + +# โ”€โ”€ Onglets / fenรชtres kitty โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ +tab_bar_edge top +tab_bar_style powerline +tab_powerline_style slanted +active_tab_foreground #1f1a2e +active_tab_background #cba6f7 +inactive_tab_foreground #9a8cd8 +inactive_tab_background #313244 +tab_title_template " {index} {title}" +active_tab_font_style bold + +active_border_color #cba6f7 +inactive_border_color #313244 +bell_border_color #f569ca + +# โ”€โ”€ Raccourcis (style Kali : ctrl+shift+c/v) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ +map ctrl+shift+c copy_to_clipboard +map ctrl+shift+v paste_from_clipboard +map ctrl+shift+up scroll_line_up +map ctrl+shift+down scroll_line_down +map ctrl+shift+u kitten unicode_input \ No newline at end of file diff --git a/sddm/10-fws.conf b/sddm/10-fws.conf new file mode 100644 index 0000000..c961cc3 --- /dev/null +++ b/sddm/10-fws.conf @@ -0,0 +1,10 @@ +# SDDM โ€” รฉcran de connexion violet ๐Ÿ’œ +# Copie ce fichier dans /etc/sddm.conf.d/10-fws.conf (avec sudo), +# le thรจme ยซ catppuccin-mocha-mauve ยป est fourni dans ce dossier : +# sudo cp sddm/catppuccin-mocha-mauve /usr/share/sddm/themes/ +# sudo cp sddm/10-fws.conf /etc/sddm.conf.d/ +[General] +Numlock=on + +[Theme] +Current=catppuccin-mocha-mauve \ No newline at end of file diff --git a/sddm/catppuccin-mocha-mauve/Components/Clock.qml b/sddm/catppuccin-mocha-mauve/Components/Clock.qml new file mode 100644 index 0000000..72b5c38 --- /dev/null +++ b/sddm/catppuccin-mocha-mauve/Components/Clock.qml @@ -0,0 +1,14 @@ +import QtQuick 2.15 +import SddmComponents 2.0 + +Clock { + id: time + color: "#CDD6F4" + timeFont.family: config.Font + dateFont.family: config.Font + anchors { + margins: 10 + top: parent.top + right: parent.right + } +} diff --git a/sddm/catppuccin-mocha-mauve/Components/LoginPanel.qml b/sddm/catppuccin-mocha-mauve/Components/LoginPanel.qml new file mode 100644 index 0000000..eba1f16 --- /dev/null +++ b/sddm/catppuccin-mocha-mauve/Components/LoginPanel.qml @@ -0,0 +1,177 @@ +import QtQuick 2.15 +import QtQuick.Window 2.15 +import QtQuick.Controls 2.15 +import "../assets" + +Item { + property var user: userField.text + property var password: passwordField.text + property var session: sessionPanel.session + property var inputHeight: Screen.height * 0.032 + property var inputWidth: Screen.width * 0.16 + Rectangle { + id: loginBackground + anchors { + verticalCenter: parent.verticalCenter + horizontalCenter: parent.horizontalCenter + } + height: inputHeight * ( config.UserIcon == "true" ? 11.2 : 5.3 ) + width: inputWidth * 1.2 + radius: 5 + visible: config.LoginBackground == "true" ? true : false + color: "#181825" + } + Column { + spacing: 8 + anchors { + bottom: parent.bottom + left: parent.left + } + PowerButton { + id: powerButton + } + RebootButton { + id: rebootButton + } + SleepButton { + id: sleepButton + } + z: 5 + } + Column { + spacing: 8 + anchors { + bottom: parent.bottom + right: parent.right + } + SessionPanel { + id: sessionPanel + } + z: 5 + } + Column { + spacing: 8 + z: 5 + width: inputWidth + anchors { + verticalCenter: parent.verticalCenter + horizontalCenter: parent.horizontalCenter + } + Rectangle { + visible: config.UserIcon == "true" ? true : false + width: inputHeight * 5.7 ; height: inputHeight * 5.7 + color: "transparent" + Image { + source: Qt.resolvedUrl("../assets/defaultIcon.png") + height: parent.width + width: parent.width + } + Image { + // common icon path for KDE and GNOME + source: Qt.resolvedUrl("/var/lib/AccountsService/icons/" + user) + height: parent.width + width: parent.width + } + Image { + source: Qt.resolvedUrl(config.LoginBackground == "true" ? "../assets/maskDark.svg" : "../assets/mask.svg") + height: parent.width + width: parent.width + } + Image { + source: Qt.resolvedUrl("../assets/ring.svg") + height: parent.width + width: parent.width + } + anchors { + horizontalCenter: parent.horizontalCenter + } + } + UserField { + id: userField + height: inputHeight + width: parent.width + } + PasswordField { + id: passwordField + height: inputHeight + width: parent.width + onAccepted: loginButton.clicked() + } + Button { + id: loginButton + height: inputHeight + width: parent.width + enabled: user != "" && password != "" ? true : false + hoverEnabled: true + contentItem: Text { + id: buttonText + renderType: Text.NativeRendering + font { + family: config.Font + pointSize: config.FontSize + bold: true + } + horizontalAlignment: Text.AlignHCenter + verticalAlignment: Text.AlignVCenter + color: "#11111B" + text: "Login" + } + background: Rectangle { + id: buttonBackground + color: "#CBA6F7" + radius: 3 + } + states: [ + State { + name: "pressed" + when: loginButton.down + PropertyChanges { + target: buttonBackground + color: "#A6ADC8" + } + PropertyChanges { + target: buttonText + } + }, + State { + name: "hovered" + when: loginButton.hovered + PropertyChanges { + target: buttonBackground + color: "#A6ADC8" + } + PropertyChanges { + target: buttonText + } + }, + State { + name: "enabled" + when: loginButton.enabled + PropertyChanges { + target: buttonBackground + } + PropertyChanges { + target: buttonText + } + } + ] + transitions: Transition { + PropertyAnimation { + properties: "color" + duration: 300 + } + } + onClicked: { + sddm.login(user, password, session) + } + } + } + Connections { + target: sddm + + function onLoginFailed() { + passwordField.text = "" + passwordField.focus = true + } + } +} diff --git a/sddm/catppuccin-mocha-mauve/Components/PasswordField.qml b/sddm/catppuccin-mocha-mauve/Components/PasswordField.qml new file mode 100644 index 0000000..48d3f0f --- /dev/null +++ b/sddm/catppuccin-mocha-mauve/Components/PasswordField.qml @@ -0,0 +1,50 @@ +import QtQuick 2.15 +import QtQuick.Controls 2.15 + +TextField { + id: passwordField + focus: true + selectByMouse: true + placeholderText: "Password" + echoMode: TextInput.Password + passwordCharacter: "โ€ข" + passwordMaskDelay: config.PasswordShowLastLetter + selectionColor: "#6C7086" + renderType: Text.NativeRendering + font { + family: config.Font + pointSize: config.FontSize + bold: true + } + color: "#CDD6F4" + horizontalAlignment: TextInput.AlignHCenter + background: Rectangle { + id: passFieldBackground + radius: 3 + color: "#313244" + } + states: [ + State { + name: "focused" + when: passwordField.activeFocus + PropertyChanges { + target: passFieldBackground + color: "#45475A" + } + }, + State { + name: "hovered" + when: passwordField.hovered + PropertyChanges { + target: passFieldBackground + color: "#45475A" + } + } + ] + transitions: Transition { + PropertyAnimation { + properties: "color" + duration: 300 + } + } +} diff --git a/sddm/catppuccin-mocha-mauve/Components/PowerButton.qml b/sddm/catppuccin-mocha-mauve/Components/PowerButton.qml new file mode 100644 index 0000000..2cbec00 --- /dev/null +++ b/sddm/catppuccin-mocha-mauve/Components/PowerButton.qml @@ -0,0 +1,41 @@ +import QtQuick 2.15 +import QtQuick.Controls 2.15 + +Item { + implicitHeight: powerButton.height + implicitWidth: powerButton.width + Button { + id: powerButton + height: inputHeight + width: inputHeight + hoverEnabled: true + icon { + source: Qt.resolvedUrl("../icons/power.svg") + height: height + width: width + color: "#11111B" + } + background: Rectangle { + id: powerButtonBackground + radius: 3 + color: "#F38BA8" + } + states: [ + State { + name: "hovered" + when: powerButton.hovered + PropertyChanges { + target: powerButtonBackground + color: "#F5E0DC" + } + } + ] + transitions: Transition { + PropertyAnimation { + properties: "color" + duration: 300 + } + } + onClicked: sddm.powerOff() + } +} diff --git a/sddm/catppuccin-mocha-mauve/Components/RebootButton.qml b/sddm/catppuccin-mocha-mauve/Components/RebootButton.qml new file mode 100644 index 0000000..75df9d6 --- /dev/null +++ b/sddm/catppuccin-mocha-mauve/Components/RebootButton.qml @@ -0,0 +1,41 @@ +import QtQuick 2.15 +import QtQuick.Controls 2.15 + +Item { + implicitHeight: rebootButton.height + implicitWidth: rebootButton.width + Button { + id: rebootButton + height: inputHeight + width: inputHeight + hoverEnabled: true + icon { + source: Qt.resolvedUrl("../icons/reboot.svg") + height: height + width: width + color: "#11111B" + } + background: Rectangle { + id: rebootButtonBackground + radius: 3 + color: "#F38BA8" + } + states: [ + State { + name: "hovered" + when: rebootButton.hovered + PropertyChanges { + target: rebootButtonBackground + color: "#F5E0DC" + } + } + ] + transitions: Transition { + PropertyAnimation { + properties: "color" + duration: 300 + } + } + onClicked: sddm.reboot() + } +} diff --git a/sddm/catppuccin-mocha-mauve/Components/SessionPanel.qml b/sddm/catppuccin-mocha-mauve/Components/SessionPanel.qml new file mode 100644 index 0000000..5098f9d --- /dev/null +++ b/sddm/catppuccin-mocha-mauve/Components/SessionPanel.qml @@ -0,0 +1,158 @@ +import QtQuick 2.15 +import QtQuick.Controls 2.15 +import QtQml.Models 2.15 + +Item { + property var session: sessionList.currentIndex + implicitHeight: sessionButton.height + implicitWidth: sessionButton.width + DelegateModel { + id: sessionWrapper + model: sessionModel + delegate: ItemDelegate { + id: sessionEntry + height: inputHeight + width: parent.width + highlighted: sessionList.currentIndex == index + contentItem: Text { + renderType: Text.NativeRendering + font { + family: config.Font + pointSize: config.FontSize + bold: true + } + horizontalAlignment: Text.AlignHCenter + verticalAlignment: Text.AlignVCenter + color: "#CDD6F4" + text: name + } + background: Rectangle { + id: sessionEntryBackground + color: "#45475A" + radius: 3 + } + states: [ + State { + name: "hovered" + when: sessionEntry.hovered + PropertyChanges { + target: sessionEntryBackground + color: "#585B70" + } + } + ] + transitions: Transition { + PropertyAnimation { + property: "color" + duration: 300 + } + } + MouseArea { + anchors.fill: parent + onClicked: { + sessionList.currentIndex = index + sessionPopup.close() + } + } + } + } + Button { + id: sessionButton + height: inputHeight + width: inputHeight + hoverEnabled: true + icon { + source: Qt.resolvedUrl("../icons/settings.svg") + height: height + width: width + color: "#CDD6F4" + } + background: Rectangle { + id: sessionButtonBackground + color: "#313244" + radius: 3 + } + states: [ + State { + name: "pressed" + when: sessionButton.down + PropertyChanges { + target: sessionButtonBackground + color: "#45475A" + } + }, + State { + name: "hovered" + when: sessionButton.hovered + PropertyChanges { + target: sessionButtonBackground + color: "#585B70" + } + }, + State { + name: "selection" + when: sessionPopup.visible + PropertyChanges { + target: sessionButtonBackground + color: "#585B70" + } + } + ] + transitions: Transition { + PropertyAnimation { + properties: "color" + duration: 150 + } + } + onClicked: { + sessionPopup.visible ? sessionPopup.close() : sessionPopup.open() + sessionButton.state = "pressed" + } + } + Popup { + id: sessionPopup + width: inputWidth + padding * 2 + x: (sessionButton.width + sessionList.spacing) * -7.6 + y: -(contentHeight + padding * 2) + sessionButton.height + padding: inputHeight / 10 + background: Rectangle { + radius: 5.4 + color: "#313244" + } + contentItem: ListView { + id: sessionList + implicitHeight: contentHeight + spacing: 8 + model: sessionWrapper + currentIndex: sessionModel.lastIndex + clip: true + } + enter: Transition { + ParallelAnimation { + NumberAnimation { + property: "opacity" + from: 0 + to: 1 + duration: 400 + easing.type: Easing.OutExpo + } + NumberAnimation { + property: "x" + from: sessionPopup.x + (inputWidth * 0.1) + to: sessionPopup.x + duration: 500 + easing.type: Easing.OutExpo + } + } + } + exit: Transition { + NumberAnimation { + property: "opacity" + from: 1 + to: 0 + duration: 300 + easing.type: Easing.OutExpo + } + } + } +} diff --git a/sddm/catppuccin-mocha-mauve/Components/SleepButton.qml b/sddm/catppuccin-mocha-mauve/Components/SleepButton.qml new file mode 100644 index 0000000..88daafd --- /dev/null +++ b/sddm/catppuccin-mocha-mauve/Components/SleepButton.qml @@ -0,0 +1,41 @@ +import QtQuick 2.15 +import QtQuick.Controls 2.15 + +Item { + implicitHeight: sleepButton.height + implicitWidth: sleepButton.width + Button { + id: sleepButton + height: inputHeight + width: inputHeight + hoverEnabled: true + icon { + source: Qt.resolvedUrl("../icons/sleep.svg") + height: height + width: width + color: "#11111B" + } + background: Rectangle { + id: sleepButtonBg + color: "#F38BA8" + radius: 3 + } + states: [ + State { + name: "hovered" + when: sleepButton.hovered + PropertyChanges { + target: sleepButtonBg + color: "#F5E0DC" + } + } + ] + transitions: Transition { + PropertyAnimation { + properties: "color" + duration: 300 + } + } + onClicked: sddm.suspend() + } +} diff --git a/sddm/catppuccin-mocha-mauve/Components/UserField.qml b/sddm/catppuccin-mocha-mauve/Components/UserField.qml new file mode 100644 index 0000000..2aa2811 --- /dev/null +++ b/sddm/catppuccin-mocha-mauve/Components/UserField.qml @@ -0,0 +1,50 @@ +import QtQuick 2.15 +import QtQuick.Controls 2.15 + +TextField { + id: userField + height: inputHeight + width: inputWidth + selectByMouse: true + echoMode: TextInput.Normal + selectionColor: "#6C7086" + renderType: Text.NativeRendering + font { + family: config.Font + pointSize: config.FontSize + bold: true + } + color: "#CDD6F4" + horizontalAlignment: Text.AlignHCenter + placeholderText: "Username" + text: userModel.lastUser + background: Rectangle { + id: userFieldBackground + color: "#313244" + radius: 3 + } + states: [ + State { + name: "focused" + when: userField.activeFocus + PropertyChanges { + target: userFieldBackground + color: "#45475A" + } + }, + State { + name: "hovered" + when: userField.hovered + PropertyChanges { + target: userFieldBackground + color: "#45475A" + } + } + ] + transitions: Transition { + PropertyAnimation { + properties: "color" + duration: 300 + } + } +} diff --git a/sddm/catppuccin-mocha-mauve/Main.qml b/sddm/catppuccin-mocha-mauve/Main.qml new file mode 100644 index 0000000..dd634c8 --- /dev/null +++ b/sddm/catppuccin-mocha-mauve/Main.qml @@ -0,0 +1,48 @@ +import QtQuick 2.15 +import QtQuick.Window 2.15 +import QtQuick.Controls 2.15 +import "Components" + +Item { + id: root + height: Screen.height + width: Screen.width + Rectangle { + id: background + anchors.fill: parent + height: parent.height + width: parent.width + z: 0 + color: "#1E1E2E" + } + Image { + id: backgroundImage + anchors.fill: parent + height: parent.height + width: parent.width + fillMode: Image.PreserveAspectCrop + visible: config.CustomBackground == "true" ? true : false + z: 1 + source: config.Background + asynchronous: false + cache: true + mipmap: true + clip: true + } + Item { + id: mainPanel + z: 3 + anchors { + fill: parent + margins: 50 + } + Clock { + id: time + visible: config.ClockEnabled == "true" ? true : false + } + LoginPanel { + id: loginPanel + anchors.fill: parent + } + } +} diff --git a/sddm/catppuccin-mocha-mauve/assets/angle-down.png b/sddm/catppuccin-mocha-mauve/assets/angle-down.png new file mode 100644 index 0000000..f621bfc Binary files /dev/null and b/sddm/catppuccin-mocha-mauve/assets/angle-down.png differ diff --git a/sddm/catppuccin-mocha-mauve/assets/defaultIcon.png b/sddm/catppuccin-mocha-mauve/assets/defaultIcon.png new file mode 100644 index 0000000..7d29e39 Binary files /dev/null and b/sddm/catppuccin-mocha-mauve/assets/defaultIcon.png differ diff --git a/sddm/catppuccin-mocha-mauve/assets/mask.svg b/sddm/catppuccin-mocha-mauve/assets/mask.svg new file mode 100644 index 0000000..fb707d3 --- /dev/null +++ b/sddm/catppuccin-mocha-mauve/assets/mask.svg @@ -0,0 +1,3 @@ + + + diff --git a/sddm/catppuccin-mocha-mauve/assets/maskDark.svg b/sddm/catppuccin-mocha-mauve/assets/maskDark.svg new file mode 100644 index 0000000..4b32597 --- /dev/null +++ b/sddm/catppuccin-mocha-mauve/assets/maskDark.svg @@ -0,0 +1,3 @@ + + + diff --git a/sddm/catppuccin-mocha-mauve/assets/ring.svg b/sddm/catppuccin-mocha-mauve/assets/ring.svg new file mode 100644 index 0000000..41b0676 --- /dev/null +++ b/sddm/catppuccin-mocha-mauve/assets/ring.svg @@ -0,0 +1,3 @@ + + + diff --git a/sddm/catppuccin-mocha-mauve/backgrounds/wall.png b/sddm/catppuccin-mocha-mauve/backgrounds/wall.png new file mode 100644 index 0000000..a9a8041 Binary files /dev/null and b/sddm/catppuccin-mocha-mauve/backgrounds/wall.png differ diff --git a/sddm/catppuccin-mocha-mauve/icons/power.svg b/sddm/catppuccin-mocha-mauve/icons/power.svg new file mode 100644 index 0000000..70495dd --- /dev/null +++ b/sddm/catppuccin-mocha-mauve/icons/power.svg @@ -0,0 +1,14 @@ + + + + + + + \ No newline at end of file diff --git a/sddm/catppuccin-mocha-mauve/icons/reboot.svg b/sddm/catppuccin-mocha-mauve/icons/reboot.svg new file mode 100644 index 0000000..5506bbb --- /dev/null +++ b/sddm/catppuccin-mocha-mauve/icons/reboot.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/sddm/catppuccin-mocha-mauve/icons/settings.svg b/sddm/catppuccin-mocha-mauve/icons/settings.svg new file mode 100644 index 0000000..9a64fbd --- /dev/null +++ b/sddm/catppuccin-mocha-mauve/icons/settings.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/sddm/catppuccin-mocha-mauve/icons/sleep.svg b/sddm/catppuccin-mocha-mauve/icons/sleep.svg new file mode 100644 index 0000000..4102f2d --- /dev/null +++ b/sddm/catppuccin-mocha-mauve/icons/sleep.svg @@ -0,0 +1,5 @@ + + +moon + + \ No newline at end of file diff --git a/sddm/catppuccin-mocha-mauve/metadata.desktop b/sddm/catppuccin-mocha-mauve/metadata.desktop new file mode 100644 index 0000000..a96d702 --- /dev/null +++ b/sddm/catppuccin-mocha-mauve/metadata.desktop @@ -0,0 +1,14 @@ +[SddmGreeterTheme] +Name=Catppuccin Mocha mauve +Description=Soothing pastel theme for SDDM +Type=sddm-theme +Version=2.1 +Website=https://github.com/catppuccin/sddm +Screenshot=preview.png +MainScript=Main.qml +ConfigFile=theme.conf +TranslationsDirectory=translations +Theme-Id=Catppuccin +Theme-API=2.0 +License=MIT +QtVersion=6 diff --git a/sddm/catppuccin-mocha-mauve/preview.png b/sddm/catppuccin-mocha-mauve/preview.png new file mode 100644 index 0000000..ad78e68 Binary files /dev/null and b/sddm/catppuccin-mocha-mauve/preview.png differ diff --git a/sddm/catppuccin-mocha-mauve/theme.conf b/sddm/catppuccin-mocha-mauve/theme.conf new file mode 100644 index 0000000..77710ec --- /dev/null +++ b/sddm/catppuccin-mocha-mauve/theme.conf @@ -0,0 +1,12 @@ +[General] +Font="Noto Sans" +FontSize=9 +ClockEnabled="true" +CustomBackground="true" +LoginBackground="false" +Background="backgrounds/wall.png" +UserIcon="false" + +# Uncomment this option to show the last letter of the password +# for the number of milliseconds specified +# PasswordShowLastLetter=1000 diff --git a/wallpapers/Banner.png b/wallpapers/Banner.png new file mode 100644 index 0000000..6e1c4b0 Binary files /dev/null and b/wallpapers/Banner.png differ diff --git a/waybar/config b/waybar/config new file mode 100644 index 0000000..3100fac --- /dev/null +++ b/waybar/config @@ -0,0 +1,103 @@ +{ + "layer": "top", + "position": "top", + "height": 36, + "spacing": 2, + "margin-top": 6, + "margin-left": 10, + "margin-right": 10, + "modules-left": ["hyprland/workspaces", "hyprland/window"], + "modules-center": ["clock"], + "modules-right": ["custom/updates", "custom/keyhelp", "backlight", "pulseaudio", "bluetooth", "network", "cpu", "memory", "battery", "tray", "custom/power"], + + "custom/power": { + "format": " ", + "tooltip-format": "Alimentation (SUPER+X)", + "on-click": "fws-powermenu" + }, + + "custom/updates": { + "exec": "fws-updates-check", + "interval": 1800, + "tooltip-format": "Mises ร  jour disponibles โ€” clic pour installer", + "on-click": "kitty -e fws-update" + }, + + "hyprland/workspaces": { + "format": "{id}", + "on-click": "activate", + "on-scroll-up": "hyprctl dispatch workspace e-1", + "on-scroll-down": "hyprctl dispatch workspace e+1" + }, + "hyprland/window": { + "max-length": 45, + "separate-outputs": true + }, + "clock": { + "format": "๓ฐฅ” {:%H:%M %A %d %B %Y}", + "format-alt": "๓ฐฅ” {:%H:%M}", + "tooltip-format": "{calendar}", + "calendar": { + "format": { + "today": "{}" + } + } + }, + "custom/keyhelp": { + "format": "๓ฐŒŒ Raccourcis", + "tooltip-format": "Raccourcis clavier (SUPER+K)", + "on-click": "fws-keys" + }, + "backlight": { + "format": "{icon} {percent}%", + "format-icons": ["๓ฐƒž", "๓ฐƒŸ", "๓ฐƒ "], + "on-scroll-up": "fws-brightness up", + "on-scroll-down": "fws-brightness down", + "tooltip-format": "Luminositรฉ {percent}% (molette pour rรฉgler)" + }, + "pulseaudio": { + "format": "{icon} {volume}%", + "format-muted": "๓ฐŸ muet", + "format-icons": { "default": ["๓ฐ•ฟ", "๓ฐ–€", "๓ฐ•พ"] }, + "on-click": "pavucontrol", + "on-click-right": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle", + "on-scroll-up": "wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 2%+", + "on-scroll-down": "wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-", + "tooltip-format": "{desc} โ€” clic : mixeur, clic droit : muet" + }, + "bluetooth": { + "format": "๓ฐ‚ฏ", + "format-disabled": "๓ฐ‚ฒ", + "format-connected": "๓ฐ‚ฑ {num_connections}", + "format-no-controller": "", + "on-click": "blueman-manager", + "tooltip-format": "{controller_alias}\t{controller_address}", + "tooltip-format-connected": "{device_enumerate}" + }, + "network": { + "format-wifi": "๓ฐคจ {essid}", + "format-ethernet": "๓ฐˆ€ {ipaddr}", + "format-disconnected": "๓ฐคญ hors ligne", + "tooltip-format": "{ifname} โ€” {ipaddr}\nโ‡ก {bandwidthUpBytes} โ‡ฃ {bandwidthDownBytes}" + }, + "cpu": { + "format": " {usage}%", + "interval": 3 + }, + "memory": { + "format": " {percentage}%", + "interval": 3, + "tooltip-format": "{used:0.1f} / {total:0.1f} Gio" + }, + "battery": { + "states": { "warning": 25, "critical": 10 }, + "format": "{icon} {capacity}%", + "format-charging": "๓ฐ‚„ {capacity}%", + "format-icons": ["๓ฐบ", "๓ฐผ", "๓ฐพ", "๓ฐ‚€", "๓ฐน"], + "tooltip-format": "{timeTo}" + }, + "tray": { + "spacing": 8, + "icon-size": 16 + } +} \ No newline at end of file diff --git a/waybar/icons/logo.png b/waybar/icons/logo.png new file mode 100644 index 0000000..dda0772 Binary files /dev/null and b/waybar/icons/logo.png differ diff --git a/waybar/style.css b/waybar/style.css new file mode 100644 index 0000000..8e54d7a --- /dev/null +++ b/waybar/style.css @@ -0,0 +1,119 @@ +/* FWS โ€” style Waybar v2 โ€” ร‰dition VIOLETTE ๐Ÿ’œ (palette de l'image) + bg #29242e ยท lavande #c3b6f6 ยท mauve #cba6f7 ยท teal #94e2d5 ยท rose #f569ca */ + +* { + font-family: "Noto Sans", "Symbols Nerd Font", sans-serif; + font-size: 13px; + min-height: 0; +} + +window#waybar { + background: rgba(41, 36, 46, 0.88); /* fond image #29242e */ + color: #fafafa; /* texte image */ + border: 1px solid rgba(195, 182, 246, 0.35); + border-radius: 14px; +} + +tooltip { + background: #29242e; + border: 1px solid #c3b6f6; + border-radius: 10px; +} +tooltip label { color: #fafafa; } + +/* --- Espaces de travail --------------------------------------------------- */ +#workspaces { + background: #1f1a2e; /* fond profond */ + margin: 5px 4px; + border-radius: 10px; + padding: 0 4px; +} + +#workspaces button { + color: #9a8cd8; /* lavande grise */ + padding: 0 8px; + margin: 3px 2px; + border: none; + border-radius: 8px; + background: transparent; + transition: all 0.2s ease; +} + +#workspaces button.active { + color: #1f1a2e; + background: #cba6f7; /* mauve */ + font-weight: bold; +} + +#workspaces button:hover { + color: #fafafa; + background: #3a3350; + box-shadow: none; +} + +#window { + color: #9a8cd8; + margin-left: 10px; + font-style: italic; +} + +/* --- Horloge (centre) ------------------------------------------------------ */ +#clock { + color: #fafafa; + font-weight: bold; + background: #1f1a2e; + padding: 0 16px; + margin: 5px 0; + border-radius: 10px; +} + +/* --- Modules de droite : pilules ------------------------------------------- */ +#custom-keyhelp, +#backlight, +#pulseaudio, +#bluetooth, +#network, +#cpu, +#memory, +#battery, +#tray { + background: #1f1a2e; + padding: 0 12px; + margin: 5px 3px; + border-radius: 10px; + color: #fafafa; +} + +#custom-keyhelp { + background: #cba6f7; /* bouton d'appel : mauve plein */ + color: #1f1a2e; + font-weight: bold; +} +#custom-keyhelp:hover { background: #c3b6f6; } + +#custom-power { + background-color: #1f1a2e; /* pilule comme les autres modules */ + background-image: url("__WAYBAR_LOGO__"); + background-size: 16px 16px; + background-repeat: no-repeat; + background-position: center; + min-width: 18px; + padding: 0 12px; + margin: 5px 10px 5px 3px; /* dรฉcalรฉ du bord droit */ + border-radius: 10px; +} +#custom-power:hover { background-color: #3a3350; } + +#backlight { color: #c3b6f6; } /* lavande */ +#pulseaudio { color: #cba6f7; } +#pulseaudio.muted { color: #6b6180; } +#bluetooth { color: #d8cfff; } +#bluetooth.disabled { color: #6b6180; } +#network { color: #94e2d5; } /* teal */ +#network.disconnected { color: #f569ca; } +#cpu { color: #9a8cd8; } /* indigo clair */ +#memory { color: #e06abd; } /* magenta de l'image */ + +#battery.warning { color: #c3b6f6; } +#battery.critical { color: #f569ca; } +#battery.charging { color: #8cebd4; } \ No newline at end of file diff --git a/wofi/config b/wofi/config new file mode 100644 index 0000000..170cac5 --- /dev/null +++ b/wofi/config @@ -0,0 +1,7 @@ +# FWS โ€” configuration wofi (menu d'applications). +insensitive=true +allow_images=true +image_size=24 +prompt=Applications +width=560 +height=440 \ No newline at end of file diff --git a/wofi/style.css b/wofi/style.css new file mode 100644 index 0000000..46dbac1 --- /dev/null +++ b/wofi/style.css @@ -0,0 +1,42 @@ +/* FWS โ€” style wofi (menu d'applications Super+R) โ€” VIOLET, palette image ๐Ÿ’œ */ + +window { + background-color: rgba(41, 36, 46, 0.96); /* fond image #29242e */ + border: 2px solid #cba6f7; + border-radius: 14px; + font-family: "Noto Sans", sans-serif; + font-size: 14px; +} + +#input { + background-color: #1f1a2e; /* fond profond */ + color: #fafafa; + border: none; + border-radius: 10px; + margin: 12px; + padding: 8px 12px; +} + +#input image { color: #c3b6f6; } + +#inner-box { + margin: 0 8px 8px 8px; +} + +#entry { + padding: 8px 10px; + border-radius: 10px; + color: #fafafa; +} + +#entry:selected { + background-color: #cba6f7; + color: #1f1a2e; +} + +#entry:selected #text { color: #1f1a2e; } + +#text { + margin-left: 8px; + color: inherit; +} \ No newline at end of file diff --git a/zsh/kali-violet.zshrc b/zsh/kali-violet.zshrc new file mode 100644 index 0000000..4b4f664 --- /dev/null +++ b/zsh/kali-violet.zshrc @@ -0,0 +1,72 @@ +# โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•— +# โ•‘ Prompt zsh style Kali โ€” couleurs EXACTES de tty.png (image โ•‘ +# โ•‘ de rรฉfรฉrence, extraites au pixel prรจs par analyse PNG) โ•‘ +# โ•‘ โ•ญโ”€โ”€(user๐Ÿ’€host)-[~/chemin]-(branche) โ•‘ +# โ•‘ $ โ•‘ +# โ•‘ Boรฎtes/bordures : mauve #cba6f7 (203,166,247) โ•‘ +# โ•‘ Texte/chemin : bleu clair #89b4fa (137,180,250) โ•‘ +# โ•‘ $ / erreur : rose #f4c1e6 (244,193,230) โ•‘ +# โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• + +# Git info : branche + รฉtat +autoload -Uz vcs_info +zstyle ':vcs_info:git:*' formats ' %F{#cba6f7}(%F{#89b4fa}%b%F{#cba6f7})%f' +zstyle ':vcs_info:git:*' actionformats ' %F{#cba6f7}(%F{#89b4fa}%b|%a%F{#cba6f7})%f' +zstyle ':vcs_info:*' enable git +precmd() { vcs_info; } + +MAUVE="%F{#cba6f7}" # mauve โ€” boรฎtes et bordures (tty.png) +BLEU="%F{#89b4fa}" # bleu clair โ€” texte et chemin (tty.png) +ROSE="%F{#f4c1e6}" # rose โ€” $ et code d'erreur (tty.png) +RESET="%f" + +# โ”€โ”€ Prompt droit : heure en mauve discret โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ +RPROMPT="${MAUVE}โšก %T${RESET}" + +# โ”€โ”€ Dernier code d'erreur, affichรฉ en rose si โ‰  0 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ +prompt_status() { + local code=$? + if (( code != 0 )); then + print -P "${ROSE}[$code]${RESET} " + fi +} + +# โ”€โ”€ Prompt principal (calquรฉ sur tty.png, au pixel prรจs) โ”€โ”€โ”€โ”€ +setopt PROMPT_SUBST +PROMPT=' +${MAUVE}โ•ญโ”€โ”€(${BLEU}%n@%m${MAUVE})-[${BLEU}%~${MAUVE}]${vcs_info_msg_0_}$(prompt_status) +${ROSE}$ ${RESET}' + +# โ”€โ”€ Couleurs du terminal โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ +alias ls='ls --color=auto' +alias grep='grep --color=auto' +alias ip='ip -color=auto' +alias diff='diff --color=auto' +alias less='less -R' + +# ls assortie ร  tty.png : dossiers mauve, liens bleu, exรฉcutables rose +if command -v dircolors >/dev/null; then + eval "$(dircolors -b | sed \ + -e 's/dir=01;34/dir=01;38;2;203;166;247/' \ + -e 's/:ln=01;36:/:ln=01;38;2;137;180;250:/' \ + -e 's/:ex=01;32:/:ex=01;38;2;244;193;230:/')" +fi + +# โ”€โ”€ Historique โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ +HISTSIZE=10000 +SAVEHIST=10000 +HISTFILE=~/.zsh_history +setopt SHARE_HISTORY HIST_IGNORE_ALL_DUPS HIST_REDUCE_BLANKS + +# โ”€โ”€ Confort clavier โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ +bindkey -e +bindkey '^[[1;5C' forward-word +bindkey '^[[1;5D' backward-word +bindkey '^[.' insert-last-word + +# โ”€โ”€ Alias pratiques โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ +alias update='sudo pacman -Syu' +alias cls='clear; echo -e "\e[38;2;203;166;247m ๐Ÿ’œ Terminal violet prรชt. ๐Ÿ’œ\e[0m"' +alias ll='ls -lah --color=auto' +alias ..='cd ..' +alias pkg='pacman -Q' \ No newline at end of file