Files
dotfiles/waybar/config.jsonc
Nikolai Papin c9795e2514 feat(hypr): add nwg-dock autostart and MPD control submap;
feat(hypr): add window swallowing for kitty and Steam workspace rules;
feat(waybar): create minimal config for gamemode and add notification panel button;
refactor(waybar): simplify config, merge memory/swap displays, update workspace icons;
refactor(swaync): remove CPU slider and adjust button styling;
experiment(hypr): increase vibrancy and change screenshot sound;
experiment(rmpc): update progress bar symbols;
fix(rofi): add mouse support to all menu configurations;
chore(hypr): update gamemode script to toggle minimal waybar
2025-12-21 22:00:37 +03:00

202 lines
5.9 KiB
JSON

// -*- mode: jsonc -*-
{
//"output": "eDP-1",
"output": [
"eDP-1",
"HDMI-A-1"
],
// "layer": "top", // Waybar at top layer
// "position": "bottom", // Waybar position (top|bottom|left|right)
"height": 30, // Waybar height (to be removed for auto height)
// "width": 1280, // Waybar width
"spacing": 0, // Gaps between modules (4px)
// Choose the order of the modules
"modules-left": [
"hyprland/workspaces",
"custom/pomodoro"
// "custom/submap"
],
"modules-center": [
"mpd"
],
"modules-right": [
"cpu",
"memory",
"pulseaudio",
"battery",
"network",
"tray",
"clock",
"custom/panel"
],
// Modules configuration
"hyprland/workspaces": {
"disable-scroll": true,
"all-outputs": false,
"active-only": true,
"warp-on-scroll": false,
"persistent-workspaces": {
// "1": [],
// "2": [],
// "3": [],
// "4": [],
// "5": [],
// "6": [],
// "7": [],
// "8": [],
// "9": [],
// "10": [],
// "11": [],
// "12": []
"eDP-1": [1,2,3,4,5,6,7,8,9],
"HDMI-A-1": [10,11,12],
"FUCKOFF": [13,14]
},
"ignore-workspaces": [
"*13",
"*14"
],
"format": "{icon}",
"format-icons": {
"1": "",
"2": "󱒔",
"3": "󰙏",
"4": "󰉋",
// "5": "5",
// "6": "6",
"7": "󰊗",
"8": "󰭹",
"9": "",
"10": "0",
"11": "-",
"12": "+",
"default": "󰽢",
"empty": "󰄰"
}
},
"mpd": {
"password": "kapuchinamusica",
"artist-len": 30,
"title-len": 65,
"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": " Stopping player...",
"on-click": "mpc toggle --password kapuchinamusica"
},
"tray": {
// "icon-size": 21,
"spacing": 10,
"icons": {
"blueman": "bluetooth",
"*": "folder-symbolic"
}
},
"clock": {
// "timezone": "America/New_York",
"interval": 5,
"tooltip-format": "<big>{:%A ( %B %d )}</big>\n<tt><small>{calendar}</small></tt>",
"format": "{:%H:%M:%S}",
"format-alt": "{:%Y-%m-%d}",
"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"
}
},
"cpu": {
"format": "{max_frequency:1.2f}GHz 󰓅 {usage}%",
"tooltip": false,
"interval": 15,
"format-icons": [
"󰄰", "󰪞", "󰪟", "󰪠", "󰪡", "󰪢", "󰪣", "󰪤", "󰪥"
]
},
"memory": {
"format": "󰧑 {percentage}% 󰋊 {swapPercentage}%",
"interval": 10
},
"battery": {
"full-at": 98,
"states": {
"good": 85,
"warning": 30,
"critical": 18
},
"format": "{icon} {capacity}%",
"format-full": "{icon} {capacity}%",
"format-charging": "{icon}󱐋{capacity}%",
"format-plugged": "{icon} {capacity}%",
"format-alt": "{time} {icon}",
// "format-good": "", // An empty format will hide the module
"format-full": "󱈏",
"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} {volume}%",
"format-bluetooth": "{format_source}󰂰 {volume}%",
"format-bluetooth-muted": "{format_source} 󰂲",
"format-muted": "󰖁",
"format-source": "",
"format-source-muted": " ",
"on-click": "pwvucontrol"
},
"custom/submap": {
"format": "{icon} {text}",
"max-length": 10,
"format-icons": {
"default": "󰥻"
},
"interval": 1,
"exec": "state=$(hyprctl submap) && [[ $state != 'default' ]] && echo $state",
"on-click": "hyprctl dispatch submap reset"
},
"custom/pomodoro": {
"format": "{}",
"return-type": "json",
"exec": "~/.local/bin/waybar-module-pomodoro --persist -w 20 -s 5 -l 20 -i 3 --autob",
"on-click": "~/.local/bin/waybar-module-pomodoro toggle",
"on-click-right": "~/.local/bin/waybar-module-pomodoro reset"
},
"custom/panel": {
"format": "",
"on-click": "swaync-client -t -sw"
},
"custom/goal": {
"exec": "cat $HOME/.config/waybar/goal.txt",
"format": "󱓧 {}",
"interval": 60
}
}