- Config waybar 3-pills glassmorphism (left/center/right) - Scripts : gpu, network, power-profile (toggle+luminosité/profil), cava daemon+reader, wob (volume/luminosité), rofi-launcher - Popup media GTK3 : volume sortie+entrée + luminosité (vc-media-popup.py) - Profil énergie : cycle balanced→low-power→performance avec brightnessctl - Autostart COSMIC : waybar.desktop + wob.desktop - Thème COSMIC Light ajouté (accent violet-chaton) - deploy : +autostart, +sudoers platform_profile, +udev platform_profile, +scripts .py waybar, +CosmicTheme.Light
28 lines
645 B
Bash
Executable File
28 lines
645 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# power-menu.sh — menu power dédié (wofi)
|
|
|
|
STYLE="$HOME/.config/wofi/power-style.css"
|
|
|
|
ENTRIES=(
|
|
" Verrouiller"
|
|
" Veille"
|
|
" Redémarrer"
|
|
" Éteindre"
|
|
)
|
|
|
|
CHOICE=$(printf '%s\n' "${ENTRIES[@]}" | \
|
|
wofi --dmenu \
|
|
--prompt "⏻ " \
|
|
--style "$STYLE" \
|
|
--width 210 \
|
|
--height 160 \
|
|
--y 70 \
|
|
--location top_right)
|
|
|
|
case "$CHOICE" in
|
|
" Verrouiller") loginctl lock-session ;;
|
|
" Veille") systemctl suspend ;;
|
|
" Redémarrer") systemctl reboot ;;
|
|
" Éteindre") systemctl poweroff ;;
|
|
esac
|