Files
simple-hyprland/configs/waybar/config.jsonc

167 lines
4.4 KiB
JSON

{
"layer": "top",
"position": "top",
"mode": "dock",
"exclusive": true,
"passthrough": false,
"gtk-layer-shell": true,
"height": 0,
"output": ["HDMI-A-3"],
"modules-left": ["clock", "hyprland/language", "hyprland/workspaces"],
"modules-center": ["hyprland/window"],
"modules-right": [
"tray",
"memory",
"cpu",
"network",
"battery",
"backlight",
"pulseaudio",
"pulseaudio#microphone",
],
"hyprland/window": {
"format": "󰣇 {}",
},
// user created manually
// "custom/window": {
// "exec": "~/.config/waybar/scritps/test.sh",
// "format": "󰣇 {}"
// },
"hyprland/workspaces": {
"format": "{icon}",
"disable-scroll": true,
"all-outputs": true,
"on-click": "activate",
},
// user created manually
"hyprland/language": {
"format": "{}",
"min-length": 2,
"format-en": "English",
"format-ir": "ir",
"format-persian": "ir",
// "on-click":
// "keyboard-name": "evision-rgb-keyboard"
},
"tray": {
"icon-size": 13,
"spacing": 10,
},
"clock": {
"format": "{:%A  %B-%d-%Y  %I:%M:%S %p}",
"interval": 1,
"rotate": 0,
"tooltip-format": "<tt>{calendar}</tt>",
"calendar": {
"mode": "month",
"mode-mon-col": 3,
"on-scroll": 1,
"on-click-right": "mode",
"format": {
"months": "<span color='#a6adc8'><b>{}</b></span>",
"weekdays": "<span color='#a6adc8'><b>{}</b></span>",
"today": "<span color='#a6adc8'><b>{}</b></span>",
"days": "<span color='#555869'><b>{}</b></span>",
},
},
},
"backlight": {
"device": "intel_backlight",
"format": "{icon} {percent}%",
"format-icons": ["󰃞", "󰃟", "󰃠"],
"on-scroll-up": "brightnessctl set 1%+",
"on-scroll-down": "brightnessctl set 1%-",
"min-length": 6,
},
"battery": {
"states": {
"good": 95,
"warning": 30,
"critical": 20,
},
"format": "{icon} {capacity}%",
"format-charging": " {capacity}%",
"format-plugged": " {capacity}%",
"format-alt": "{time} {icon}",
"format-icons": ["󰂃", "󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"],
},
"pulseaudio": {
"format": "{icon} {volume}%",
"tooltip": false,
"format-muted": " Muted",
"on-click": "pamixer -t",
// user created manually
"on-click-right": "pavucontrol",
"on-scroll-up": "pamixer -i 1",
"on-scroll-down": "pamixer -d 1",
"scroll-step": 5,
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", "", ""],
},
},
"pulseaudio#microphone": {
"format": "{format_source}",
"format-source": " {volume}%",
"format-source-muted": " Muted",
"on-click": "pamixer --default-source -t",
"on-click-right": "pavucontrol",
"on-scroll-up": "pamixer --default-source -i 5",
"on-scroll-down": "pamixer --default-source -d 5",
"scroll-step": 5,
},
"memory": {
"states": {
"c": 90, // critical
"h": 60, // high
"m": 30, // medium
},
"interval": 10,
"format": "󰾆 {used}GB",
"format-m": "󰾅 {used}GB",
"format-h": "󰓅 {used}GB",
"format-c": " {used}GB",
"format-alt": "󰾆 {percentage}%",
"max-length": 10,
"tooltip": true,
"tooltip-format": "󰾆 {percentage}%\n {used:0.1f}GB/{total:0.1f}GB",
},
"cpu": {
"interval": 10,
"format": "󰍛 {usage}%",
"format-alt": "{icon0}{icon1}{icon2}{icon3}",
"format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"],
},
"network": {
"tooltip": true,
"format-wifi": " {essid}",
"format-ethernet": "󰈀 ",
"tooltip-format": "Network: <big><b>{essid}</b></big>\nSignal strength: <b>{signaldBm}dBm ({signalStrength}%)</b>\nFrequency: <b>{frequency}MHz</b>\nInterface: <b>{ifname}</b>\nIP: <b>{ipaddr}/{cidr}</b>\nGateway: <b>{gwaddr}</b>\nNetmask: <b>{netmask}</b>",
"format-linked": "󰈀 {ifname} (No IP)",
"format-disconnected": "󰖪 ",
"tooltip-format-disconnected": "Disconnected",
"format-alt": "<span foreground='#99ffdd'> {bandwidthDownBytes}</span> <span foreground='#ffcc66'> {bandwidthUpBytes}</span>",
// user created manually
"on-click-right": "nm-connection-editor",
"interval": 2,
},
}