dotfiles/laptop/configs/waybar/config.jsonc
2025-02-28 11:41:18 +01:00

138 lines
4.2 KiB
JSON
Executable File

{
"layer": "top",
"position": "top",
"mod": "dock",
"exclusive": true,
"passthrough": false,
"gtk-layer-shell": true,
"height": 0,
"modules-left": [
"clock",
"cpu",
"memory",
"battery",
"backlight",
"hyprland/workspaces"
],
"modules-center": ["hyprland/window"],
"modules-right": [
"tray",
"network",
"pulseaudio",
"pulseaudio#microphone",
"custom/powerMenu"
],
"hyprland/window": {
"format": "{}"
},
"tray": {
"icon-size": 14,
"spacing": 8
},
"custom/powerMenu": {
"format": "⏻",
"on-click": "rofi -show p -modi p:rofi-power-menu -theme ~/.config/rofi/themes/power.rasi"
},
"network": {
"format-disconnected": " Net",
"format-wifi": "{icon} {essid}",
"format-ethernet": " Wired",
"tooltip-format-ethernet": "<big>Ethernet</big>\nInterface: {ifname}\nIP: {ipaddr}\nUp/Down (bps): {bandwidthUpBits}/{bandwidthDownBits}",
"tooltip-format-wifi": "<big>Wi-Fi</big>\nSSID: {essid}\nIP: {ipaddr}\nSignal strength: {signalStrength}%\nUp/Down (bps): {bandwidthUpBits}/{bandwidthDownBits}\nFrequency: {frequency}GHz",
"tooltip-format-disconnected": "<big>Networking</big>\n{ifname} disconnected",
"on-click": "terminator -x nmtui",
"format-icons": ["", "", "", ""]
},
"battery":{
"states": {
"95": 100,
"85": 90,
"75": 80,
"65": 70,
"55": 60,
"45": 50,
"35": 40,
"25": 30,
"15": 20,
"5": 10,
"critical": 0,
},
"format":" {capacity}",
"format-95": " {capacity}",
"format-85": " {capacity}",
"format-75": " {capacity}",
"format-65": " {capacity}",
"format-55": " {capacity}",
"format-45": " {capacity}",
"format-35": " {capacity}",
"format-25": " {capacity}",
"format-15": " {capacity}",
"format-15": " {capacity}",
"format-critical": " {capacity}",
"format-charging":" {capacity}",
"format-plugged": " ",
"format-full": " 100",
"format-empty": " ({capacity}%)",
"tooltip-format":"<big>Battery</big>\nCurrently {timeTo}\nCurrently drawing: {power}W\nBattery status: {capacity}%"
},
"backlight": {
"stages": {
"high": 50,
"low": 0,
},
"format": "🌣 {percent}",
"format-high": " {percent}",
"format-low": " {percent}",
"tooltip-format": "<big>Brightness</big>\n🌣 {percent}",
"on-scroll-up": "light -A 1",
"on-scroll-down": "light -U 1"
},
"clock": {
"format": "{:%a, %d.%m %H:%M:%S}",
"tooltip-format": "<big>Calendar</big>\n<tt><small>{calendar}</small></tt>",
"interval": 1
},
"hyprland/workspaces": {
"disable-scroll": true,
"all-outputs": true,
"on-click": "activate",
"format": "{icon}"
},
"cpu": {
"tooltip-format": "<big>CPU</big>\n<tt>Total: {usage}</tt>",
"format": " {usage}",
"interval": 5
},
"memory": {
"format": " {percentage}",
"interval": 5
},
"pulseaudio": {
"format": "{icon} {volume}",
"tooltip": true,
"format-muted": " Off",
"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": " 0",
"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
}
}