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 <noreply@codebuff.com>
No files matched your search
@@ -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-<date>/`.
|
||||
|
||||
### 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/<nom>/`, 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-<date>/` |
|
||||
|
||||
---
|
||||
|
||||
## ℹ️ 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.
|
||||
@@ -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'
|
||||
@@ -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"
|
||||
@@ -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
|
||||
|
After Width: | Height: | Size: 131 KiB |
|
After Width: | Height: | Size: 68 B |
|
After Width: | Height: | Size: 68 B |
|
After Width: | Height: | Size: 68 B |
|
After Width: | Height: | Size: 68 B |
|
After Width: | Height: | Size: 68 B |
|
After Width: | Height: | Size: 68 B |
|
After Width: | Height: | Size: 68 B |
|
After Width: | Height: | Size: 68 B |
|
After Width: | Height: | Size: 68 B |
|
After Width: | Height: | Size: 75 B |
|
After Width: | Height: | Size: 75 B |
@@ -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%
|
||||
}
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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 « <règle> <valeur> » + 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)$
|
||||
@@ -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)
|
||||
@@ -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 = <i><span foreground=\"#c3b6f6\">Mot de passe…</span></i>
|
||||
position = 0, -80
|
||||
halign = center
|
||||
valign = center
|
||||
}
|
||||
@@ -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__
|
||||
}
|
||||
@@ -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-<date>/ 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 <src> <dst> [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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 6.3 KiB |
|
After Width: | Height: | Size: 104 KiB |
@@ -0,0 +1,3 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="192" height="192" viewBox="0 0 50.8 50.8">
|
||||
<path d="M0 0v25.4A25.4 25.4 0 0 1 25.4 0zm25.4 0a25.4 25.4 0 0 1 25.4 25.4V0zm25.4 25.4a25.4 25.4 0 0 1-25.4 25.4h25.4zM25.4 50.8A25.4 25.4 0 0 1 0 25.4v25.4z" style="fill-opacity:1;stroke:none;stroke-width:4.7625;fill:#1e1e2e"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 330 B |
@@ -0,0 +1,3 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="192" height="192" viewBox="0 0 50.8 50.8">
|
||||
<path d="M0 0v25.4A25.4 25.4 0 0 1 25.4 0zm25.4 0a25.4 25.4 0 0 1 25.4 25.4V0zm25.4 25.4a25.4 25.4 0 0 1-25.4 25.4h25.4zM25.4 50.8A25.4 25.4 0 0 1 0 25.4v25.4z" style="fill-opacity:1;stroke:none;stroke-width:4.7625;fill:#181825"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 330 B |
@@ -0,0 +1,3 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="192" height="192" viewBox="0 0 50.8 50.8">
|
||||
<path d="M25.4 0A25.4 25.4 0 0 0 0 25.4a25.4 25.4 0 0 0 25.4 25.4 25.4 25.4 0 0 0 25.4-25.4A25.4 25.4 0 0 0 25.4 0m0 1.588A23.813 23.813 0 0 1 49.213 25.4 23.813 23.813 0 0 1 25.4 49.213 23.813 23.813 0 0 1 1.588 25.4 23.813 23.813 0 0 1 25.4 1.588" style="fill:#cdd6f4;stroke-width:.264583"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 393 B |
|
After Width: | Height: | Size: 18 KiB |
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<svg fill="#000000" height="800px" width="800px" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
viewBox="0 0 198.715 198.715" xml:space="preserve">
|
||||
<g>
|
||||
<path d="M161.463,48.763c-2.929-2.929-7.677-2.929-10.607,0c-2.929,2.929-2.929,7.677,0,10.606
|
||||
c13.763,13.763,21.342,32.062,21.342,51.526c0,19.463-7.579,37.761-21.342,51.523c-14.203,14.204-32.857,21.305-51.516,21.303
|
||||
c-18.659-0.001-37.322-7.104-51.527-21.309c-28.405-28.405-28.402-74.625,0.005-103.032c2.929-2.929,2.929-7.678,0-10.606
|
||||
c-2.929-2.929-7.677-2.929-10.607,0C2.956,83.029,2.953,138.766,37.206,173.019c17.132,17.132,39.632,25.697,62.135,25.696
|
||||
c22.497-0.001,44.997-8.564,62.123-25.69c16.595-16.594,25.734-38.659,25.734-62.129C187.199,87.425,178.059,65.359,161.463,48.763
|
||||
z"/>
|
||||
<path d="M99.332,97.164c4.143,0,7.5-3.358,7.5-7.5V7.5c0-4.142-3.357-7.5-7.5-7.5s-7.5,3.358-7.5,7.5v82.164
|
||||
C91.832,93.807,95.189,97.164,99.332,97.164z"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.0 KiB |
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="1080" height="1080" viewBox="0 0 1080 1080" xml:space="preserve">
|
||||
<defs>
|
||||
</defs>
|
||||
<g transform="matrix(1 0 0 1 540 540)" id="2a220bb6-5b48-475d-961e-cf61e288ad30" >
|
||||
<rect style="stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-dashoffset: 0; stroke-linejoin: miter; stroke-miterlimit: 4; fill: rgb(255,255,255); fill-rule: nonzero; opacity: 1; visibility: hidden;" vector-effect="non-scaling-stroke" x="-540" y="-540" rx="0" ry="0" width="1080" height="1080" />
|
||||
</g>
|
||||
<g transform="matrix(1 0 0 1 540 540)" id="fd45914b-ae78-4c99-8f0c-f2807b2dc79c" >
|
||||
</g>
|
||||
<g transform="matrix(45.29 0 0 45.29 556.31 508.95)" id="95767c2e-b581-4faa-9009-e8003f7e8866" >
|
||||
<path style="stroke: rgb(0,0,0); stroke-width: 0; stroke-dasharray: none; stroke-linecap: butt; stroke-dashoffset: 0; stroke-linejoin: miter; stroke-miterlimit: 4; fill: rgb(0,0,0); fill-rule: nonzero; opacity: 1;" vector-effect="non-scaling-stroke" transform=" translate(-8.36, -16)" d="M 15.88 13.84 C 14.200000000000001 10.36 10.440000000000001 8.6 6.840000000000002 9.24 L 7.800000000000002 7.44 C 8.040000000000001 7.04 7.880000000000002 6.5200000000000005 7.480000000000001 6.32 C 7.080000000000001 6.08 6.560000000000001 6.24 6.360000000000001 6.640000000000001 L 4.400000000000001 10.280000000000001 C 4.400000000000001 10.280000000000001 3.9600000000000013 11.000000000000002 4.6400000000000015 11.32 L 8.280000000000001 13.280000000000001 C 8.4 13.360000000000001 8.56 13.4 8.680000000000001 13.4 C 8.96 13.4 9.280000000000001 13.24 9.400000000000002 12.96 C 9.640000000000002 12.56 9.480000000000002 12.040000000000001 9.080000000000002 11.84 L 7.200000000000002 10.8 C 10.040000000000003 10.32 13.000000000000002 11.760000000000002 14.320000000000002 14.48 C 15.920000000000002 17.8 14.520000000000001 21.8 11.200000000000003 23.36 C 9.600000000000003 24.12 7.8000000000000025 24.24 6.120000000000003 23.64 C 4.440000000000003 23.040000000000003 3.0800000000000027 21.84 2.320000000000003 20.240000000000002 C 1.560000000000003 18.64 1.440000000000003 16.840000000000003 2.0400000000000027 15.160000000000002 C 2.200000000000003 14.720000000000002 1.9600000000000026 14.240000000000002 1.5200000000000027 14.080000000000002 C 1.1200000000000028 14.000000000000002 0.6400000000000027 14.240000000000002 0.48000000000000265 14.680000000000001 C -0.23999999999999733 16.8 -0.11999999999999733 19.040000000000003 0.8400000000000026 21.040000000000003 C 1.8000000000000025 23.040000000000003 3.4800000000000026 24.560000000000002 5.600000000000002 25.320000000000004 C 6.520000000000002 25.640000000000004 7.440000000000002 25.800000000000004 8.360000000000003 25.800000000000004 C 9.600000000000003 25.800000000000004 10.840000000000003 25.520000000000003 11.960000000000003 24.960000000000004 C 16.120000000000005 22.960000000000004 17.880000000000003 17.960000000000004 15.880000000000003 13.840000000000005 z" stroke-linecap="round" />
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.0 KiB |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M24 13.616v-3.232c-1.651-.587-2.694-.752-3.219-2.019v-.001c-.527-1.271.1-2.134.847-3.707l-2.285-2.285c-1.561.742-2.433 1.375-3.707.847h-.001c-1.269-.526-1.435-1.576-2.019-3.219h-3.232c-.582 1.635-.749 2.692-2.019 3.219h-.001c-1.271.528-2.132-.098-3.707-.847l-2.285 2.285c.745 1.568 1.375 2.434.847 3.707-.527 1.271-1.584 1.438-3.219 2.02v3.232c1.632.58 2.692.749 3.219 2.019.53 1.282-.114 2.166-.847 3.707l2.285 2.286c1.562-.743 2.434-1.375 3.707-.847h.001c1.27.526 1.436 1.579 2.019 3.219h3.232c.582-1.636.75-2.69 2.027-3.222h.001c1.262-.524 2.12.101 3.698.851l2.285-2.286c-.744-1.563-1.375-2.433-.848-3.706.527-1.271 1.588-1.44 3.221-2.021zm-12 2.384c-2.209 0-4-1.791-4-4s1.791-4 4-4 4 1.791 4 4-1.791 4-4 4z"/></svg>
|
||||
|
After Width: | Height: | Size: 811 B |
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<svg fill="#000000" width="800px" height="800px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
||||
<title>moon</title>
|
||||
<path d="M10.895 7.574c0 7.55 5.179 13.67 11.567 13.67 1.588 0 3.101-0.38 4.479-1.063-1.695 4.46-5.996 7.636-11.051 7.636-6.533 0-11.83-5.297-11.83-11.83 0-4.82 2.888-8.959 7.023-10.803-0.116 0.778-0.188 1.573-0.188 2.39z"></path>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 419 B |
@@ -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
|
||||
|
After Width: | Height: | Size: 34 KiB |
@@ -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
|
||||
|
After Width: | Height: | Size: 3.2 MiB |
@@ -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": "<tt>{calendar}</tt>",
|
||||
"calendar": {
|
||||
"format": {
|
||||
"today": "<b><span color='#89b4fa'>{}</span></b>"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 11 KiB |
@@ -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; }
|
||||
@@ -0,0 +1,7 @@
|
||||
# FWS — configuration wofi (menu d'applications).
|
||||
insensitive=true
|
||||
allow_images=true
|
||||
image_size=24
|
||||
prompt=Applications
|
||||
width=560
|
||||
height=440
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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'
|
||||