waybar/config
2024-06-09 09:43:13 +02:00

169 lines
5 KiB
JSON

// -*- mode: json -*-
{
"layer": "top",
"position": "top",
"margin": 0,
"spacing": 4,
"modules-left": ["hyprland/workspaces","hyprland/window"],
"modules-center": ["clock","tray"],
"modules-right": ["pulseaudio","battery","network","group/info","group/power"],
"group/power": {
"orientation": "inherit",
"drawer": {
"transition-duration": 500,
"children-class": "not-power",
"transition-left-to-right": false,
},
"modules": [
"custom/power", // First element is the "group leader" and won't ever be hidden
"custom/powerm",
"custom/quit",
"custom/lock",
"custom/reboot",
]
},
"custom/quit": {
"format": "󰗼",
"tooltip": false,
"on-click": "hyprctl dispatch exit"
},
"custom/lock": {
"format": "󰍁",
"tooltip": false,
"on-click": "swaylock"
},
"custom/reboot": {
"format": "󰜉",
"tooltip": false,
"on-click": "reboot"
},
"custom/powerm": {
"format": "",
"tooltip": false,
"on-click": "shutdown now"
},
"group/info": {
"orientation": "inherit",
"drawer": {
"children-class": "info",
"parent-class": "p_info",
"transition-left-to-right": false,
},
"modules": [
"memory", "disk", "cpu"
]
},
"hyprland/workspaces": {
"disable-scroll": true,
"all-outputs": true,
"format": "{name}: {icon} [ {windows} ]",
"format-icons": {
"1": "󰁕",
"2": "󰁕",
"3": "󰁕",
"4": "󰁕",
"urgent": "󰊰",
"active": "󰢚",
"special": "󰮯",
"default": "󰁕"
},
"window-rewrite-default": "",
"window-rewrite": {
"nvim": " ",
"foot": " ",
"Thorium": "󰊯 ",
"mercury": " ",
"title<.*youtube.*>": " ",
"title<*netflix.*>": "󰝆",
"Invidious": " ",
"class<mercury*> title<.*github.*>": "", // Windows whose class is "firefox" and title contains "github". Note that "class" always comes first.
},
},
"hyprland/window": {
"format": " {}",
"rewrite": {
"(.*) — Mozilla Firefox": "🌎 $1",
},
"separate-outputs": false
},
"clock": {
"format": "{:%H:%M}",
"tooltip": false
},
"network": {
"interval": 30,
"on-click": "wl-copy $(ip address show up scope global | grep inet | head -n1 | cut -d/ -f 1 | tr -d [:space:] | cut -c5-)",
"on-click-right": "kitty --class floating $HOME/.config/hypr/scripts/wlan.sh",
"format-wifi": "󰤨 {essid}",
"format-ethernet": "󰈀 Wired",
"fomat-disconnected": "󰤯 Disconnected",
"tooltip-format-wifi": "{essid} ({signalStrength}%)",
"tooltip-format-ethernet": "{ifname} ",
"tooltip-format-disconnected": "Disconnected",
},
"pulseaudio": {
"format": "{icon} {volume}%",
"format-bluetooth": "{icon} {volume}%",
"format-muted": " ",
"format-icons": {
"headphones": " ",
"default": [
" ",
" "
]
},
"scroll-step": 5,
"on-click": "pamixer -t",
"on-click-right": "pavucontrol"
},
"memory": {
"interval": 8,
"format": "{icon} {avail}GiB",
"format-icons": "󰝪 ",
"on-click": {
"format": "{icon} {avail}GiB/{total}GiB"
},
},
"cpu": {
"interval": 2,
"format": "{icon} {load}%",
"format-icons": " "
},
"battery": {
"states": {
"good": 95,
"warning": 30,
"critical": 15
},
"format": "{icon} {capacity}%",
"format-icons": [
"",
"",
"",
"",
""
]
},
"disk": {
"interval": 32,
"format": "Disk {percentage_used:2}%",
"path": "/"
},
"tray": {
"icon-size": 20,
"spacing": 10
},
"custom/power": {
"format": "⏼",
"on-click": "wlogout"
},
"css-name": "style.css"
}