Files
dotfiles/waybar/config_top.jsonc

153 lines
4.4 KiB
JSON

// -*- mode: jsonc -*-
{
"output": [
"eDP-1",
"HDMI-A-1"
],
"height": 30,
"width": 1900,
"spacing": 0,
"reload_style_on_change": true,
"modules-left": [
"custom/separator_invisible",
"mpd",
"custom/pomodoro"
],
"modules-center": [
"hyprland/workspaces"
],
"modules-right": [
"pulseaudio",
"pulseaudio/slider",
"battery",
"network",
"clock",
"custom/separator_invisible"
],
"hyprland/workspaces": {
"disable-scroll": true,
"all-outputs": false,
"active-only": true,
"warp-on-scroll": false,
"persistent-workspaces": {
"eDP-1": [1,2,3,4,5,6,7,8,9],
"HDMI-A-1": [10,11,12],
"IGNORED": [13,14]
},
"ignore-workspaces": [
"*13",
"*14"
],
"format": "{icon}",
"format-icons": {
"1": "󱐡",
"2": "󰰫",
"3": "󰛿",
"4": "󱑤",
"5": "󰲨",
"6": "󰲪",
"7": "󰥱",
"8": "󰷸",
"9": "󱡝",
"10": "󰥱",
"11": "",
"12": "",
"default": "󰽢"
}
},
"mpd": {
"password": "kapuchinamusica",
"artist-len": 30,
"title-len": 31,
"unknown-tag": "n/a",
"format": "{stateIcon} {titleSmart}",
"interval": 1,
"single-icons": {
"on": "1 "
},
"state-icons": {
"paused": "",
"playing": ""
},
"tooltip-format": "MPD (connected)",
"tooltip-format-disconnected": "MPD (disconnected)",
"format-stopped": "",
"on-click": "mpc toggle --password kapuchinamusica"
},
"clock": {
"timezone": "Europe/Moscow",
"interval": 5,
"tooltip-format": "<big>{:%A ( %B %d )}</big>\n<tt><small>{calendar}</small></tt>",
"format": "{:%H:%M}",
"format-alt": "{:%H:%M %d.%m.%Y}",
"calendar": {
"mode": "year",
"mode-mon-col": 3,
"weeks-pos": "right",
"format": {
"months": "<span color='#ffead3'><b>{}</b></span>",
"days": "<span color='#ac8699'><b>{}</b></span>",
"weeks": "<span color='#BC4056'><b>W{}</b></span>",
"weekdays": "<span color='#F8B5CE'><b>{}</b></span>",
"today": "<span color='#00FFFF'><b><u>{}</u></b></span>"
}
},
"actions": {
"on-click-right": "mode"
}
},
"battery": {
"full-at": 98,
"states": {
"good": 85,
"warning": 30,
"critical": 18
},
"format": "{icon}",
"format-full": "󱈏",
"format-charging": "{icon}󱐋",
"format-plugged": "{icon}",
"format-alt": "{time} {icon}",
// "format-good": "", // An empty format will hide the module
"format-icons": ["󰂎", "", "", "󰁽", "", "󰁿", "", "󰂁", "󰂂"],
"tooltip-format": "{capacity}%, draws {power:2.1f}W, time is {time}"
},
"network": {
"format-wifi": "{icon}",
"format-ethernet": "{ipaddr}/{cidr} ",
"tooltip-format": "{essid} {ifname} via {gwaddr} ",
"format-linked": "{ifname} (No IP) ",
"format-disconnected": "󰤫",
"format-icons": [
"󰤯", "󰤟", "󰤢", "󰤥", "󰤨"
]
},
"pulseaudio": {
// "scroll-step": 1, // %, can be a float
"format": "{format_source} ",
"format-muted": "{format_source} ",
"format-bluetooth": "{format_source} 󰂰",
"format-bluetooth-muted": "{format_source} 󰂲",
"format-source": "",
"format-source-muted": "",
"on-click": "pwvucontrol"
},
"pulseaudio/slider": {
"min": 0,
"max": 100,
"orientation": "horizontal"
},
"custom/separator_invisible": {
"format": " ",
"interval": "once",
"tooltip": false
},
"custom/pomodoro": {
"format": "{}",
"return-type": "json",
"exec": "~/.local/bin/waybar-module-pomodoro --persist -w 20 -s 5 -l 20 -i 3 -p '' -a '' --autob",
"on-click": "~/.local/bin/waybar-module-pomodoro toggle",
"on-click-right": "~/.local/bin/waybar-module-pomodoro reset"
}
}