134 lines
3.6 KiB
JSON
134 lines
3.6 KiB
JSON
// -*- mode: jsonc -*-
|
|
{
|
|
"layer": "top",
|
|
"height": 34,
|
|
"spacing": 5,
|
|
|
|
"modules-left": ["river/tags"],
|
|
"modules-center": ["river/window"],
|
|
"modules-right": ["group/info-widgets", "group/tray"],
|
|
|
|
"river/tags": {
|
|
"num-tags": 9
|
|
},
|
|
"river/window": {
|
|
"tooltip": true,
|
|
"default-format": "river"
|
|
},
|
|
|
|
"group/info-widgets": {
|
|
"orientation": "inherit",
|
|
"modules": [
|
|
"custom/swayidle",
|
|
"river/mode",
|
|
"custom/mail",
|
|
"custom/ime",
|
|
"custom/battery",
|
|
"pulseaudio",
|
|
"clock#date",
|
|
"custom/time",
|
|
"custom/network",
|
|
"bluetooth"
|
|
]
|
|
},
|
|
|
|
"custom/swayidle": {
|
|
"exec": "pgrep swayidle >/dev/null 2>&1 || printf ' '",
|
|
"interval": 10,
|
|
"signal": 3,
|
|
"tooltip": false,
|
|
"hide-empty-text": true
|
|
},
|
|
"river/mode": {
|
|
"format": " {}",
|
|
"hidden-modes": ["normal"]
|
|
},
|
|
"custom/mail": {
|
|
"format": " {}",
|
|
"exec": "~/scripts/eww/eww-mu4e-messages -g",
|
|
"interval": 15,
|
|
"signal": 2,
|
|
"tooltip": false,
|
|
"hide-empty-text": true
|
|
},
|
|
"custom/ime": {
|
|
"exec": "~/.config/river/waybar/fcitx5-state.el",
|
|
"interval": 15,
|
|
"signal": 1,
|
|
"tooltip": false,
|
|
"on-click": "~/scripts/eww/eww-fcitx5-toggle"
|
|
},
|
|
"custom/battery": {
|
|
"exec": "~/scripts/eww/eww-battery-monitor",
|
|
"return-type": "json",
|
|
"tooltip": true
|
|
},
|
|
"pulseaudio": {
|
|
"states": {
|
|
"zero": 0,
|
|
"low": 49,
|
|
"high": 100
|
|
},
|
|
"format-zero": "{volume:3}%",
|
|
"format-low": "{volume:3}%",
|
|
"format-high": "{volume:3}%",
|
|
"format-muted": "{volume:3}%",
|
|
"scroll-step": 5.0,
|
|
"on-click": "pamixer -t"
|
|
},
|
|
"clock#date": {
|
|
"on-click": "systemd-run --user --ignore-failure -- kitty -1 ikhal",
|
|
"format": " {:%a %b %d}",
|
|
"tooltip-format": "<tt><small>{calendar}</small></tt>",
|
|
"calendar": {
|
|
"mode": "month",
|
|
"mode-mon-col": 3,
|
|
"weeks-pos": "right",
|
|
"on-scroll": 1,
|
|
"format": {
|
|
"months": "<span color='#ffead3'><b>{}</b></span>",
|
|
"days": "<span color='#ecc6d9'><b>{}</b></span>",
|
|
"weeks": "<span color='#99ffdd'><b>W{}</b></span>",
|
|
"weekdays": "<span color='#ffcc66'><b>{}</b></span>",
|
|
"today": "<span color='#ff6699'><b><u>{}</u></b></span>"
|
|
}
|
|
},
|
|
"actions": {
|
|
"on-click-right": "mode",
|
|
"on-scroll-up": "shift_up",
|
|
"on-scroll-down": "shift_down"
|
|
}
|
|
},
|
|
"custom/time": {
|
|
"exec": "~/.config/river/waybar/waybar-clock.py CA America/Los_Angeles JP Asia/Tokyo",
|
|
"return-type": "json"
|
|
},
|
|
"custom/network": {
|
|
"exec": "~/.config/river/waybar/waybar-network.el",
|
|
"tooltip": false,
|
|
"on-click": "systemd-run --user --ignore-failure -- kitty -1 nmtui"
|
|
},
|
|
"bluetooth": {
|
|
"on-click": "systemd-run --user --ignore-failure -- blueman-manager",
|
|
"format": " ",
|
|
"format-off": ""
|
|
},
|
|
|
|
"group/tray": {
|
|
"orientation": "inherit",
|
|
"modules": ["custom/empty", "tray"],
|
|
"drawer": {
|
|
"toggle-signal": 4,
|
|
"transition-duration": 0
|
|
}
|
|
},
|
|
"custom/empty": {
|
|
"exec": "true",
|
|
"format": ""
|
|
},
|
|
"tray": {
|
|
"icon-size": 24,
|
|
"spacing": 5
|
|
}
|
|
}
|