summaryrefslogtreecommitdiff
path: root/waybar/config.jsonc
diff options
context:
space:
mode:
authorryukamish <[email protected]>2026-04-10 17:41:01 +0530
committerryukamish <[email protected]>2026-04-10 17:41:01 +0530
commit9c398204855235c0de707942a443dbfaf4831091 (patch)
tree26859624df2aff6507f946e277aa7dac7062aa3a /waybar/config.jsonc
parenteafcdda7b58a63bf8b6be15718a41c186ff497d5 (diff)
fix: minimal waybar with less deps
Diffstat (limited to 'waybar/config.jsonc')
-rw-r--r--waybar/config.jsonc263
1 files changed, 78 insertions, 185 deletions
diff --git a/waybar/config.jsonc b/waybar/config.jsonc
index 4c2af10..46467c4 100644
--- a/waybar/config.jsonc
+++ b/waybar/config.jsonc
@@ -1,223 +1,116 @@
-// _*_ mode: jsonc _*_
{
- "reload_style_on_change": true,
"layer": "top",
- "position": "bottom",
+ "position": "top",
"modules-left": [
- "niri/workspaces",
- "custom/uptime",
- "backlight",
- "group/network"
+ "clock",
+ "mpris",
+ "niri/window"
+ ],
+ "modules-center": [
+ "custom/workspaces"
],
- "modules-center": [],
"modules-right": [
- "group/expand-tray",
- "group/hardware",
- "group/audio",
- "group/powerofmachine",
- "clock"
+ "tray",
+ "network",
+ "pulseaudio",
+ "bluetooth",
+ "memory",
+ "battery"
],
"niri/workspaces": {
- "on-click": "activate",
+ "current-only": true,
"format": "{icon}",
- "format-icons": {
- "1": "1",
- "2": "2",
- "3": "3",
- "4": "4",
- "5": "5",
- "6": "6",
- "7": "7",
- "8": "8",
- "9": "9",
- "10": "10"
- }
- },
- // module groups
- "group/hardware": {
- "orientation": "horizontal",
- "modules": [
- "cpu",
- "memory",
- "temperature"
- ]
- },
- "group/audio": {
- "orientation": "horizontal",
- "modules": [
- "bluetooth",
- "pulseaudio"
- ]
+ "all-outputs": false // usually keep false so each monitor shows its own active workspace
},
- "group/network": {
- "orientation": "horizontal",
- "modules": [
- "network",
- "custom/vpn"
- ]
+ "niri/window": {
+ "format": "{app_id}"
},
- "group/powerofmachine": {
- "orientation": "horizontal",
- "modules": [
- "battery"
- ]
- },
- "group/expand-tray": {
- "orientation": "inherit",
- "drawer": {
- "transition-duration": 600,
- "children-class": "tray-group-item"
+ "mpris": {
+ "format": "{status_icon} {artist} - {title}",
+ "format-paused": "{status_icon} <i>{artist} - {title}</i>",
+ "player-icons": {
+ "default": "ā–¶",
+ "mpv": "šŸŽµ"
},
- "modules": [
- "custom/expand-icon",
- "tray"
- ]
+ "status-icons": {
+ "paused": "āø"
+ }
},
- // Individual modules
"clock": {
- "interval": 60,
- "tooltip": true,
- "format": " {:%R  %d/%m}",
- "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
- "format-alt": " {:%a, %d, %b %Y}"
+ "format": "{:%a, %b %d %H:%M}",
+ "format-alt": "{:%Y-%m-%d}"
},
"memory": {
- "interval": 12,
- "format": "īæ… {}%"
- },
- "cpu": {
- "interval": 5,
- "format": "ļ‹› {usage}%",
- "on-click": "alacritty --class TUI.float -e btop"
- },
- "temperature": {
- // The thermal zone for CPU changes from time to time on MSI Laptops
- "thermal-zone": 5,
- "critical-threshold": 80,
- "format": " {temperatureC}°C"
+ "format": "īæ… {used}GiB"
},
- "network": {
- "interface": "wlan0",
- "family": "ipv4",
- "format": "{ifname}",
- "format-wifi": "{icon} {essid}",
- "format-ethernet": " {ipaddr}/<span color='#aaaaaa'>{cidr}</span>",
- "format-disconnected": "󰇨 DC'D",
- "format-icons": [
- "󰤯",
- "󰤟",
- "󰤢",
- "󰤄",
- "󰤨"
- ],
- "tooltip-format": "{ifname} via {gwaddr}",
- "tooltip-format-wifi": "{essid} ({frequency} GHz)\n⇣{bandwidthDownBytes} ⇔{bandwidthUpBytes}",
- "tooltip-format-ethernet": "⇣{bandwidthDownBytes} ⇔{bandwidthUpBytes}",
- "tooltip-format-disconnected": "Disconnected",
- "interval": 5,
- "on-click": "alacritty --class TUI.float -e wifitui",
- "on-click-right": "rfkill toggle wlan"
- },
- "backlight": {
- "device": "intel_backlight",
- "format": "{icon} {percent}%",
- "format-icons": [
- "īŽ",
- "ī“",
- "ī‘",
- "ī",
- "īŽ",
- "ī",
- "īŠ",
- "īˆ",
- "īŽ›"
- ]
+ "battery": {
+ "states": {
+ "good": 95,
+ "warning": 30,
+ "critical": 15
+ },
+ "format": "{icon} {capacity}%",
+ "format-icons": {
+ "default": [
+ "",
+ "ļ‰ƒ",
+ "",
+ "",
+ ""
+ ],
+ "charging": ""
+ },
+ "format-plugged": " {capacity}%"
},
"bluetooth": {
"format": "ļŠ” {num_connections}",
"format-disabled": "<span color='#aaaaaa'>󰂲</span>",
"format-connected": "ļŠ” {num_connections}",
"tooltip-format": "Devices connected: {num_connections}\n{device_alias} at {device_battery_percentage}%",
- "on-click": "alacritty --class=TUI.float -e bluetui",
+ "on-click": "$TERMINAL --app-id=TUI.float -e bluetui",
"on-click-right": "rfkill toggle bluetooth"
},
"pulseaudio": {
"format": "{icon} {volume}%",
- "on-click": "alacritty --class TUI.float -e wiremix",
- "tooltip-format": "{desc}",
- "scroll-step": 5,
- "format-muted": "<span color='#aaaaaa' </span>",
+ "format-bluetooth": "ļŠ” {icon} {volume}%",
+ "format-muted": "",
"format-icons": {
+ "alsa_output.pci-0000_00_1f.3.analog-stereo": "",
+ "alsa_output.pci-0000_00_1f.3.analog-stereo-muted": "",
"headphone": "",
+ "hands-free": "",
+ "headset": "",
+ "phone": "ļ‚•",
+ "phone-muted": "ī“—",
+ "portable": "ļ‚•",
+ "car": "",
"default": [
- "",
"",
""
]
- }
- },
- "battery": {
- "format": "{capacity}% {icon}",
- "format-discharging": "{icon} {capacity}%",
- "format-charging": "{icon} {capacity}%",
- "format-plugged": " {capacity}%",
- "format-full": "󰁹 {capacity}%",
- "format-icons": {
- "charging": [
- "󰢜",
- "󰂆",
- "󰂇",
- "󰂈",
- "󰢝",
- "󰂉",
- "󰢞",
- "󰂊",
- "󰂋",
- "󰂅"
- ],
- "default": [
- "󰁺",
- "󰁻",
- "󰁼",
- "󰁽",
- "󰁾",
- "󰁿",
- "󰂀",
- "󰂁",
- "󰂂",
- "󰁹"
- ]
},
- "interval": 5,
- "states": {
- "warning": 20,
- "critical": 10
- }
+ "on-click": "$TERMINAL --app-id=TUI.float -e wiremix",
+ "tooltip-format": "{desc}",
+ "scroll-step": 5
},
- // Tray
- "tray": {
- "icon-size": 10,
- "spacing": 10
+ "network": {
+ "interface": "wlo1",
+ "format": "{ifname}",
+ "format-wifi": " {signalStrength}%",
+ "format-ethernet": " {ipaddr}/{cidr}",
+ "format-disconnected": "ó°–Ŗ", //An empty format will hide the module.
+ "tooltip-format": " {ifname} via {gwaddr}",
+ "tooltip-format-wifi": " {essid} {signalStrength}%",
+ "tooltip-format-ethernet": "{ifname}",
+ "tooltip-format-disconnected": "ó°–Ŗ",
+ "max-length": 50,
+ "interval": 60,
+ "on-click": "$TERMINAL --app-id TUI.float -e wifitui",
+ "on-click-right": "rfkill toggle wlan"
},
- // Custom modules
- "custom/vpn": {
- "format": " VPN",
- "exec": "echo '{\"class\": \"connected\"}'",
- "exec-if": "test -d /proc/sys/net/ipv4/conf/proton0",
+ "custom/workspaces": {
+ "exec": "~/.config/waybar/niri-workspaces",
"return-type": "json",
- "interval": 5
- },
- "custom/expand-icon": {
- "format": "ļ‚‹ ",
- "tooltip": false
- },
- "custom/uptime": {
- "format": "{}",
- "format-icon": [
- ""
- ],
- "tooltip": false,
- "interval": 1600,
- "exec": "~/.config/waybar/scripts/uptime.sh"
+ "format": "{}"
}
}