pointfichiers/bar/waybar/config.jsonc
GaspardCulis 10eb5766c7 Edit waybar
Removed Backlight percentage and added spacing between icons and text
2023-10-19 10:08:07 +02:00

140 lines
4.1 KiB
Text
Executable file

{
"layer": "top",
"position": "top",
"mod": "dock",
"exclusive": true,
"passthrough": false,
"gtk-layer-shell": true,
"height": 50,
"modules-left": ["clock","custom/weather","wlr/workspaces"],
"modules-center": ["hyprland/window"],
"modules-right": ["network", "bluetooth", "temperature","custom/power_profile","battery","pulseaudio","pulseaudio#microphone","tray"],
"hyprland/window": {
"format": "{}"
},
"wlr/workspaces": {
"disable-scroll": true,
"all-outputs": true,
"on-click": "activate",
"persistent_workspaces": {
"1": [],
"2": [],
"3": [],
"4": [],
"5": [],
"6": [],
"7": [],
"8": [],
"9": [],
"10": []
}
},
"custom/power_profile":{
//shows the current power profile and switches to next on click
"exec": "asusctl profile -p | sed s:'Active profile is'::",
"interval": 30,
"format": "󰈐{}",
"on-click": "asusctl profile -n; pkill -SIGRTMIN+8 waybar",
"signal": 8
},
"custom/weather" : {
//shows the current weather and forecast
"tooltip" : true,
"format" : "{}",
"interval" : 30,
"exec" : "~/.config/waybar/scripts/waybar-wttr.py",
"return-type" : "json"
},
"tray": {
"icon-size": 18,
"spacing": 10
},
"clock": {
"format": "{: %H:%M  %a, %b %e}",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
},
"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
},
"battery": {
"states": {
"good": 95,
"warning": 30,
"critical": 20
},
"format": "{icon} {capacity}%",
"format-charging": " {capacity}%",
"format-plugged": " {capacity}%",
"format-alt": "{time} {icon}",
"format-icons": ["", "", "", "", ""]
},
"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
},
"temperature": {
"thermal-zone": 0,
"critical-threshold": 80,
"format": "{temperatureC}°C ",
"format-critical": "{temperatureC}°C "
},
"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}"
},
"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"
}
}