89 lines
4.2 KiB
Plaintext
89 lines
4.2 KiB
Plaintext
{
|
|
// "height": 40, // Waybar height (to be removed for auto height)
|
|
"spacing": 4, // Gaps between modules (4px)
|
|
// Choose the order of the modules
|
|
"modules-left": ["sway/workspaces", "sway/window"],
|
|
"modules-center": ["clock"],
|
|
"modules-right": ["custom/tiramisu","battery", "bluetooth", "network", "wireplumber", "tray"],
|
|
//"modules-right": ["custom/tiramisu", "bluetooth",network", "wireplumber", "tray"],
|
|
// Modules configuration
|
|
// "hyprland/workspaces": {
|
|
// "disable-scroll": true,
|
|
// "all-outputs": true,
|
|
// "warp-on-scroll": false,
|
|
// "format": "{name}",
|
|
// },
|
|
"sway/workspaces": {
|
|
"format": "{icon}",
|
|
},
|
|
"tray": {
|
|
"icon-size": 18,
|
|
"spacing": 10
|
|
},
|
|
"clock": {
|
|
// "timezone": "America/New_York",
|
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
|
"format-alt": "{:%Y-%m-%d %H:%M}"
|
|
},
|
|
"bluetooth": {
|
|
//"format": "{status} ",
|
|
"format-on": "",
|
|
"format-off": "",
|
|
"format-connected": "{device_alias} ",
|
|
// "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}%",
|
|
"on-click": "~/.local/bin/rofi-bluetooth"
|
|
//"on-click": "blueman-manager"
|
|
},
|
|
"network": {
|
|
"interface": "wls2",
|
|
"format": "{ifname}",
|
|
"format-wifi": "{essid} {icon}",
|
|
"format-ethernet": "{ipaddr}/{cidr} ",
|
|
"format-disconnected": "", //An empty format will hide the module.
|
|
"tooltip-format": "{ifname} via {gwaddr} ",
|
|
"tooltip-format-wifi": "{essid} ({signalStrength}%) ",
|
|
"tooltip-format-ethernet": "{ifname} ",
|
|
"tooltip-format-disconnected": "Disconnected",
|
|
"max-length": 50,
|
|
"format-icons": [" ", " "," "," "],
|
|
"on-click": "swaymsg exec '$term -t wtui -e nmtui-connect'"
|
|
},
|
|
"battery": {
|
|
"interval": 1,
|
|
"states": {
|
|
"good": 99,
|
|
"warning": 30,
|
|
"critical": 20
|
|
},
|
|
"format-icons": [" "," "," "," "," "],
|
|
"format": "<span color='#8ec07c' > {icon}</span>{capacity}%",
|
|
"format-critical": "<span color='#cc241d' > {icon}</span>{capacity}%",
|
|
"format-warning": "<span color='#d8a657' > {icon}</span>{capacity}%",
|
|
"format-full": "<span color='#8ec07c' > {icon}</span>{capacity}%",
|
|
"format-charging": "<span color='#8ec07c' > </span>{capacity}%",
|
|
"format-charging-warning": "<span color='#d8a657' > </span>{capacity}%",
|
|
"format-charging-critical": "<span color='#cc241d' > </span>{capacity}%",
|
|
"format-plugged": "<span color='#8ec07c' > </span>{capacity}%",
|
|
"tooltip": false
|
|
},
|
|
"wireplumber": {
|
|
//"format": "{icon}",
|
|
"format": "{volume}% {icon}",
|
|
"format-muted": "{node_name} ",
|
|
"on-click-right": "pactl set-default-sink $((s=$(pactl list short sinks | sed -e 's:^[0-9]\\+\\s\\+::' | grep -oP '^\\S+'); echo \"$s\"; echo \"$s\") | fgrep $(pactl get-default-sink) -m 1 -A 1 | tail -1)",
|
|
"on-click": "pavucontrol",
|
|
"max-volume": 100,
|
|
"scroll-step": 2,
|
|
"format-icons":["","",""]
|
|
},
|
|
"custom/tiramisu": {
|
|
"format": "{} ",
|
|
"exec": "sh ~/.config/polybar/scripts/polytiramisu.sh",
|
|
},
|
|
},
|
|
|