// -*- mode: jsonc -*- { "layer": "top", // Waybar at top layer "position": "top", // Waybar position (top|bottom|left|right) "output": "eDP-1", "height": 40, // Waybar height (to be removed for auto height) "margin-top": 15, "margin-bottom": 0, "margin-left": 20, "margin-right": 20, // "width": 2100, // Waybar width "spacing": 0, // Gaps between modules (4px) // Choose the order of the modules "modules-left": [ "custom/menu", "hyprland/workspaces", // "hyprland/submap", // "sway/mode", "network" // "custom/media" ], "modules-center": [ // "hyprland/window" "idle_inhibitor", "custom/myclock", "custom/wttr", "sway/scratchpad" ], "modules-right": [ "cpu", "memory", // "idle_inhibitor", "temperature", "backlight", "pulseaudio", // "keyboard-state", // "sway/language", "battery", // "battery#bat2", "custom/noty", "custom/clipboard", "tray", "custom/power" ], "custom/menu": { "format": " ", "tooltip": false, "on-click": "rofi -show run -theme archer -font 'Iosevka Nerd Font Medium 18'" }, // Modules configuration "hyprland/workspaces": { "disable-scroll": false, "all-outputs": true, "warp-on-scroll": true, "format": "{name}", "on-scroll-up": "hyprctl dispatch workspace e+1", "on-scroll-down": "hyprctl dispatch workspace e-1", "format-icons": { // "1": "", // "2": "", // "3": "", // "4": "", // "5": "", // "6": "", // "7": "", // "8": "", // "9": "", // "10": "", "urgent": "", "focused": "", "default": "" } }, "keyboard-state": { "numlock": true, "capslock": true, "format": "{name} {icon}", "format-icons": { "locked": "", "unlocked": "" } }, "sway/mode": { "format": "{}" }, "sway/scratchpad": { "format": "{icon} {count}", "show-empty": true, // "format-icons": ["", ""], "format-icons": ["󰉗", "󰉙"], "tooltip": true, "tooltip-format": "{app}: {title}" }, "mpd": { "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ", "format-disconnected": "Disconnected ", "format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ", "unknown-tag": "N/A", "interval": 5, "consume-icons": { "on": " " }, "random-icons": { "off": " ", "on": " " }, "repeat-icons": { "on": " " }, "single-icons": { "on": "1 " }, "state-icons": { "paused": "", "playing": "" }, "tooltip-format": "MPD (connected)", "tooltip-format-disconnected": "MPD (disconnected)" }, "idle_inhibitor": { "format": "{icon}", "format-icons": { "activated": "", "deactivated": "" } }, "tray": { // "icon-size": 21, "spacing": 15 }, "clock": { // "timezone": "America/New_York", "format": "{:%a %d %b | %H:%M}", "tooltip-format": "{:%Y %B}\n{calendar}", "format-alt": "{:%a %d %b %Y}", "locale": "ru_RU.UTF-8", }, "custom/ip": { "exec": "/home/fox/bin/test_ip.lua", "format": "IP: {}", "interval": 600, }, "cpu": { "format": " {usage}%", "tooltip": false, "interval": 1, }, "memory": { "format": " {percentage}%" }, "temperature": { // "thermal-zone": 2, "hwmon-path": "/sys/class/hwmon/hwmon5/temp1_input", "critical-threshold": 80, // "format-critical": "{temperatureC}°C {icon}", "format": "{icon} {temperatureC}°C", // "format-icons": ["", "", ""] "format-icons": ["", "", ""] }, "backlight": { // "device": "acpi_video1", "format": "{icon} {percent}%", "tooltip-format": "{percent}%", "format-icons": ["", "", "", "", "", "", "", "", ""] }, "battery": { "states": { // "good": 95, "warning": 20, "critical": 10 }, "format": "{icon}", "format-full": "{icon}", "format-charging": "{icon}", "format-plugged": "{icon}", "format-alt": "{time} {icon}", // "format-good": "", // An empty format will hide the module // "format-full": "", // "format-icons": ["", "", "", "", ""] "format-icons": ["󰂎", "󰁻", "󰁽", "󰂀", "󰁹"] }, "battery#bat2": { "bat": "BAT0" }, "power-profiles-daemon": { "format": "{icon}", "tooltip-format": "Power profile: {profile}\nDriver: {driver}", "tooltip": true, "format-icons": { "default": "", "performance": "", "balanced": "", "power-saver": "" } }, "network": { "interface": "wlan0", // (Optional) To force the use of this interface "interval": 1, // "format-wifi": "{essid} ({signalStrength}%) ", "format-wifi": " ⇣ {bandwidthDownBytes} ⇡ {bandwidthUpBytes}", "format-ethernet": "󰈀 ⇣ {bandwidthDownBytes} ⇡ {bandwidthUpBytes}", // "tooltip-format": "{ifname} via {gwaddr} ", "tooltip-format": " {essid} ({signalStrength}%)", "format-linked": "{ifname} (No IP) ", "format-disconnected": "Disconnected ⚠", // "format-alt": "{ifname}: {ipaddr}/{cidr}", "on-click": "kitty --hold /home/fox/bin/test_ip.lua", }, "pulseaudio": { // "scroll-step": 1, // %, can be a float "format": "{icon} {volume}%", "format-bluetooth": "{icon}", "format-bluetooth-muted": " {icon}", "format-muted": " ", "format-source": "", "format-source-muted": "", "format-icons": { "headphone": "", "hands-free": "", "headset": "", "phone": "", "portable": "", "car": "", "default": ["", "", ""] }, "tooltip-format": "{volume}%", "on-click": "pavucontrol" }, "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/power": { "format" : "⏻ ", "tooltip": false, "on-click": "/home/fox/bin/powermenu", }, "hyprland/submap": { "format": "✌️ {}", "max-length": 8, "tooltip": false }, "custom/myclock": { "exec": "/home/fox/bin/waybar_clock.sh", "format": "{}", "interval": 1, "on-click": "/home/fox/bin/clockv2", }, "custom/wttr": { "exec": "/home/fox/bin/wttr.sh", "format": "{}", "interval": 600, "on-click": "kitty --hold curl 'https://wttr.in/Kumylzhenskaya?lang=ru'" }, "custom/clipboard": { "on-click": "/home/fox/bin/clipboard.sh", "format": "󰅎 ", "tooltip": false }, "custom/noty": { "on-click": "swaync-client -t -sw", "format": "  ", "tooltip": false, }, }