Files
nix/modules/home/hyprland/conf/waybar/config.jsonc

201 lines
4.7 KiB
JSON

{
"layer": "top",
"position": "top",
"mod": "dock",
"height": 30,
"exclusive": true,
"passthrough": false,
"gtk-layer-shell": true,
"modules-left": [
"custom/lr",
"hyprland/workspaces",
"custom/rr",
"custom/lr",
"hyprland/window",
"custom/rr"
],
"modules-center": ["custom/lr", "clock", "custom/rr"],
"modules-right": [
"custom/lr",
"wlr/taskbar",
"custom/rr",
"custom/lr",
"tray",
"custom/rr",
"custom/lr",
"cpu",
"temperature",
"memory",
"custom/rr",
"custom/lr",
"network",
"bluetooth",
"wireplumber",
"custom/power",
"custom/rr"
],
// sourced from modules based on config.ctl //
"custom/power": {
"format": "{}",
"exec": "echo ; echo  Power Manage",
"on-click": "wlogout",
"interval": 86400, // once every day
"tooltip": true
},
"hyprland/workspaces": {
"disable-scroll": true,
"on-click": "activate",
"persistent_workspaces": {
"1": ["HDMI-A-3"],
"2": ["HDMI-A-3"],
"3": ["HDMI-A-3"],
"4": ["HDMI-A-3"],
"5": ["HDMI-A-3"],
"6": ["HDMI-A-2"],
"7": ["HDMI-A-2"],
"8": ["HDMI-A-2"],
"9": ["HDMI-A-2"],
"10": ["HDMI-A-2"]
},
"format": "<sub>{icon}</sub> {windows}",
"format-window-separator": " ",
"window-rewrite-default": "",
"window-rewrite": {
"fcitx": "󰌌",
"code": "󰨞",
"Cursor": "󰅪",
"jetbrains-idea-ce": "",
"dbeaver": "",
"class<microsoft-edge>": "",
"class<chromium-browser>": "",
"title<.*youtube.*>": "",
"rofi": "󱓞",
"kitty": "",
"org.gnome.Nautilus": "󰪶",
"wechat": "",
"wps": "󰈬",
"class<et>": "󰈛",
"vlc": "󰕼"
}
},
"hyprland/window": {
"format": "{title}",
"tooltip-format": "[{class}]: {title}",
"max-length": 30,
"separate-outputs": true
},
"clock": {
"format": "{:%Y/%m/%d %H:%M}",
"format-alt": "{:L%A, %B %d %Y (%R)} ",
"timezones": ["Asia/Shanghai"],
"calendar": {
"mode": "year",
"mode-mon-col": 3,
"weeks-pos": "right",
"on-scroll": 1,
"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-scroll-up": "shift_up",
"on-scroll-down": "shift_down"
},
"tooltip-format": "<span size='9pt' font='WenQuanYi Zen Hei Mono'><tt>{calendar}</tt></span>",
"locale": "en_US.UTF-8"
},
"wlr/taskbar": {
"format": "{icon}",
"icon-size": 14,
"icon-theme": "Papirus-Dark",
"spacing": 0,
"tooltip-format": "{title}",
"on-click": "activate",
"on-click-middle": "close"
},
"tray": {
"icon-size": 14,
"spacing": 4
},
"cpu": {
"interval": 5,
"format": "󰍛 {usage}%",
"format-alt": "{icon0}{icon1}{icon2}{icon3}",
"format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"]
},
"temperature": {
"interval": 5,
"hwmon-path": "/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input",
"format": " {temperatureC}°C"
},
"memory": {
"interval": 30,
"format": " {percentage}%",
"format-alt": " {used}GB",
"max-length": 10,
"tooltip": true,
"tooltip-format": " {used:0.1f}GB/{total:0.1f}GB"
},
"network": {
"interval": 5,
// "interface": "wlp2*", // (Optional) To force the use of this interface
"format-wifi": "󰤨 {essid}",
"format-ethernet": "󱘖 Wired",
"tooltip-format": "󱘖 {ipaddr}  {bandwidthUpBytes}  {bandwidthDownBytes}",
"format-linked": "󱘖 {ifname} (No IP)",
"format-disconnected": " Disconnected",
"format-alt": "󰤨 {signalStrength}%"
},
"bluetooth": {
"format": "",
"format-disabled": "", // an empty format will hide the module
"format-connected": " {num_connections}",
"tooltip-format": " {device_alias}",
"tooltip-format-connected": "{device_enumerate}",
"tooltip-format-enumerate-connected": " {device_alias}"
},
"wireplumber": {
"format": "{icon} {volume}",
"format-muted": "󰝟",
"on-click": "pavucontrol -t 3",
"on-click-middle": "pamixer -t",
"tooltip-format": "{icon} {desc} // {volume}%",
"scroll-step": 2,
"format-icons": ["", "", ""]
},
// modules for padding //
"custom/lr": {
"format": " ",
"interval": "once",
"tooltip": false
},
"custom/rr": {
"format": " ",
"interval": "once",
"tooltip": false
}
}