diff options
| author | Pavel Egorov <[email protected]> | 2025-12-16 05:03:05 +0300 |
|---|---|---|
| committer | Pavel Egorov <[email protected]> | 2025-12-16 05:03:05 +0300 |
| commit | 4cae51308aa8625dc2b482e5c36c58d6168b9fc1 (patch) | |
| tree | 41e39409e76498200a3554f92e0854fc94a6b8d3 /.config/waybar/config.jsonc | |
| parent | a3f41d2e86fc079717ba63b6f86239db6d044650 (diff) | |
| parent | 2db38a695fc0483056d59fdc772c277a54303fe7 (diff) | |
| download | dotfiles-4cae51308aa8625dc2b482e5c36c58d6168b9fc1.tar.gz dotfiles-4cae51308aa8625dc2b482e5c36c58d6168b9fc1.zip | |
Merge branch 'niri'
Diffstat (limited to '.config/waybar/config.jsonc')
| -rw-r--r-- | .config/waybar/config.jsonc | 124 |
1 files changed, 124 insertions, 0 deletions
diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc new file mode 100644 index 0000000..76d5f01 --- /dev/null +++ b/.config/waybar/config.jsonc | |||
| @@ -0,0 +1,124 @@ | |||
| 1 | // -*- mode: jsonc -*- | ||
| 2 | { | ||
| 3 | "layer": "top", // Waybar at top layer | ||
| 4 | "position": "top", // Waybar position (top|bottom|left|right) | ||
| 5 | "height": 32, // Waybar height (to be removed for auto height) | ||
| 6 | // "width": 1280, // Waybar width | ||
| 7 | "spacing": 4, // Gaps between modules (4px) | ||
| 8 | // Choose the order of the modules | ||
| 9 | "modules-left": [ | ||
| 10 | "niri/workspaces" | ||
| 11 | ], | ||
| 12 | "modules-center": [ | ||
| 13 | "niri/window" | ||
| 14 | ], | ||
| 15 | "modules-right": [ | ||
| 16 | "tray", | ||
| 17 | "pulseaudio", | ||
| 18 | // "group/system-status", | ||
| 19 | // "user", | ||
| 20 | "niri/language", | ||
| 21 | "battery", | ||
| 22 | "clock" | ||
| 23 | ], | ||
| 24 | // Modules configuration | ||
| 25 | "niri/workspaces": { | ||
| 26 | "format": "{icon}", | ||
| 27 | "format-icons": { | ||
| 28 | "main": "", | ||
| 29 | "games": "", | ||
| 30 | "default": "" | ||
| 31 | } | ||
| 32 | }, | ||
| 33 | "niri/language": { | ||
| 34 | "format-en": "EN", | ||
| 35 | "format-ru": "RU" | ||
| 36 | }, | ||
| 37 | "tray": { | ||
| 38 | // "icon-size": 21, | ||
| 39 | "spacing": 10, | ||
| 40 | // "icons": { | ||
| 41 | // "blueman": "bluetooth", | ||
| 42 | // "TelegramDesktop": "$HOME/.local/share/icons/hicolor/16x16/apps/telegram.png" | ||
| 43 | // } | ||
| 44 | }, | ||
| 45 | "clock": { | ||
| 46 | "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>", | ||
| 47 | "format": "{:%R}", | ||
| 48 | "format-alt": "{:%F}" | ||
| 49 | }, | ||
| 50 | "group/system-status": { | ||
| 51 | "modules": [ | ||
| 52 | "network", | ||
| 53 | "memory", | ||
| 54 | "cpu", | ||
| 55 | "temperature" | ||
| 56 | ], | ||
| 57 | "orientation": "inherit", | ||
| 58 | "drawer": { | ||
| 59 | } | ||
| 60 | }, | ||
| 61 | "cpu": { | ||
| 62 | "format": "CPU {usage}% {avg_frequency}", | ||
| 63 | "tooltip": false | ||
| 64 | }, | ||
| 65 | "memory": { | ||
| 66 | "format": "RAM {percentage}% + {swapPercentage}%" | ||
| 67 | }, | ||
| 68 | "user": { | ||
| 69 | "format": "{work_H}:{work_M} Up" | ||
| 70 | }, | ||
| 71 | "temperature": { | ||
| 72 | // "thermal-zone": 2, | ||
| 73 | // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input", | ||
| 74 | "critical-threshold": 80, | ||
| 75 | // "format-critical": "{temperatureC}°C {icon}", | ||
| 76 | "format": "{temperatureC}°C" | ||
| 77 | }, | ||
| 78 | "backlight": { | ||
| 79 | // "device": "acpi_video1", | ||
| 80 | "format": "{percent}% {icon}", | ||
| 81 | "format-icons": ["", "", "", "", "", "", "", "", ""] | ||
| 82 | }, | ||
| 83 | "battery": { | ||
| 84 | "states": { | ||
| 85 | // "good": 95, | ||
| 86 | "warning": 30, | ||
| 87 | "critical": 15 | ||
| 88 | }, | ||
| 89 | "format": "{capacity}% {icon}", | ||
| 90 | "format-full": "{capacity}% {icon}", | ||
| 91 | "format-charging": "{capacity}% ", | ||
| 92 | "format-plugged": "{capacity}% ", | ||
| 93 | "format-alt": "{time} {icon}", | ||
| 94 | // "format-good": "", // An empty format will hide the module | ||
| 95 | // "format-full": "", | ||
| 96 | "format-icons": ["", "", "", "", ""] | ||
| 97 | }, | ||
| 98 | "network": { | ||
| 99 | "format-wifi": "{essid} ({signalStrength}%) ", | ||
| 100 | "format-ethernet": "{ipaddr}/{cidr}", | ||
| 101 | "tooltip-format": "{ifname} via {gwaddr}", | ||
| 102 | "format-linked": "{ifname} (No IP)", | ||
| 103 | "format-disconnected": "Disconnected ⚠", | ||
| 104 | "format-alt": "↑ {bandwidthUpBits} ↓ {bandwidthDownBits}" | ||
| 105 | }, | ||
| 106 | "pulseaudio": { | ||
| 107 | "scroll-step": 5, // %, can be a float | ||
| 108 | "format": "{volume}% {icon}", | ||
| 109 | "format-bluetooth": "{volume}% {icon}", | ||
| 110 | "format-bluetooth-muted": " {icon} {format_source}", | ||
| 111 | "format-muted": " {format_source}", | ||
| 112 | "format-source-muted": "", | ||
| 113 | "format-icons": { | ||
| 114 | "headphone": "", | ||
| 115 | "hands-free": "", | ||
| 116 | "headset": "", | ||
| 117 | "phone": "", | ||
| 118 | "portable": "", | ||
| 119 | "car": "", | ||
| 120 | "default": ["", "", ""] | ||
| 121 | }, | ||
| 122 | "on-click": "pavucontrol" | ||
| 123 | } | ||
| 124 | } | ||
