feat(waybar): island floating 3-pills + popups + deploy
- 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
This commit is contained in:
27
INSTALL/configs/waybar/scripts/power-menu.sh
Executable file
27
INSTALL/configs/waybar/scripts/power-menu.sh
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user