Fix hyprland, monitor management and waybar after lua switch
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"output": "eDP-1",
|
||||
"output": ["eDP-1", "HDMI-A-1"], // ← les deux écrans
|
||||
"position": "bottom",
|
||||
"layer": "top",
|
||||
"height": 36,
|
||||
@@ -25,7 +25,6 @@
|
||||
"custom/power"
|
||||
],
|
||||
|
||||
// Le module workspaces s'adapte selon l'écran
|
||||
"hyprland/workspaces": {
|
||||
"format": "{name} {icon}",
|
||||
"on-click": "activate",
|
||||
@@ -35,7 +34,7 @@
|
||||
"empty": ""
|
||||
},
|
||||
"all-outputs": false,
|
||||
// Ici on définit les workspaces persistants pour chaque écran
|
||||
// Les workspaces persistants sont déjà différenciés par sortie
|
||||
"persistent-workspaces": {
|
||||
"eDP-1": [1, 2, 3],
|
||||
"HDMI-A-1": [4, 5, 6]
|
||||
@@ -57,11 +56,7 @@
|
||||
"format": "{icon} {volume}%",
|
||||
"format-muted": " {volume}%",
|
||||
"format-icons": {
|
||||
"default": [
|
||||
"",
|
||||
"",
|
||||
""
|
||||
]
|
||||
"default": ["", "", ""]
|
||||
},
|
||||
"on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
|
||||
"on-click-right": "pavucontrol"
|
||||
@@ -71,19 +66,14 @@
|
||||
"format": "{format_source}",
|
||||
"format-source": " {volume}%",
|
||||
"format-source-muted": "",
|
||||
"on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
|
||||
// CORRECTION : on mute la source (micro) et non le sink
|
||||
"on-click": "pactl set-source-mute @DEFAULT_SOURCE@ toggle",
|
||||
"on-click-right": "pavucontrol"
|
||||
},
|
||||
"network": {
|
||||
"interval": 10,
|
||||
"format-wifi": "{icon} {essid} {signalStrength}%",
|
||||
"format-icons": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
],
|
||||
"format-icons": ["", "", "", "", ""],
|
||||
"format-ethernet": " {ifname}",
|
||||
"format-disconnected": " Disconnected",
|
||||
"format-alt": "{ipaddr}/{cidr}",
|
||||
@@ -102,31 +92,23 @@
|
||||
},
|
||||
"temperature": {
|
||||
"interval": 5,
|
||||
// Remplacez par le chemin qui fonctionne sur votre machine
|
||||
"hwmon-path": "/sys/class/hwmon/hwmon7/temp1_input",
|
||||
"critical-threshold": 80,
|
||||
"format-critical": "{icon} {temperatureC}°C",
|
||||
"format": "{icon} {temperatureC}°C",
|
||||
"format-icons": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
],
|
||||
"format-icons": ["", "", "", "", ""],
|
||||
"tooltip": false,
|
||||
"on-click": "alacritty -e btop"
|
||||
},
|
||||
"backlight": {
|
||||
"format": "{icon} {percent}%",
|
||||
"format-icons": [
|
||||
"",
|
||||
""
|
||||
]
|
||||
"format-icons": ["", ""]
|
||||
},
|
||||
"custom/battery": {
|
||||
"exec": "~/scripts/batt-info",
|
||||
"exec": "/home/lucas/.config/waybar/scripts/batt-info.sh",
|
||||
"interval": 2,
|
||||
"on-click": "~/scripts/batt-toggle",
|
||||
"on-click": "/home/lucas/.config/waybar/scripts/batt-toggle.sh",
|
||||
"on-click-right": "",
|
||||
"tooltip-format": "Clic: basculer limite charge"
|
||||
},
|
||||
@@ -154,4 +136,4 @@
|
||||
"format": "⏻",
|
||||
"on-click": "wlogout"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user