135 lines
4.0 KiB
JSON
135 lines
4.0 KiB
JSON
// -*- mode: jsonc -*-
|
|
{
|
|
// "layer": "top", // Waybar at top layer
|
|
// "position": "bottom", // Waybar position (top|bottom|left|right)
|
|
"output": "DP-1",
|
|
"position": "top",
|
|
"height": 40, // 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/os_button",
|
|
"hyprland/workspaces",
|
|
],
|
|
"modules-center": [
|
|
"hyprland/window",
|
|
],
|
|
"modules-right": [
|
|
"tray",
|
|
"idle_inhibitor",
|
|
"pulseaudio",
|
|
"network",
|
|
"custom/notification",
|
|
"clock",
|
|
"custom/power"
|
|
],
|
|
"custom/os_button": {
|
|
"format": "",
|
|
"on-click": "rofi -show drun -theme skycontrast",
|
|
"tooltip": false
|
|
},
|
|
"custom/notification": {
|
|
"tooltip": false,
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"notification": "<span foreground='red'><sup></sup></span>",
|
|
"none": "",
|
|
"dnd-notification": "<span foreground='red'><sup></sup></span>",
|
|
"dnd-none": "",
|
|
"inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
|
"inhibited-none": "",
|
|
"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
|
"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
|
|
},
|
|
"wlr/taskbar": {
|
|
"format": "{icon}",
|
|
"icon-size": 28,
|
|
"spacing": 3,
|
|
"on-click-middle": "close",
|
|
"tooltip-format": "{title}",
|
|
"ignore-list": [],
|
|
"on-click": "activate"
|
|
},
|
|
"hyprland/workspaces": {
|
|
"persistent-workspaces": {
|
|
"DP-1": [1,2,3,4,5],
|
|
}
|
|
},
|
|
"idle_inhibitor": {
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"activated": "",
|
|
"deactivated": ""
|
|
}
|
|
},
|
|
"tray": {
|
|
"icon-size": 22,
|
|
"spacing": 10
|
|
},
|
|
"clock": {
|
|
// "timezone": "America/New_York",
|
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
|
"format-alt": "{:%Y-%m-%d}"
|
|
},
|
|
"network": {
|
|
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
|
"format-wifi": "({signalStrength}%) ",
|
|
"format-ethernet": "",
|
|
"tooltip-format": "{ifname} via {gwaddr}",
|
|
"format-linked": "{ifname} (No IP)",
|
|
"format-disconnected": "⚠",
|
|
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
|
},
|
|
"pulseaudio": {
|
|
// "scroll-step": 1, // %, can be a float
|
|
"format": "{volume}% {icon} {format_source}",
|
|
"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"
|
|
},
|
|
"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,
|
|
"menu": "on-click",
|
|
"menu-file": "$HOME/.config/waybar/power_menu.xml", // Menu file in resources folder
|
|
"menu-actions": {
|
|
"poweroff": "poweroff",
|
|
"reboot": "reboot",
|
|
"suspend": "systemctl suspend",
|
|
"logout": "hyprctl dispatch exit"
|
|
}
|
|
}
|
|
}
|