pointfichiers/bar/waybar/config.jsonc

196 lines
4.8 KiB
Text
Raw Permalink Normal View History

2023-10-19 09:57:45 +02:00
{
2023-11-14 15:58:32 +01:00
"layer": "top",
"position": "top",
"mod": "dock",
"exclusive": true,
"passthrough": false,
"gtk-layer-shell": true,
"height": 50,
"modules-left": ["clock", "network", "bluetooth", "hyprland/workspaces"],
2023-11-14 15:58:32 +01:00
"modules-center": ["hyprland/window"],
"modules-right": [
"memory",
"cpu",
"temperature",
"custom/power_profile",
"custom/gpu_status",
"custom/refresh_rate",
2023-11-14 15:58:32 +01:00
"battery",
"pulseaudio",
"pulseaudio#microphone",
"tray"
],
"hyprland/window": {
"format": "{}"
},
2023-10-19 09:57:45 +02:00
2023-11-14 15:58:32 +01:00
"hyprland/workspaces": {
"disable-scroll": true,
"all-outputs": true,
"on-click": "activate"
/*
2023-10-19 09:57:45 +02:00
"persistent_workspaces": {
"1": [],
"2": [],
"3": [],
"4": [],
"5": [],
"6": [],
"7": [],
"8": [],
"9": [],
"10": []
}*/
2023-11-14 15:58:32 +01:00
},
2023-10-19 09:57:45 +02:00
2023-11-14 15:58:32 +01:00
"custom/power_profile": {
//shows the current power profile and switches to next on click
"exec": "~/.config/waybar/scripts/powerprofile.sh",
"return-type": "json",
"interval": 30,
"tooltip": false,
"format": "󰈐 {}",
"on-click": "asusctl profile -n; pkill -SIGRTMIN+8 waybar",
"signal": 8
},
2023-10-19 09:57:45 +02:00
2023-11-14 15:58:32 +01:00
"custom/weather": {
//shows the current weather and forecast
"tooltip": true,
"format": "{}",
"interval": 120,
"exec": "~/.config/waybar/scripts/waybar-wttr.py",
"return-type": "json"
},
2023-10-19 09:57:45 +02:00
2023-11-14 15:58:32 +01:00
"tray": {
"icon-size": 18,
"spacing": 10
},
2023-10-19 09:57:45 +02:00
2023-11-14 15:58:32 +01:00
"clock": {
"format": "{: %H:%M  %a, %b %e}",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
},
2023-10-19 09:57:45 +02:00
2023-11-14 15:58:32 +01:00
"backlight": {
"device": "asus::kbd_backlight",
"format": "{icon} {percent}%",
"format-icons": ["", "", ""],
"on-scroll-up": "brightnessctl set 1%+",
"on-scroll-down": "brightnessctl set 1%-",
"min-length": 6
},
2023-10-19 09:57:45 +02:00
2023-11-14 15:58:32 +01:00
"battery": {
"states": {
"good": 95,
"warning": 30,
"critical": 20
2023-10-19 09:57:45 +02:00
},
"format": "{icon} {capacity}% ({time} at {power}W)",
2023-11-14 15:58:32 +01:00
"format-charging": " {capacity}%",
"format-plugged": " {capacity}%",
"format-alt": "{time} {icon}",
"format-icons": ["", "", "", "", ""],
"interval": 3
2023-11-14 15:58:32 +01:00
},
2023-10-19 09:57:45 +02:00
2023-11-14 15:58:32 +01:00
"custom/gpu_status": {
"exec": "~/.config/waybar/scripts/gpu_status.sh",
"return-type": "json",
"interval": 2,
"tooltip": false,
"format": "{}",
"signal": 9
},
2023-10-19 09:57:45 +02:00
"custom/refresh_rate": {
"exec": "~/.config/waybar/scripts/refresh_rate.sh",
"return-type": "json",
"interval": 10,
"tooltip": false,
"format": "{}Hz",
"on-click": "~/.config/waybar/scripts/refresh_rate.sh toggle; pkill -SIGRTMIN+10 waybar",
"signal": 10
},
2023-11-14 15:58:32 +01:00
"pulseaudio": {
"format": "{icon} {volume}%",
"tooltip": false,
"format-muted": " Muted",
"on-click": "pamixer -t",
"on-scroll-up": "pamixer -i 5",
"on-scroll-down": "pamixer -d 5",
"scroll-step": 5,
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
}
},
"pulseaudio#microphone": {
"format": "{format_source}",
"format-source": " {volume}%",
"format-source-muted": " Muted",
"on-click": "pamixer --default-source -t",
"on-scroll-up": "pamixer --default-source -i 5",
"on-scroll-down": "pamixer --default-source -d 5",
"scroll-step": 5,
"tooltip": false
},
"temperature": {
"thermal-zone": 0,
"critical-threshold": 80,
"format": "{temperatureC}°C ",
"format-critical": "{temperatureC}°C ",
"tooltip": false
},
2023-10-19 09:57:45 +02:00
2023-11-14 15:58:32 +01:00
"network": {
"interface": "wlan0", // (Optional) To force the use of this interface
"format-wifi": " {signalStrength}%",
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
"tooltip-format": "{essid} - {ifname} via {gwaddr} ",
"format-linked": "{ifname} (No IP) ",
"format-disconnected": "Disconnected ⚠",
"format-alt": "{ifname}:{essid} {ipaddr}/{cidr}"
},
"cpu": {
"interval": 1,
"format": "󰻠 {usage:>2}%",
"format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"],
"states": {
"critical": 90,
"warning": 50
2023-10-19 09:57:45 +02:00
}
2023-11-14 15:58:32 +01:00
},
2023-10-19 09:57:45 +02:00
2023-11-14 15:58:32 +01:00
"memory": {
"interval": 1,
"format": "󰍛 {used:0.1f}G/{total:0.1f}G",
"states": {
"critical": 90,
"warning": 50
},
"tooltip": false
},
"bluetooth": {
"format": " {status}",
"format-disabled": "", // an empty format will hide the module
"format-connected": " {num_connections}",
"tooltip-format": "{device_alias}",
"tooltip-format-connected": " {device_enumerate}",
"tooltip-format-enumerate-connected": "{device_alias}",
"on-click": "/usr/bin/blueman-manager"
}
}