Files
dotfiles/waybar/config.jsonc
Nikolai Papin 886461ca6d chore: remove offensive quote from cowsay quotes;
chore: adjust kitty color6 and enable dynamic background opacity;
refactor: update mpd httpd output configuration;
chore: remove codeium and live-server nvim plugins;
feat: add oneshot logo image for rofi;
refactor: simplify rofi style with transparent backgrounds;
feat: add tmux passthrough setting for nvim compatibility;
feat: configure waybar for multi-monitor and adjust update intervals;
feat: add wallpaper lock aliases and brainless commit function
2025-11-06 00:40:15 +03:00

278 lines
8.2 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/goal"
],
"modules-center": [
"mpd"
],
"modules-right": [
"cpu",
"memory",
"memory#swap",
"pulseaudio",
"battery",
"network",
"tray",
"clock"
],
// 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": "五",
"6": "六",
"7": "七",
"8": "八",
"9": "九",
"10": "ロ",
"11": "一",
"12": "十",
"default": "",
"empty": ""
}
},
"keyboard-state": {
"numlock": true,
"capslock": true,
"format": "{name} {icon}",
"format-icons": {
"locked": "",
"unlocked": ""
}
},
"hyprland/language": {
"format-ru": "RU",
"format-en": "EN"
},
"hyprland/mode": {
"format": "<span style=\"italic\">{}</span>"
},
"hyprland/scratchpad": {
"format": "{icon} {count}",
"show-empty": false,
"format-icons": ["", ""],
"tooltip": true,
"tooltip-format": "{app}: {title}"
},
"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"
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"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": {
"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='#FFFFFF'><b><u>{}</u></b></span>"
}
}
},
"cpu": {
"format": "{max_frequency:1.2f}GHz 󰓅 {usage}%",
"tooltip": false,
"interval": 10,
"format-icons": [
"󰄰", "󰪞", "󰪟", "󰪠", "󰪡", "󰪢", "󰪣", "󰪤", "󰪥"
]
},
"memory": {
"format": "󰧑 {percentage}%",
"interval": 10,
"format-icons": [
"󰄰", "󰪞", "󰪟", "󰪠", "󰪡", "󰪢", "󰪣", "󰪤", "󰪥"
]
},
"memory#swap": {
"format": "󰋊 {swapPercentage}%",
"interval": 10,
"format-icons": [
"󰄰", "󰪞", "󰪟", "󰪠", "󰪡", "󰪢", "󰪣", "󰪤", "󰪥"
]
},
"temperature": {
// "thermal-zone": 2,
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"critical-threshold": 80,
// "format-critical": "{temperatureC}°C {icon}",
"format": "{temperatureC}°C {icon}",
"format-icons": ["", "", ""]
},
"backlight": {
// "device": "acpi_video1",
"format": "{percent} {icon}",
"format-icons": ["", "", "", "", "", "", "", "", ""]
},
"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}"
},
"battery#bat2": {
"bat": "BAT2"
},
"power-profiles-daemon": {
"format": "{icon}",
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
"tooltip": true,
"format-icons": {
"default": "󰓅",
"performance": "󰓅",
"balanced": "󰾅",
"power-saver": "󰾆"
}
},
"network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface
"format-wifi": "{icon}",
"format-ethernet": "{ipaddr}/{cidr} ",
"tooltip-format": "{essid} {ifname} via {gwaddr} ",
"format-linked": "{ifname} (No IP) ",
"format-disconnected": "󰤫",
"format-icons": [
"󰤯", "󰤟", "󰤢", "󰤥", "󰤨"
],
"on-click": "hyprctl dispatch exec, [float; move center] kitty -e nmtui"
},
"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": " ",
"format-icons": [
"󰄰", "󰪞", "󰪟", "󰪠", "󰪡", "󰪢", "󰪣", "󰪤", "󰪥"
],
"on-click": "pwvucontrol"
},
"custom/media": {
"format": "{icon} {text}",
"return-type": "json",
"max-length": 40,
"format-icons": {
"spotify": "",
"default": "🎜"
},
"escape": true,
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
},
"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/goal": {
"exec": "cat $HOME/.config/waybar/goal.txt",
"format": "󱓧 {}",
"interval": 60
},
"custom/power": {
"format" : "⏻ ",
"tooltip": false,
"menu": "on-click",
"menu-file": "$HOME/.config/waybar/power_menu.xml", // Menu file in resources folder
"menu-actions": {
"shutdown": "shutdown",
"reboot": "reboot",
"suspend": "systemctl suspend",
"hibernate": "systemctl hibernate"
}
}
}