dotfiles/waybar/config

113 lines
3.6 KiB
Plaintext
Raw Normal View History

2024-01-13 13:50:04 -06:00
{
"layer": "top",
"position": "top",
"height": 26,
// "width": 1366,
"modules-left": ["hyprland/workspaces"],
"modules-center": ["hyprland/window"],
"modules-right": ["tray","battery","pulseaudio","network","clock","custom/notification"],
"hyprland/workspaces": {
"disable-scroll": true,
"all-outputs": false,
"format": "{name}"
},
"tray": {
"icon-size": 18,
"spacing": 10
},
"clock": {
"format": "{:%I:%M}",
"format-alt": "{:%m.%d.%Y}",
"tooltip-format": "<tt><small>{calendar}</small></tt>",
"calendar": {
"mode" : "year",
"mode-mon-col" : 3,
"on-scroll" : 1,
"on-click-right": "mode",
"format": {
"months": "<span color='#ffead3'><b>{}</b></span>",
"days": "<span color='#ecc6d9'><b>{}</b></span>",
"weekdays": "<span color='#ffcc66'><b>{}</b></span>",
"today": "<span color='#80f59b'><b><u>{}</u></b></span>"
}
},
"actions": {
"on-click-right": "mode"
}
},
"cpu": {
"format": "{usage}% 󰘚"
},
"memory": {
"format": "{}% 󰍛",
"tooltip-format": "{used:0.1f}G/{total:0.1f}G"
},
"battery": {
"bat": "BAT1",
"states": {
"good": 85,
"warning": 25,
"critical": 15
},
"format": "{icon}",
"format-alt": "{capacity}%",
"format-charging": "",
"format-plugged": " ",
"format-icons": ["", "", "", "", ""]
},
"network": {
// "interface": "wlp2s0", // (Optional) To force the use of this interface
// "format-wifi": "{essid} ({signalStrength}%) ",
"format-wifi": "",
"tooltip-format": "{signalStrength}%: {ipaddr}/{cidr}",
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
"format-disconnected": "⚠",
"on-click": "wofi-wifi-menu"
},
"pulseaudio": {
//"scroll-step": 1,
"format": "{icon}",
// "format-alt": "{volume}%",
"format-bluetooth": "{icon}",
"format-muted": "",
"format-icons": {
"headphones": "",
"handsfree": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", ""]
},
"on-click": "pavucontrol"
},
"custom/spotify": {
"format": "{}",
"max-length": 40,
"interval": 10, // Remove this if your script is endless and write in loop
"exec": "$HOME/.config/waybar/mediaplayer.sh 2> /dev/null", // Script in resources folder
"exec-if": "pgrep spotify"
},
"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
}
}