This is a collection of dotfiles and scripts for my bspwm setup
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

151 lines
4.7 KiB

// -*- mode: jsonc -*-
{
// "layer": "top", // Waybar at top layer
"position": "top",
"height": 22, // Waybar height (to be removed for auto height)
"spacing": 0, // Gaps between modules (4px)
// Choose the order of the modules
"modules-left": [
"hyprland/workspaces",
],
"modules-center": [
"hyprland/window"
],
"modules-right": [
"custom/btc",
"pulseaudio",
"backlight",
"network",
"battery",
"custom/battery-low",
"clock",
"tray",
"custom/power"
],
// Modules configuration
"hyprland/workspaces": {
"disable-scroll": false,
"on-scroll-up": "hyprctl dispatch workspace -1",
"on-scroll-down": "hyprctl dispatch workspace +1",
"all-outputs": true,
"warp-on-scroll": false,
"format": "{icon}",
"format-icons": {
"1": "一",
"2": "二",
"3": "三",
"4": "四",
"5": "五",
"6": "六",
"7": "七",
"8": "八",
"9": "九",
"0": "十",
"urgent": "",
"focused": "",
"default": ""
// "persistent-workspaces": {
// "*": 5, // 5 workspaces by default on every monitor
// "HDMI-A-1": 3 // but only three on HDMI-A-1
// }
}
},
"custom/btc": {
"escape": false,
"exec": "$HOME/.local/bin/panel/btc.sh",
"interval": 300,
"format": " {}",
"tooltip": false
},
"pulseaudio": {
"scroll-step": 2, // %, can be a float
"format": "{icon} {volume}%",
"format-bluetooth": "{icon} {volume}%",
"format-bluetooth-muted": " {icon}",
"format-muted": " {volume}%",
"format-source": "{volume}%",
"format-source-muted": "",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
},
"on-click": "pavucontrol"
},
"backlight": {
"device": "intel_backlight",
"format": "{percent}% {icon}",
"format-icons": ["", "", "", "", "", "", "", "", ""]
},
"network": {
"format-wifi": " {signalStrength}%",
"format-ethernet": "",
"tooltip-format": "{ifname}: {ipaddr}/{cidr}\n via {gwaddr}",
"tooltip-format-wifi": "{ifname}: {ipaddr}/{cidr}\n via {gwaddr}\n ssid {essid}",
"tooltip-format-disconnected": "Disconnected",
"format-linked": " (No IP)",
"format-disconnected": "<span color='#676e7d'></span>",
"on-click": "$HOME/.local/bin/panel/iface.sh"
},
"battery": {
"bat": "BAT0",
"interval": 30,
"full-at": 98,
"states": {
"good": 95,
"critical": 20
},
"format": "{icon} {capacity}% ({time})",
"format-time": "{H}:{m}",
"format-full": "{icon} {capacity}%",
"format-charging": " {capacity}%",
"format-plugged": " {capacity}%",
"format-icons": ["", "", "", "", ""]
},
"custom/battery-low": {
"exec": "$HOME/.local/bin/panel/battery.sh",
"interval": 30,
"format": "",
"tooltip": false
},
"clock": {
// "timezone": "America/New_York",
"tooltip-format": "<tt><small>{calendar}</small></tt>",
"calendar": {
"mode" : "month",
"mode-mon-col" : 3,
"weeks-pos" : "right",
"format": {
"months": "<span color='#b294bb'><b>{}</b></span>",
"days": "<span color='#fff'><b>{}</b></span>",
"weeks": "<span color='#81a2be'><b>W{}</b></span>",
"weekdays": "<span color='#8abeb7'><b>{}</b></span>",
"today": "<span color='#f0c674'><b><u>{}</u></b></span>"
}
},
"format": " {:%I:%M %p}",
"on-click": "$HOME/.local/bin/panel/date.sh"
},
"tray": {
// "icon-size": 21,
"spacing": 10
},
"custom/power": {
"format": "⏻",
"tooltip": false,
"menu": "on-click",
"menu-file": "$HOME/.config/waybar/power_menu.xml", // Menu file in resources folder
"menu-actions": {
"lock": "hyprlock",
"shutdown": "shutdown",
"reboot": "reboot",
"suspend": "systemctl suspend",
"hibernate": "systemctl hibernate"
}
}
}