// -*- mode: jsonc -*- { // "layer": "top", // Waybar at top layer "position": "bottom", // "height": 40, // Waybar height (to be removed for auto height) "spacing": 4, // Gaps between modules (4px) "modules-left": [ "niri/workspaces", // "custom/media", "cffi/niri_window_buttons" // "wlr/taskbar" ], "modules-center": [ "sway/window" ], "modules-right": [ "pulseaudio", "pulseaudio/slider", "network", "power-profiles-daemon", "cpu", "memory", "temperature", "backlight", "battery", "battery#bat2", "clock", "tray", "custom/power" ], "tray": { // "icon-size": 21, "spacing": 10, // "icons": { // "blueman": "bluetooth", // "TelegramDesktop": "$HOME/.local/share/icons/hicolor/16x16/apps/telegram.png" // } }, "wlr/taskbar": { "format": "{icon} {title}", "on-click": "activate" }, "clock": { // "timezone": "America/New_York", "tooltip-format": "{:%Y %B}\n{calendar}", "format-alt": "{:%Y-%m-%d}" }, "cpu": { "format": "{usage}% ", "tooltip": false }, "memory": { "format": "{}% " }, "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": { "states": { // "good": 95, "warning": 30, "critical": 15 }, "format": "{capacity}% {icon}", "format-full": "{capacity}% {icon}", "format-charging": "{capacity}% ", "format-plugged": "{capacity}% ", "format-alt": "{time} {icon}", // "format-good": "", // An empty format will hide the module // "format-full": "", "format-icons": ["", "", "", "", ""] }, "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": "{essid} ({signalStrength}%) ", "format-ethernet": "Connected ", "tooltip-format": "{ifname} via {gwaddr} ", "format-linked": "{ifname} (No IP) ", "format-disconnected": "Disconnected ⚠", "format-alt": "{ifname}: {ipaddr}/{cidr}" }, "pulseaudio": { // "scroll-step": 1, // %, can be a float "format": "{format_source} {volume}% {icon}", "format-bluetooth": "{volume}% {icon} {format_source}", "format-bluetooth-muted": " {icon} {format_source}", "format-muted": " {format_source}", "format-source": "{volume}% ", "format-source-muted": "", "format-icons": { "headphone": "", "hands-free": "", "headset": "", "phone": "", "portable": "", "car": "", "default": ["", "", ""] }, "on-click": "pavucontrol" }, "pulseaudio/slider": { "orientation": "horizontal", "min": 0, "max": 100, "expand": true }, "custom/media": { "format": "{icon} {text}", "return-type": "json", "max-length": 40, "format-icons": { "default": "🎜" }, "escape": true, "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder }, "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" } }, "cffi/niri_window_buttons": { "module_path": "/home/cobertos/.nix-profile/lib/libniri_window_buttons.so", // Display "only_current_workspace": true, "show_window_titles": true, "truncate_titles": true, "allow_title_linebreaks": false, "button_alignment": "left", "show_tooltip": true, "tooltip_delay": 200, // Sizing "icon_size": 18, "icon_spacing": 6, "min_button_width": 10, "max_button_width": 190, "max_taskbar_width": 1210, "scroll_arrow_left": "", "scroll_arrow_right": "", // Per-output overrides "max_taskbar_width_per_output": { "DP-2": 800, }, // Drag reorder "drag_style": "browser", "left_click_focus_on_press": false, "drag_hover_focus": true, "drag_hover_focus_delay": 500, // Click actions "click_actions": { "left_click_unfocused": "focus-window", "left_click_focused": "focus-window", "double_click": "maximize-window-to-edges", "right_click_unfocused": "menu", "right_click_focused": "menu", "middle_click_unfocused": "none", "middle_click_focused": "none", // "scroll_up": "move-column-left", // "scroll_down": "move-column-right" }, // Context menu "context_menu": [ {"label": "Maximize (Mod+M)", "action": "maximize-window-to-edges"}, {"label": "Center (Mod+C)", "action": "center-window"}, {"label": "Float (Mod+V)", "action": "toggle-window-floating"}, {"label": "Move WS Up (Mod+PgUp)", "action": "move-window-to-workspace-up"}, {"label": "Move WS Down (Mod+PgDwn)", "action": "move-window-to-workspace-down"} // {"label": " Run Script", "command": "notify-send '{app_id}'"}, // {"label": " Close Window (Mod+Q)", "action": "close-window"} ], // This is disabled in a .patch file "multi_select_modifier": "shift", "multi_select_menu": [ {"label": " Move All Up", "action": "move-to-workspace-up"}, {"label": " Move All Down", "action": "move-to-workspace-down"}, {"label": " Maximize All", "action": "maximize-columns"}, {"label": " Close All", "action": "close-windows"} ], // Filtering // "ignore_rules": [ // // {"app_id": "xpad"}, // // {"app_id": "launcher"}, // // {"title_contains": "Picture-in-Picture"}, // // {"app_id": "firefox", "title_regex": "^Extension:"} // ], // Notifications // "notifications": { // "enabled": true, // "use_desktop_entry": true, // "use_fuzzy_matching": true, // "map_app_ids": { // "org.mozilla.firefox": "firefox" // } // }, // TODO: This causes a crash for some reason // Audio indicator // "audio_indicator": { // "enabled": true, // "playing_icon": "󰕾", // "muted_icon": "󰖁", // "clickable": true // }, // Per-app CSS classes and click overrides // "apps": { // "signal": [ // {"match": "\\([0-9]+\\)$", "class": "unread"} // ], // "firefox": [ // {"match": ".*YouTube.*", "class": "youtube"}, // {"match": ".*", "click_actions": { // "middle_click_unfocused": "none", // "middle_click_focused": "none" // }} // ] // } } }