158 lines
4.2 KiB
JSON
158 lines
4.2 KiB
JSON
{
|
|
"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"
|
|
}
|
|
}
|