From 8e148677ce0d926230a1fd4d5f82d1c6e2306e9a Mon Sep 17 00:00:00 2001 From: tea Date: Thu, 27 Jun 2024 12:20:30 +0200 Subject: [PATCH] add waybar config for garlic --- .config/waybar/config.garlic | 139 +++++++++++++++++++++++++++++++++++ 1 file changed, 139 insertions(+) create mode 100644 .config/waybar/config.garlic diff --git a/.config/waybar/config.garlic b/.config/waybar/config.garlic new file mode 100644 index 0000000..cbdfb7f --- /dev/null +++ b/.config/waybar/config.garlic @@ -0,0 +1,139 @@ +{ + // "layer": "top", // Waybar at top layer + "position": "bottom", // Waybar position (top|bottom|left|right) + // "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/workspaces", + "sway/mode", + "sway/scratchpad" + // "sway/window" + ], + "modules-center": [ + "mpris" + ], + "modules-right": [ + "idle_inhibitor", + "backlight", + // "network", + "wireplumber", + "temperature", + "battery", + "custom/load", + "clock", + "tray" + ], + + // Modules configuration + "sway/workspaces": { + "disable-scroll-wraparound": true, + "format": "{icon}", + "format-icons": { + "1": "󰈹", + "2": "", + "3": "", + "4": "\uf001", + "5": "5", + "6": "\uf1fc", + "7": "7", + "8": "\udb83\udeb5", + "9": "9", + "10": "10", + "11": "󰢹", + "default": "" + } + }, + "sway/mode": { // resize mode and whatnot + "format": "{}" + }, + "sway/scratchpad": { + "format": "{icon} {count}", + "show-empty": false, + "format-icons": ["", ""], + "tooltip": true, + "tooltip-format": "{app}: {title}" + }, + "sway/window": { + "max-length": 30, + "on-click": "rofi -show drun" + }, + "mpris": { + "format": "{status_icon} {title} – {artist}", + "artist-len": 30, + "title-len": 40, + "player-icons": { + "default": "󰝚", + "mpv": "", + "firefox": "󰈹", + }, + "status-icons": { + "default": "󰐊", + "paused": "󰏤", + } + }, + "idle_inhibitor": { + "format": "{icon}", + "format-icons": { + "activated": "", + "deactivated": "" + } + }, + "backlight": { + // "device": "acpi_video1", + "format": "{percent}% {icon}", + "format-icons": ["", "", "", "", "", "", "", "", ""], + "on-click": "light -I", + "on-scroll-down": "light -U 10", + "on-scroll-up": "light -A 10" + }, + "wireplumber": { + "scroll-step": 5, // %, can be a float + "format": "{volume}% {icon}", + "format-muted": "󰝟", + "format-icons": { + "default": ["", "", ""] + }, + "on-click": "pavucontrol" + }, + "temperature": { + // "thermal-zone": 2, + "hwmon-path": "/sys/devices/platform/thinkpad_hwmon/hwmon/hwmon3/temp1_input", + "critical-threshold": 80, + "format-critical": "{temperatureC}°C {icon}", + "format": "{temperatureC}°C {icon}", + "format-icons": ["\uf2ca", "\uf2c9", "\uf2c8"] + }, + "battery": { + "states": { + "good": 100, + "warning": 20, + "critical": 10 + }, + "format": "{capacity}% {icon}", + "format-charging": "{capacity}% {icon}\udb85\udc0b", + "format-plugged": "{capacity}% {icon}\udb85\udc25", + "format-alt": "{time} {icon}", + // "format-good": "", // An empty format will hide the module + // "format-full": "", + "format-icons": ["\udb84\udea1", "\udb84\udea2", "\udb84\udea3"] + }, + "custom/load": { + "format": "{} \udb80\ude38", + "exec": "waybarscript_loadavg", + "interval": 10 + }, + "clock": { + "tooltip-format": "{calendar}", + // "format-alt": "{:%Y-%m-%d}", + // + "format": "{:%Y-%m-%d, %A, %H:%M}", + }, + "tray": { + "icon-size": 18, + "spacing": 5 + }, +} + +// vim: set ts=4 sw=4 et tw=80 ft=jsonc nowrap: