dots/stow/.config/waybar/config.jsonc

181 lines
4.6 KiB
JSON

{
"layer": "top", // Waybar at top layer
"position": "right", // Waybar position (top|bottom|left|right)
//"height": 40,
"margin": "0 10 0 10",
//"width": 1350, // Waybar width
// Choose the order of the modules idle_inhibitor
"modules-left": [
"hyprland/workspaces",
"niri/workspaces",
"tray",
"custom/media"
],
"modules-center": [],
"modules-right": [
"network",
"wireplumber",
"backlight",
"battery",
"privacy",
"clock",
"custom/swaync"
],
// Modules configuration
"hyprland/workspaces": {
"disable-scroll": true,
"all-outputs": true,
"format": "{icon}",
// "format": "< %g >",
// "format_focused" : "< %g ● >",
"format-icons": {
"1": "一",
"2": "二",
"3": "三",
"4": "四",
"5": "五",
"6": "六",
"7": "七",
"8": "八",
"9": "九",
"10": "十"
}
},
"niri/workspaces": {
"disable-scroll": true,
"all-outputs": true,
"format": "{icon}",
"format-icons": {
"1": "一",
"2": "二",
"3": "三",
"4": "四",
"5": "五",
"6": "六",
"7": "七",
"8": "八",
"9": "九",
"10": "十"
}
},
"custom/media": {
"rotate": 270,
"format": "󰎇 {}",
"max-length": 40,
"escape": true,
"exec": "playerctl metadata title -F"
},
"tray": {
"icon-size": 22,
"spacing": 5
},
"clock": {
"tooltip-format": "<tt><small>{calendar}</small></tt>",
"calendar": {
"mode": "month",
"mode-mon-col": 3,
"weeks-pos": "right",
"on-scroll": 1,
"on-click-right": "mode",
"format": {
"months": "<span color='#ffead3'><b>{}</b></span>",
"days": "<span color='#ecc6d9'><b>{}</b></span>",
"weeks": "<span color='#99ffdd'><b>W{}</b></span>",
"weekdays": "<span color='#ffcc66'><b>{}</b></span>",
"today": "<span color='#ff6699'><b><u>{}</u></b></span>"
}
},
"actions": {
"on-click-right": "mode",
"on-click-forward": "tz_up",
"on-click-backward": "tz_down",
"on-scroll-up": "shift_up",
"on-scroll-down": "shift_down"
},
"format": " \n{:%I\n%M}", //12 hour format
//"format": " {:%a %d %b  %I:%M %p}", //12 hour format
// "format": " {:%d %m %Y  %H:%M}", //24 hour format
"format-alt": "\n{:%d\n%m\n%y}",
//"format-alt": " {:%d/%m/%Y  %H:%M:%S}",
// //"timezones": [ "Kolkata" ],
// //"max-length": 200
"interval": 1
},
"battery": {
"states": {
// "good": 95,
"warning": 30,
"critical": 15
},
"format": "{icon}\n{capacity}",
// "format-good": "", // An empty format will hide the module
// "format-full": "",
"format-icons": ["󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"]
//"format-icons": ["", "", "", "", "", "", "", "", "", ""]
},
"backlight": {
// "device": "acpi_video1",
"format": "{icon}\n{percent}",
"format-icons": ["", "", "", "", "", "", "", "", ""]
},
"network": {
// "interface": "wlp2s0", // (Optional) To force the use of this interface
"format": "⚠",
//"format-wifi": " {essid}",
"format-wifi": " ",
// "format-ethernet": " {ifname}: {ipaddr}/{cidr}",
"format-ethernet": " ",
"format-disconnected": "⚠",
"on-click": "ghostty --fullscreen=true -e 'sleep 0.05; nmtui'"
},
"wireplumber": {
"format": "{icon}\n{volume}",
"format-muted": "",
"on-click": "helvum",
"format-icons": ["", "", ""]
},
"custom/swaync": {
"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": "sleep 0.1 && swaync-client -t -sw",
"on-click-right": "sleep 0.1 && swaync-client -d -sw",
"escape": true
},
"privacy": {
"icon-spacing": 4,
"icon-size": 18,
"transition-duration": 250,
"modules": [
{
"type": "screenshare",
"tooltip": true,
"tooltip-icon-size": 24
},
// {
// "type": "audio-out",
// "tooltip": true,
// "tooltip-icon-size": 24
// },
{
"type": "audio-in",
"tooltip": true,
"tooltip-icon-size": 24
}
]
}
}