configuration de base avec awesomeWM minimal et modularise, polybar et rofi

This commit is contained in:
2026-03-12 01:25:21 +01:00
parent 4cc83f6c87
commit 6749335def
9 changed files with 445 additions and 0 deletions

6
polybar/launch.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/sh
killall -q polybar
while pgrep -x polybar >/dev/null; do sleep 1; done
polybar -c ~/.config/polybar/main.ini main &

130
polybar/main.ini Normal file
View File

@@ -0,0 +1,130 @@
[bar/main]
width = 100%
height = 80
background = #11111b
foreground = #cdd6f4
font-0 = "FiraCode Nerd Font:size=20;4"
modules-left = logo filesystem memory cpu
modules-center = date
modules-right = battery network power
; ----------------------------
; Demi-cercles
; ----------------------------
[module/bar-left]
type = custom/text
content =
content-font = 2
content-foreground = #11111b
content-background = #00000000
[module/bar-right]
type = custom/text
content =
content-font = 2
content-foreground = #11111b
content-background = #00000000
; ----------------------------
; Logo Debian cercle
; ----------------------------
[module/logo-left]
type = custom/text
content =
content-font = 2
content-foreground = #89b4fa
content-background = #00000000
[module/logo]
type = custom/text
content =
content-font = 2
content-foreground = #11111b
content-background = #89b4fa
[module/logo-right]
type = custom/text
content =
content-font = 2
content-foreground = #89b4fa
content-background = #00000000
; ----------------------------
; Workspaces GP/CS/IT/IA
; ----------------------------
[module/workspaces]
type = internal/xworkspaces
label-focused = %name%
label-occupied = %name%
label-empty = %name%
label-urgent = %name%!
label-padding = 1
label-background-focused = #fab387
label-background-occupied = #cdd6f4
label-background-empty = #6c7086
label-background-urgent = #f38ba8
; ----------------------------
; Modules système
; ----------------------------
[module/cpu]
type = internal/cpu
interval = 2
label = [CPU %percentage%%]
label-padding = 1
label-font = 2
label-foreground = #f9e2af
[module/memory]
type = internal/memory
interval = 2
label = [RAM %percentage_used%%]
label-padding = 1
label-foreground = #cba6f7
[module/date]
type = internal/date
interval = 60
date = %H:%M
label-padding = 1
label-foreground = #cdd6f4
[module/battery]
type = internal/battery
full-at = 98
low-at = 10
battery = BAT1
adapter = ADP1
poll-interval = 5
label-charging = [battery %percentage%%]
label-discharging = [battery %percentage%%]
label-full = [battery Full]
label-low = [battery low]
label-padding = 1
label-charging-foreground = #ffffcc00
label-discharging-foreground = #ffffcc00
label-full-foreground = #ffb3ff00
label-low-foreground = #ffff4d00
[module/filesystem]
type = internal/fs
interval = 5
fixed-values = true
label-mounted = [disk %percentage_used%%]
label-padding = 1
label-mounted-foreground = #ffff0090
[module/power]
type = custom/script
exec = echo "[  ]"
click-left = ~/.config/polybar/scripts/powermenu.sh
interval = 0
[module/network]
type = internal/network
interface = wlp0s20f3
label-connected = [wifi %netspeed%]
label-connected-foreground = #ff00ccff
label-disconnected = Disconnected
label-disconnected-foreground = #ffff3300

21
polybar/scripts/powermenu.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
options="⏻ Éteindre\n Redémarrer\n Veille\n Déconnexion"
chosen=$(echo -e "$options" | rofi -dmenu -i -p "Power")
case "$chosen" in
*Éteindre)
systemctl poweroff
;;
*Redémarrer)
systemctl reboot
;;
*Veille)
systemctl suspend
;;
*Déconnexion)
awesome-client 'awesome.quit()'
;;
esac