diff options
| author | polwex <polwex@sortug.com> | 2025-10-22 14:40:39 +0700 |
|---|---|---|
| committer | polwex <polwex@sortug.com> | 2025-10-22 14:41:38 +0700 |
| commit | 021a797c8116032a114ba78476d1769c55479b48 (patch) | |
| tree | f1a5a17699408c1417205bdb44e139de12098329 /hosts/local/p16/waybarconfig | |
| parent | 21adca7e6d8f8233ac8d6c00c7be43dc026e8cc5 (diff) | |
p16
Diffstat (limited to 'hosts/local/p16/waybarconfig')
| -rw-r--r-- | hosts/local/p16/waybarconfig | 135 |
1 files changed, 135 insertions, 0 deletions
diff --git a/hosts/local/p16/waybarconfig b/hosts/local/p16/waybarconfig new file mode 100644 index 0000000..20cea00 --- /dev/null +++ b/hosts/local/p16/waybarconfig @@ -0,0 +1,135 @@ +{ + // "layer": "top", // Waybar at top layer + "position": "bottom", // Waybar position (top|bottom|left|right) + // "output": "DP-1", + "height": 30, // Waybar height (to be removed for auto height) + // "width": 1280, // Waybar width + "spacing": 4, // Gaps between modules (4px) + // Choose the order of the modules + "modules-left": ["sway/mode", "sway/window"], + "modules-center": ["sway/workspaces"], + "modules-right": ["pulseaudio", "network", "bluetooth", "idle_inhibitor", "cpu", "backlight", "battery", "clock", "tray"], + // Modules configuration + "sway/workspaces": { + "disable-scroll": true, + "all-outputs": true, + "format": "{name}: {icon}", + "format-icons": { + "1": "", + "2": "", + "3": "", + "4": "", + "5": "", + "urgent": "", + "focused": "", + "default": "" + } + }, + // "keyboard-state": { + // "numlock": true, + // "capslock": true, + // "format": " {icon} {name}", + // "format-icons": { + // "locked": "", + // "unlocked": "" + // } + // }, + "sway/mode": { + "format": "<span style=\"italic\">{}</span>" + }, + "tray": { + // "icon-size": 21, + "spacing": 10 + }, + "idle_inhibitor": { + "format": "{icon}", + "format-icons": { + "activated": "", + "deactivated": "" + } + }, + "clock": { + "timezone": "Asia/Bangkok", + "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>", + "format-alt": "{:%Y-%m-%d}" + }, + "cpu": { + "format": "", + }, + "memory": { + "format": "" + }, + "temperature": { + // "thermal-zone": 2, + // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input", + "critical-threshold": 80, + // "format-critical": "{temperatureC}°C {icon}", + "format": "{icon}", + "format-icons": ["", "", ""] + }, + "backlight": { + "format": "{icon}", + "format-icons": ["", "", "", "", "", "", "", "", ""], + "on-scroll-up": "brightnessctl -c backlight set +1%", + "on-scroll-down": "brightnessctl -c backlight set 1%-" + }, + "battery": { + "states": { + "good": 95, + "warning": 15, + "critical": 7 + }, + "format": "{icon} {capacity}%", + // "format-charging": " {capacity}%", + "format-charging": " {capacity}%", + "format-plugged": "", + "format-alt": "{icon} {time}", + // "format-good": "", // An empty format will hide the module + // "format-full": "", + "format-icons": ["", "", "", "", ""] + }, + "network": { + // "interface": "wlp2*", // (Optional) To force the use of this interface + "format-wifi": "", + "format-ethernet": "", + "tooltip-format": "{ifname} via {gwaddr} ", + "format-linked": "{ifname} (No IP) ", + "format-disconnected": "⚠", + "format-alt": "{ifname}: {ipaddr}/{cidr}" + }, + "pulseaudio": { + // "scroll-step": 1, // %, can be a float + "format": "{icon}", + "format-bluetooth": "{icon} {volume}% {format_source}", + "format-bluetooth-muted": " {icon} {format_source}", + "format-muted": " {format_source}", + "format-source": "", + "format-source-muted": "", + // "format-source-muted": "", + "format-icons": { + "headphone": "", + "hands-free": "", + "headset": "", + "phone": "", + "portable": "", + "car": "", + "default": ["", "", ""] + }, + "on-click": "pavucontrol" + }, + "custom/fcitx5": { + "format": "{}", + "return-type": "json", + "exec": "~/dotfiles/waybar/fcitx5-status.sh", + "interval": 1 + }, + "bluetooth": { + "format": "{icon}", + "format-icons": { + "enabled": "", + "disabled": "" + }, + "tooltip-format": "{}", + "on-click": "blueman-manager" + } +} |
