dotfiles/.config/waybar/config##hostname.dbox

138 lines
3 KiB
Text

[
// TOP BAR
{
// "output": "DP-1",
"layer": "top",
"position": "top",
"modules-left": [
"custom/colcount",
],
"modules-center": [
"niri/window",
],
"modules-right": [
"clock",
],
"niri/window": {
// "max-length": 100,
"separate-outputs": true,
"expand": true,
"format": "{}",
"rewrite": {
"(.*) - Kakoune": "$1",
},
},
"custom/colcount": {
"exec": "~/dev/niri-windows/niri-windows.py",
"return-type": "json",
"restart-interval": "never",
"format": "{} ",
},
"clock": {
"format-alt": "{:%a, %d. %b %H:%M}",
},
},
// bottom bar
{
"output": "DP-1",
"layer": "top",
"position": "bottom",
"modules-left": [
"cava",
],
"modules-center": [
"cpu",
"custom/delim",
"memory",
"custom/delim",
"pulseaudio",
],
"modules-right": [
"custom/recorder",
"tray",
],
"niri/window": {
"max-length": 50,
"separate-outputs": true,
},
"custom/colcount": {
"exec": "~/dev/niri-windows/niri-windows.py",
"return-type": "json",
"restart-interval": "never",
"format": "{} ",
},
"custom/recorder": {
"exec": "~/dev/utils/wayland-utils/recorder/recorder.py",
"return-type": "json",
"restart-interval": "never",
"on-click": "~/dev/utils/wayland-utils/recorder/recorder.sh screen",
"on-click-right": "~/dev/utils/wayland-utils/recorder/recorder.sh region",
"format": " {} ",
},
"custom/delim": {
"format": "|",
},
"cava": {
"cava_config": "$XDG_CONFIG_HOME/cava/cava.conf",
"format-icons": [
"▁",
"▂",
"▃",
"▄",
"▅",
"▆",
"▇",
"█",
],
"actions": {
"on-click-right": "mode",
},
},
"battery": {
"format": "{capacity}% 󰁹",
"format-charging": "{capacity}% ",
"format-plugged": "{capacity}% ",
},
"pulseaudio": {
"scroll-step": 5,
"max-volume": 150,
"format": "󰕾 {volume}%",
"format-muted": "󰖁",
"nospacing": 1,
"on-click": "pavucontrol",
"on-click-right": "~/.config/waybar/scripts/cycle-sinks.fish",
"on-click-middle": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
"tooltip": false,
},
"cpu": {
"interval": 10,
"format": " {usage}%",
"max-length": 10,
},
"memory": {
"interval": 30,
"format": " {percentage}%",
"max-length": 10,
},
},
// LEFT BAR
{
// "output": "DP-1",
"layer": "top",
"exclusive": false,
"gtk-layer-shell": true,
"name": "leftbar",
"width": 14,
"position": "left",
"modules-left": [
"niri/workspaces",
],
"niri/workspaces": {
"format": "{icon}",
"format-icons": {
"active": "",
"default": "",
},
},
},
]