feat: piloter la lecture en cours depuis la barre et assortir les notifications

La barre ne disait rien de la musique qui joue, et les notifications gardaient
le style par défaut de mako, sans rapport avec le reste du bureau.

Waybar gagne un module média (pochette téléchargée puis mise en cache, titre,
artiste et temps) et un panneau flottant ouvert au clic ou par SUPER+M, avec
une position déplaçable, les commandes de lecture et une croix pour fermer ;
mako reprend la palette violette et se place sous la barre.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
BlackAngelTV committed 2026-09-16 23:23:59 +02:00
1 parent 9eeb9a9095
commit 6a65913c2c
9 files changed
+778 -19

No files matched your search

+23 -7
View File
@@ -4,8 +4,8 @@
# ║ ║
# ║ Usage : ║
# ║ ./install.sh configs utilisateur (Hypr, ║
# ║ Waybar, wofi, kitty, btop, ║
# ║ GTK, zsh, fond d'écran) ║
# ║ Waybar, mako, 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) ║
@@ -125,16 +125,31 @@ say "config Hyprland → $HYPR_DST"
# 3. Waybar
# ═══════════════════════════════════════════════════════════════════
WAYBAR_DST="$HOME_DIR/.config/waybar"
SCRIPTS_DST="$WAYBAR_DST/scripts"
LOGO_DST="$WAYBAR_DST/icons/logo.png"
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"
mkdir -p "$WAYBAR_DST/icons" "$SCRIPTS_DST"
# __WAYBAR_SCRIPTS__ = chemin ABSOLU : Waybar lance ses commandes sans passer
# par un shell, donc ni « ~ » ni « $HOME » n'y sont développés.
sed -e "s|__WAYBAR_SCRIPTS__|$SCRIPTS_DST|g" \
"$SRC_DIR/waybar/config" > "$WAYBAR_DST/config"
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"
# Panneau multimédia + pochette : appelés par la barre et par SUPER+M.
install -m 755 "$SRC_DIR/waybar/scripts/media-cover" "$SCRIPTS_DST/media-cover"
install -m 755 "$SRC_DIR/waybar/scripts/media-panel" "$SCRIPTS_DST/media-panel"
say "config Waybar + scripts média → $WAYBAR_DST"
# ═══════════════════════════════════════════════════════════════════
# 3bis. Notifications (mako)
# ═══════════════════════════════════════════════════════════════════
MAKO_DST="$HOME_DIR/.config/mako"
backup "$MAKO_DST/config"
install_dir "$SRC_DIR/mako" "$MAKO_DST"
say "thème des notifications → $MAKO_DST/config"
# ═══════════════════════════════════════════════════════════════════
# 4. wofi, kitty, btop, GTK
@@ -252,7 +267,7 @@ fi
# ═══════════════════════════════════════════════════════════════════
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)
blueman polkit-gnome dolphin python-gobject gtk4 curl)
if $DO_DEPS; then
if command -v pacman >/dev/null 2>&1; then
say "installation des dépendances (pacman)…"
@@ -285,6 +300,7 @@ 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 &"
say "notifications (mako déjà lancé) : makoctl reload"
if [[ -d "$BACKUP_DIR" ]]; then
say "Anciennes configs : ~/.violet-backup-*/ (supprimables quand tout va bien)"
fi