Initial full commit for Dell16 Arch

This commit is contained in:
2026-06-18 09:55:42 +02:00
commit 8d3c4f4acb
61 changed files with 3891 additions and 0 deletions

View File

@@ -0,0 +1,157 @@
{
"output": "HDMI-A-1",
"position": "bottom",
"layer": "top",
"height": 36,
"spacing": 3,
"modules-left": [
"hyprland/workspaces",
"hyprland/submap"
],
"modules-center": [
"hyprland/window"
],
"modules-right": [
"pulseaudio",
"pulseaudio#microphone",
"network",
"cpu",
"memory",
"temperature",
"backlight",
"custom/battery",
"clock",
"tray",
"custom/power"
],
// Le module workspaces s'adapte selon l'écran
"hyprland/workspaces": {
"format": "{name} {icon}",
"on-click": "activate",
"format-icons": {
"active": "",
"default": "",
"empty": ""
},
"all-outputs": false,
// Ici on définit les workspaces persistants pour chaque écran
"persistent-workspaces": {
"eDP-1": [1, 2, 3],
"HDMI-A-1": [4, 5, 6]
}
},
"hyprland/window": {
"format": "󱂬 {title}",
"rewrite": {
"(.*) — Mozilla Firefox": "󰈹 Firefox",
"(.*) - Visual Studio Code": "󰨞 VS Code",
"(.*)vlc": "󰕼 VLC",
"lucas@dell16-lucas:(.*)": " Terminal"
},
"separate-outputs": true
},
"pulseaudio": {
"format": "{icon} {volume}%",
"format-muted": "󰝟 {volume}%",
"format-icons": {
"default": [
"",
"",
""
]
},
"on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
"on-click-right": "pavucontrol"
},
"pulseaudio#microphone": {
"type": "pulseaudio",
"format": "{format_source}",
"format-source": " {volume}%",
"format-source-muted": "",
"on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
"on-click-right": "pavucontrol"
},
"network": {
"interval": 10,
"format-wifi": "{icon} {essid} {signalStrength}%",
"format-icons": [
"󰤯",
"󰤟",
"󰤢",
"󰤥",
"󰤨"
],
"format-ethernet": "󰈁 {ifname}",
"format-disconnected": "󰈂 Disconnected",
"format-alt": "{ipaddr}/{cidr}",
"on-click-right": "networkmanager_dmenu"
},
"cpu": {
"interval": 5,
"format": " {usage}%",
"tooltip": false,
"on-click": "alacritty -e btop"
},
"memory": {
"interval": 5,
"format": " {percentage}%",
"on-click": "alacritty -e btop"
},
"temperature": {
"interval": 5,
"hwmon-path": "/sys/class/hwmon/hwmon7/temp1_input",
"critical-threshold": 80,
"format-critical": "{icon} {temperatureC}°C",
"format": "{icon} {temperatureC}°C",
"format-icons": [
"",
"",
"",
"",
""
],
"tooltip": false,
"on-click": "alacritty -e btop"
},
"backlight": {
"format": "{icon} {percent}%",
"format-icons": [
"",
""
]
},
"custom/battery": {
"exec": "~/scripts/batt-info",
"interval": 2,
"on-click": "~/scripts/batt-toggle",
"on-click-right": "",
"tooltip-format": "Clic: basculer limite charge"
},
"clock": {
"format": " {:%H:%M}",
"format-alt": " {:%d/%m/%Y}",
"smooth-scrolling-threshold": 1,
"actions": {
"on-scroll-up": "shift_up",
"on-scroll-down": "shift_down"
},
"tooltip-format": "{calendar}",
"calendar": {
"mode": "month",
"mode-mon-col": 1,
"format": {
"months": "<span color='#cba6f7'><b>{}</b></span>",
"days": "<span color='#bac2de'>{}</span>",
"weekdays": "<span color='#89b4fa'><b>{}</b></span>",
"today": "<span color='#f38ba8'><b><u>{}</u></b></span>"
}
}
},
"custom/power": {
"format": "⏻",
"on-click": "wlogout"
}
}

157
.config/waybar/config.jsonc Normal file
View File

@@ -0,0 +1,157 @@
{
"output": "eDP-1",
"position": "bottom",
"layer": "top",
"height": 36,
"spacing": 3,
"modules-left": [
"hyprland/workspaces",
"hyprland/submap"
],
"modules-center": [
"hyprland/window"
],
"modules-right": [
"pulseaudio",
"pulseaudio#microphone",
"network",
"cpu",
"memory",
"temperature",
"backlight",
"custom/battery",
"clock",
"tray",
"custom/power"
],
// Le module workspaces s'adapte selon l'écran
"hyprland/workspaces": {
"format": "{name} {icon}",
"on-click": "activate",
"format-icons": {
"active": "",
"default": "",
"empty": ""
},
"all-outputs": false,
// Ici on définit les workspaces persistants pour chaque écran
"persistent-workspaces": {
"eDP-1": [1, 2, 3],
"HDMI-A-1": [4, 5, 6]
}
},
"hyprland/window": {
"format": "󱂬 {title}",
"rewrite": {
"(.*) — Mozilla Firefox": "󰈹 Firefox",
"(.*) - Visual Studio Code": "󰨞 VS Code",
"(.*)vlc": "󰕼 VLC",
"lucas@dell16-lucas:(.*)": " Terminal"
},
"separate-outputs": true
},
"pulseaudio": {
"format": "{icon} {volume}%",
"format-muted": "󰝟 {volume}%",
"format-icons": {
"default": [
"",
"",
""
]
},
"on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
"on-click-right": "pavucontrol"
},
"pulseaudio#microphone": {
"type": "pulseaudio",
"format": "{format_source}",
"format-source": " {volume}%",
"format-source-muted": "",
"on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
"on-click-right": "pavucontrol"
},
"network": {
"interval": 10,
"format-wifi": "{icon} {essid} {signalStrength}%",
"format-icons": [
"󰤯",
"󰤟",
"󰤢",
"󰤥",
"󰤨"
],
"format-ethernet": "󰈁 {ifname}",
"format-disconnected": "󰈂 Disconnected",
"format-alt": "{ipaddr}/{cidr}",
"on-click-right": "networkmanager_dmenu"
},
"cpu": {
"interval": 5,
"format": " {usage}%",
"tooltip": false,
"on-click": "alacritty -e btop"
},
"memory": {
"interval": 5,
"format": " {percentage}%",
"on-click": "alacritty -e btop"
},
"temperature": {
"interval": 5,
"hwmon-path": "/sys/class/hwmon/hwmon7/temp1_input",
"critical-threshold": 80,
"format-critical": "{icon} {temperatureC}°C",
"format": "{icon} {temperatureC}°C",
"format-icons": [
"",
"",
"",
"",
""
],
"tooltip": false,
"on-click": "alacritty -e btop"
},
"backlight": {
"format": "{icon} {percent}%",
"format-icons": [
"",
""
]
},
"custom/battery": {
"exec": "~/scripts/batt-info",
"interval": 2,
"on-click": "~/scripts/batt-toggle",
"on-click-right": "",
"tooltip-format": "Clic: basculer limite charge"
},
"clock": {
"format": " {:%H:%M}",
"format-alt": " {:%d/%m/%Y}",
"smooth-scrolling-threshold": 1,
"actions": {
"on-scroll-up": "shift_up",
"on-scroll-down": "shift_down"
},
"tooltip-format": "{calendar}",
"calendar": {
"mode": "month",
"mode-mon-col": 1,
"format": {
"months": "<span color='#cba6f7'><b>{}</b></span>",
"days": "<span color='#bac2de'>{}</span>",
"weekdays": "<span color='#89b4fa'><b>{}</b></span>",
"today": "<span color='#f38ba8'><b><u>{}</u></b></span>"
}
}
},
"custom/power": {
"format": "⏻",
"on-click": "wlogout"
}
}

View File

@@ -0,0 +1,110 @@
{
"position": "bottom",
"layer": "top",
"height": 34,
"spacing": 3,
"modules-left": ["hyprland/workspaces", "hyprland/submap"],
"modules-center": ["hyprland/window"],
"modules-right": [
"pulseaudio",
"pulseaudio#microphone",
"network",
"cpu",
"memory",
"temperature",
"backlight",
"battery",
"clock",
"tray",
"custom/power"
],
"pulseaudio": {
"format": "{icon} {volume}%",
"format-muted": "",
"format-icons": {
"default": ["", "", ""]
},
"on-click": "pavucontrol"
},
"pulseaudio#microphone": {
"format": "{format_source}",
"format-source": " {volume}%",
"format-source-muted": "",
"on-click": "pamixer --default-source -t"
},
"network": {
"interval": 10,
"format-wifi": "{icon} {essid} {signalStrength}%",
"format-icons": ["󰤯", "󰤟", "󰤢", "󰤥", "󰤨"],
"format-ethernet": "󰈁 {ifname}",
"format-disconnected": "󰈂 Disconnected",
// Clic gauche : Bascule l'affichage vers l'IP (format-alt)
// Pas de commande nécessaire, c'est le comportement natif de Waybar au clic
"format-alt": "{ipaddr}/{cidr}",
// Clic droit : Ouvre le menu de NetworkManager
"on-click-right": "networkmanager_dmenu"
},
"cpu": {
"interval": 5,
"format": " {usage}%",
"tooltip": false
},
"memory": {
"interval": 5,
"format": " {percentage}%", // Vérifiez bien l'espace entre l'icône et le texte
},
"temperature": {
"interval": 5,
"hwmon-path": "/sys/class/hwmon/hwmon7/temp1_input",
"critical-threshold": 80,
"format-critical": "{icon} {temperatureC}°C",
"format": "{icon} {temperatureC}°C",
"format-icons": ["", "", "", "", ""],
"tooltip": true
},
"backlight": {
"format": "{icon} {percent}%",
"format-icons": ["", ""]
},
"battery": {
"states": {
"warning": 30,
"critical": 15
},
"format": "{icon} {capacity}%",
"format-charging": " {capacity}%",
"format-plugged": " {capacity}%",
"format-icons": ["", "", "", "", ""]
},
"clock": {
"format": " {:%H:%M}",
"format-alt": " {:%d/%m/%Y}",
"tooltip-format": "<span color='#cba6f7' font='JetBrainsMono Nerd Font 12'><big>{:%Y %B}</big></span>\n<tt><small>{calendar}</small></tt>",
"calendar": {
"mode" : "month",
"mode-mon-col" : 3,
"on-scroll" : 1,
"format": {
"months": "<span color='#cdd6f4'><b>{}</b></span>",
"days": "<span color='#bac2de'>{}</span>",
"weekdays": "<span color='#89b4fa'><b>{}</b></span>",
"today": "<span color='#f38ba8'><b><u>{}</u></b></span>"
}
}
},
"custom/power": {
"format": "⏻",
"on-click": "wlogout"
}
}

76
.config/waybar/style.css Normal file
View File

@@ -0,0 +1,76 @@
@define-color base #1e1e2e;
@define-color mantle #181825;
@define-color mauve #cba6f7;
@define-color blue #89b4fa;
@define-color text #cdd6f4;
window#waybar {
background: rgba(30, 30, 46, 0.85);
border-top: 2px solid @mauve;
color: @text;
margin: 0; /* On colle la barre aux bords ou on réduit fortement */
}
/* On réduit drastiquement les marges ici */
#workspaces,
#window,
#network,
#cpu,
#memory,
#temperature,
#backlight,
#battery,
#clock,
#tray,
#custom-power {
padding: 0 6px; /* Réduit de 10 à 6 */
margin: 0 2px; /* Réduit de 4 à 2 */
background-color: transparent;
}
#pulseaudio,
#pulseaudio.microphone {
padding: 0 6px;
margin: 0 2px;
}
#network {
color: @blue;
}
#network.disconnected {
color: #f38ba8; /* Red pour l'alerte */
}
/* On force la taille de la police pour gagner en place si besoin */
label {
font-family: "JetBrainsMono Nerd Font";
font-size: 13px;
}
tooltip {
background: rgba(30, 30, 46, 0.95);
border: 1px solid @mauve;
border-radius: 8px;
}
tooltip label {
font-family: "JetBrainsMono Nerd Font";
font-size: 14px;
color: @text;
}
#tray {
padding: 0;
margin: 0 4px;
}
#tray > widget > image {
padding: 0 6px; /* C'est ici que l'espacement se crée réellement */
}
#tray > .passive,
#tray > .active,
#tray > .needs-attention {
padding: 0 3px;
}