summaryrefslogtreecommitdiff
path: root/.config/waybar/config.jsonc
diff options
context:
space:
mode:
authorEwy~ <ewy0@protonmail.com>2024-12-28 01:08:10 +0100
committerEwy~ <ewy0@protonmail.com>2024-12-28 01:08:10 +0100
commit059df2c6755bce70dbe1e68bdf47ea7c6cc2cb4f (patch)
treec95fc3025a1c69ce5d1dbaf7e55121c2e70a152a /.config/waybar/config.jsonc
updated commit
Diffstat (limited to '.config/waybar/config.jsonc')
-rw-r--r--.config/waybar/config.jsonc115
1 files changed, 115 insertions, 0 deletions
diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc
new file mode 100644
index 0000000..b629fbe
--- /dev/null
+++ b/.config/waybar/config.jsonc
@@ -0,0 +1,115 @@
+// -*- mode: jsonc -*-
+{
+ // "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
+ "reload-on-style-change": true,
+ "modules-left": [
+ "sway/workspaces",
+ "sway/mode",
+ "sway/scratchpad",
+ "mpris"
+ ],
+ "modules-center": [
+ "sway/window"
+ ],
+ "modules-right": [
+ "custom/headset",
+ "pipewire",
+ "load",
+ "memory",
+ "temperature",
+ "tray",
+ "clock"
+ ],
+ "sway/window": {
+ "all-outputs": true
+ },
+ "sway/mode": {
+ "format": "<span style=\"italic\">{}</span>"
+ },
+ "sway/scratchpad": {
+ "format": "{icon} {count}",
+ "show-empty": false,
+ "format-icons": ["", ""],
+ "tooltip": true,
+ "tooltip-format": "{app}: {title}"
+ },
+ "tray": {
+ // "icon-size": 21,
+ "spacing": 10
+ },
+ "mpris": {
+ "format": "{player_icon} {dynamic}",
+ "format-paused": "{status_icon} {dynamic}",
+ "dynamic-len": 50,
+ "dynamic-order": ["title", "artist", "album"],
+ "player-icons": {
+ "default": "▶",
+ "mpd": " ",
+ "firefox_*": " "
+ },
+ "status-icons": {
+ "paused": ""
+ }
+ },
+ "clock": {
+ "format": "{:%b %d %H:%M}",
+ "tooltip-format": "<tt><small>{calendar}</small></tt>",
+ "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": "tz_up",
+ "on-scroll-down": "tz_down",
+ "on-scroll-up": "shift_up",
+ "on-scroll-down": "shift_down"
+ }
+ },
+ "cpu": {
+ "format": "{usage}% ",
+ "tooltip": false
+ },
+ "memory": {
+ "format": "{}% "
+ },
+ "temperature": {
+ // "thermal-zone": 2,
+ // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
+ "critical-threshold": 80,
+ // "format-critical": "{temperatureC}°C {icon}",
+ "format": "{temperatureC}°C {icon}",
+ "format-icons": ["", "", ""]
+ },
+ "network": {
+ // "interface": "wlp2*", // (Optional) To force the use of this interface
+ "format-wifi": "{essid} ({signalStrength}%) ",
+ "format-ethernet": "{ipaddr}/{cidr} ",
+ "tooltip-format": "{ifname} via {gwaddr} ",
+ "format-linked": "{ifname} (No IP) ",
+ "format-disconnected": "Disconnected ⚠",
+ "format-alt": "{ifname}: {ipaddr}/{cidr}"
+ },
+ "custom/headset": {
+ "exec": "headsetcontrol -b -o json | jq -r '.devices[0].battery.level'",
+ "exec-if": "headsetcontrol --connected",
+ "format": "󰋎 {} %",
+ "hide-empty-text": true,
+ "interval": 60,
+ "hide-empty-text": true
+ }
+}