master
Raw Download raw file
  1// -*- mode: jsonc -*-
  2{
  3    "layer": "top", // Waybar at top layer
  4    //"position": "left", // Waybar position (top|bottom|left|right)
  5    "height": 13, // Waybar height (to be removed for auto height)
  6    // "width": 13, // Waybar width
  7    "spacing": 0, // Gaps between modules (4px)
  8    // Choose the order of the modules
  9    "modules-left": [
 10    ],
 11    "modules-center": [
 12    ],
 13    "modules-right": [
 14        "idle_inhibitor",
 15        "pulseaudio",
 16        "network",
 17        "backlight",
 18        "battery",
 19        "clock",
 20    ],
 21    // Modules configuration
 22    // "sway/workspaces": {
 23    //     "disable-scroll": true,
 24    //     "all-outputs": true,
 25    //     "warp-on-scroll": false,
 26    //     "format": "{name}: {icon}",
 27    //     "format-icons": {
 28    //         "1": "",
 29    //         "2": "",
 30    //         "3": "",
 31    //         "4": "",
 32    //         "5": "",
 33    //         "urgent": "",
 34    //         "focused": "",
 35    //         "default": ""
 36    //     }
 37    // },
 38    "keyboard-state": {
 39        "numlock": true,
 40        "capslock": true,
 41        "format": "{name} {icon}",
 42        "format-icons": {
 43            "locked": "",
 44            "unlocked": ""
 45        }
 46    },
 47    "sway/mode": {
 48        "format": "<span style=\"italic\">{}</span>"
 49    },
 50    "sway/scratchpad": {
 51        "format": "{icon} {count}",
 52        "show-empty": false,
 53        "format-icons": ["", ""],
 54        "tooltip": true,
 55        "tooltip-format": "{app}: {title}"
 56    },
 57    "mpd": {
 58        "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ",
 59        "format-disconnected": "Disconnected ",
 60        "format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
 61        "unknown-tag": "N/A",
 62        "interval": 5,
 63        "consume-icons": {
 64            "on": " "
 65        },
 66        "random-icons": {
 67            "off": "<span color=\"#f53c3c\"></span> ",
 68            "on": " "
 69        },
 70        "repeat-icons": {
 71            "on": " "
 72        },
 73        "single-icons": {
 74            "on": "1 "
 75        },
 76        "state-icons": {
 77            "paused": "",
 78            "playing": ""
 79        },
 80        "tooltip-format": "MPD (connected)",
 81        "tooltip-format-disconnected": "MPD (disconnected)"
 82    },
 83    "idle_inhibitor": {
 84        "format": "{icon}",
 85        "format-icons": {
 86            "activated": "",
 87            "deactivated": ""
 88        }
 89    },
 90    "tray": {
 91        // "icon-size": 21,
 92        "spacing": 10,
 93        // "icons": {
 94        //   "blueman": "bluetooth",
 95        //   "TelegramDesktop": "$HOME/.local/share/icons/hicolor/16x16/apps/telegram.png"
 96        // }
 97    },
 98    "clock": {
 99        "timezone": "America/New_York",
100        "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
101        "format": "{:%Y-%m-%d %H:%M}",
102        "format-alt": "{:%Y-%m-%d}"
103    },
104    "cpu": {
105        "format": "{usage}% ",
106        "tooltip": false
107    },
108    "memory": {
109        "format": "{}% "
110    },
111    "temperature": {
112        // "thermal-zone": 2,
113        // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
114        "critical-threshold": 80,
115        // "format-critical": "{temperatureC}°C {icon}",
116        "format": "{temperatureC}°C {icon}",
117        "format-icons": ["", "", ""]
118    },
119    "backlight": {
120        // "device": "acpi_video1",
121        "format": "{percent}% {icon}",
122        "format-icons": ["", "", "", "", "", "", "", "", ""]
123    },
124    "battery": {
125        "states": {
126            // "good": 95,
127            "warning": 30,
128            "critical": 15
129        },
130        "format": "{capacity}% {icon}",
131        "format-full": "{capacity}% {icon}",
132        "format-charging": "{capacity}% 󱐋",
133        "format-plugged": "{capacity}% ",
134        "format-alt": "{time} {icon}",
135        // "format-good": "", // An empty format will hide the module
136        // "format-full": "",
137        "format-icons": ["", "", "", "", ""]
138    },
139    "network": {
140        // "interface": "wlp2*", // (Optional) To force the use of this interface
141        "format-wifi": "{essid} ({signalStrength}%) ",
142        "format-ethernet": "{ipaddr}/{cidr} ",
143        "tooltip-format": "{ifname} via {gwaddr} ",
144        "format-linked": "{ifname} (No IP) ",
145        "format-disconnected": "Disconnected ⚠",
146        "format-alt": "{ifname}: {ipaddr}/{cidr}"
147    },
148    "pulseaudio": {
149        // "scroll-step": 1, // %, can be a float
150        "format": "{volume}% {icon} {format_source}",
151        "format-bluetooth": "{volume}% {icon} {format_source}",
152        "format-bluetooth-muted": " {icon} {format_source}",
153        "format-muted": " {format_source}",
154        "format-source": "{volume}% ",
155        "format-source-muted": "",
156        "format-icons": {
157            "headphone": "",
158            "hands-free": "",
159            "headset": "",
160            "phone": "",
161            "portable": "",
162            "car": "",
163            "default": ["", "", ""]
164        },
165        "on-click": "pavucontrol"
166    },
167}