Files
dotfiles/waybar/bars/main.jsonc
Timo 9e045cf096 waybar: show the bar on this machine's primary output
The deployed config pinned "output": "eDP-1", the laptop's internal
display. On the PC waybar started fine but never mapped a layer surface,
so there was no bar and SIGUSR1 had nothing to toggle. Listed both
profiles' primaries instead -- waybar skips names that are not connected,
so the one file works on the laptop and the PC.

Two bugs in the same config that this uncovered:

- bars/main.jsonc included modules/temperature.cpu.jsonc, but the file is
  temperature-cpu.jsonc, so the temperature#cpu module the bar referenced
  was silently absent.
- get_wg_status.sh ran `sudo wg show` with no tty, logging "a terminal is
  required to read the password" on every poll. Now `sudo -n`, which fails
  instantly and falls into the existing "disconnected" branch, and starts
  working as-is if a NOPASSWD rule is ever added.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01StGBghPW9Dm7z7uj2VNWHr
2026-09-04 16:52:15 +02:00

34 lines
840 B
JSON

{
"include": [
"~/.config/waybar/modules/custom-logo.jsonc",
"~/.config/waybar/modules/custom-notifications.jsonc",
"~/.config/waybar/modules/clock-1.jsonc",
"~/.config/waybar/modules/pulseaudio.jsonc",
"~/.config/waybar/modules/cpu.jsonc",
"~/.config/waybar/modules/memory.jsonc",
"~/.config/waybar/modules/temperature-cpu.jsonc",
"~/.config/waybar/modules/battery.jsonc",
"~/.config/waybar/modules/network.jsonc",
"~/.config/waybar/modules/wireguard.jsonc",
"~/.config/waybar/modules/docker.jsonc",
],
"modules-left": [
"custom/arch",
"clock#cl1",
],
"modules-center": [
"cpu",
"memory",
"temperature#cpu",
"battery",
],
"modules-right": [
"custom/docker",
"custom/wireguard",
"network",
"pulseaudio",
"custom/notifications",
],
}