236 lines
7.5 KiB
JSON
236 lines
7.5 KiB
JSON
// -*- mode: jsonc -*-
|
|
{
|
|
// "layer": "top", // Waybar at top layer
|
|
// "position": "bottom", // Waybar position (top|bottom|left|right)
|
|
// "height": 32, // Waybar height (to be removed for auto height)
|
|
// "width": 1280, // Waybar width
|
|
"spacing": 4, // Gaps between modules (4px)
|
|
// Choose the order of the modules
|
|
"modules-left": [
|
|
"custom/logo",
|
|
"hyprland/workspaces",
|
|
"hyprland/window"
|
|
],
|
|
"modules-center": [
|
|
"clock",
|
|
"custom/media"
|
|
],
|
|
"modules-right": [
|
|
"tray",
|
|
"pulseaudio",
|
|
"custom/notifications"
|
|
],
|
|
// Modules configuration
|
|
"hyprland/workspaces": {
|
|
"disable-scroll": false,
|
|
"all-outputs": true,
|
|
"warp-on-scroll": true,
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"urgent": "",
|
|
"focused": "",
|
|
"active": "",
|
|
"default": ""
|
|
},
|
|
"persistent-workspaces": {
|
|
"1": [],
|
|
"2": []
|
|
}
|
|
},
|
|
"bluetooth": {
|
|
"format": " {status}",
|
|
"format-connected": " {device_alias}",
|
|
"format-connected-battery": " {device_alias} {device_battery_percentage}%",
|
|
// "format-device-preference": [ "device1", "device2" ], // preference list deciding the displayed device
|
|
"tooltip-format": "{controller_alias}\t{controller_address}\n\n{num_connections} connected",
|
|
"tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}",
|
|
"tooltip-format-enumerate-connected": "{device_alias}\t{device_address}",
|
|
"tooltip-format-enumerate-connected-battery": "{device_alias}\t{device_address}\t{device_battery_percentage}%"
|
|
},
|
|
"keyboard-state": {
|
|
"numlock": true,
|
|
"capslock": true,
|
|
"format": "{name} {icon}",
|
|
"format-icons": {
|
|
"locked": " ",
|
|
"unlocked": " "
|
|
}
|
|
},
|
|
"hyprland/window": {
|
|
"format": "{class}: {title}",
|
|
"show-empty": false,
|
|
"rewrite": {
|
|
": ": "",
|
|
"firefox(.*)": "Firefox",
|
|
"(.*)kitty(.*)": "Kitty",
|
|
"Spotify(.*)": "Spotify",
|
|
"discord(.*) - Discord": "Discord$1",
|
|
"org.gnome.(.*)": "$1"
|
|
|
|
},
|
|
"escape": true
|
|
},
|
|
"custom/logo": {
|
|
"format": "", // Change to desired logo
|
|
"tooltip": false,
|
|
"escape": true,
|
|
"on-click": "wofi --show drun -I -a -b" // Change to desired action
|
|
},
|
|
"custom/notifications": {
|
|
"tooltip": false,
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"notification": "",
|
|
"none": "",
|
|
"dnd-notification": "",
|
|
"dnd-none": "",
|
|
"inhibited-notification": "",
|
|
"inhibited-none": "",
|
|
"dnd-inhibited-notification": "",
|
|
"dnd-inhibited-none": ""
|
|
},
|
|
"return-type": "json",
|
|
"exec-if": "which swaync-client",
|
|
"exec": "swaync-client -swb",
|
|
"on-click": "swaync-client -t -sw",
|
|
"on-click-right": "swaync-client -d -sw",
|
|
"escape": true
|
|
},
|
|
"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": "<span color=\"#f53c3c\"></span> ",
|
|
"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": 16,
|
|
"spacing": 12
|
|
},
|
|
"clock": {
|
|
"timezone": "",
|
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt>{calendar}</tt>",
|
|
"format": "{:L%a. %d, %H:%M}",
|
|
"format-alt": "{:%Y-%m-%d}"
|
|
},
|
|
"cpu": {
|
|
"format": "{usage}% ",
|
|
"tooltip": true,
|
|
"escape": true
|
|
},
|
|
"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-charging": "{capacity}% ",
|
|
"format-plugged": "{capacity}% ",
|
|
"format-alt": "{time} {icon}",
|
|
"format-good": "{capacity}% {icon}",
|
|
"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": "{ipaddr}/{cidr} ",
|
|
"tooltip-format": "{ifname} via {gwaddr} ",
|
|
"format-linked": "{ifname} (No IP) ",
|
|
"format-disconnected": "Disconnected ⚠",
|
|
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
|
},
|
|
"pulseaudio": {
|
|
"format": "{volume}% {icon} {format_source}",
|
|
"format-bluetooth": "{volume}% {icon} {format_source}",
|
|
"format-bluetooth-muted": " {icon}",
|
|
"format-muted": " {format_source}",
|
|
"format-source": "{icon} {volume}%",
|
|
"format-icons": {
|
|
"headphone": "",
|
|
"hands-free": "",
|
|
"headset": "",
|
|
"default": ["", "", ""]
|
|
},
|
|
"exec-if": "which pavucontrol",
|
|
"on-click": "pavucontrol"
|
|
},
|
|
"custom/media": {
|
|
"format": "{icon} {}",
|
|
"return-type": "json",
|
|
"max-length": 40,
|
|
"escape": true,
|
|
"format-icons": {
|
|
"firefox": "",
|
|
"discord": "",
|
|
"spotify": "",
|
|
"default": ""
|
|
},
|
|
"tooltip": true,
|
|
"tooltip-format": {
|
|
"1": "Scroll-Up: Next<br>Scroll-Down: Previous"
|
|
},
|
|
"on-scroll-down": "playerctl --player spotify previous",
|
|
"on-scroll-up": "playerctl --player spotify next",
|
|
"exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null", // Script in resources folder
|
|
"on-click": "playerctl --player spotify play-pause" // Change "spotify to your preferred player"
|
|
}
|
|
}
|