Files
Waybar/resources/config.jsonc
T

220 lines
6.6 KiB
JSON
Raw Normal View History

// -*- mode: jsonc -*-
2018-08-09 12:05:48 +02:00
{
// "layer": "top", // Waybar at top layer
// "position": "bottom", // Waybar position (top|bottom|left|right)
2019-04-24 12:37:24 +02:00
"height": 30, // Waybar height (to be removed for auto height)
2018-08-11 09:59:35 +02:00
// "width": 1280, // Waybar width
2021-10-20 11:23:57 +02:00
"spacing": 4, // Gaps between modules (4px)
2018-08-10 18:57:46 +02:00
// Choose the order of the modules
2024-02-24 18:24:39 -08:00
"modules-left": [
"sway/workspaces",
"sway/mode",
"sway/scratchpad",
"custom/media"
],
"modules-center": [
"sway/window"
],
"modules-right": [
"mpd",
"idle_inhibitor",
"pulseaudio",
"network",
"power-profiles-daemon",
2024-02-24 18:24:39 -08:00
"cpu",
"memory",
"temperature",
"backlight",
"keyboard-state",
"sway/language",
"battery",
"battery#bat2",
"clock",
2024-05-28 18:08:31 +02:00
"tray",
"custom/power"
2024-02-24 18:24:39 -08:00
],
2018-08-10 18:57:46 +02:00
// Modules configuration
// "sway/workspaces": {
// "disable-scroll": true,
// "all-outputs": true,
2023-06-07 15:25:59 +02:00
// "warp-on-scroll": false,
2018-09-18 20:58:11 +02:00
// "format": "{name}: {icon}",
// "format-icons": {
// "1": "",
// "2": "",
// "3": "",
// "4": "",
// "5": "",
// "urgent": "",
// "focused": "",
// "default": ""
// }
// },
2021-07-23 09:45:07 -04:00
"keyboard-state": {
2021-02-07 18:46:39 -05:00
"numlock": true,
"capslock": true,
2021-02-07 18:46:39 -05:00
"format": "{name} {icon}",
"format-icons": {
"locked": "",
"unlocked": ""
}
2021-02-07 18:46:39 -05:00
},
2018-10-30 13:44:44 +01:00
"sway/mode": {
2018-11-21 20:49:09 +01:00
"format": "<span style=\"italic\">{}</span>"
2018-10-30 13:44:44 +01:00
},
2022-08-31 01:54:19 +08:00
"sway/scratchpad": {
"format": "{icon} {count}",
"show-empty": false,
"format-icons": ["", ""],
"tooltip": true,
"tooltip-format": "{app}: {title}"
},
2019-04-18 14:19:46 +02:00
"mpd": {
2021-04-20 08:25:48 +02:00
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ",
2019-04-18 14:19:46 +02:00
"format-disconnected": "Disconnected ",
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
2019-04-20 09:12:30 -07:00
"unknown-tag": "N/A",
"interval": 5,
2019-04-18 14:19:46 +02:00
"consume-icons": {
"on": " "
},
"random-icons": {
"off": "<span color=\"#f53c3c\"></span> ",
"on": " "
},
"repeat-icons": {
"on": " "
},
"single-icons": {
"on": "1 "
},
"state-icons": {
"paused": "",
"playing": ""
},
"tooltip-format": "MPD (connected)",
"tooltip-format-disconnected": "MPD (disconnected)"
2019-04-18 17:55:02 +02:00
},
2019-02-17 15:27:54 +01:00
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
2018-10-26 12:08:50 +02:00
"tray": {
2018-10-26 14:53:39 +02:00
// "icon-size": 21,
2025-02-16 14:30:08 +01:00
"spacing": 10,
// "icons": {
// "blueman": "bluetooth",
// "TelegramDesktop": "$HOME/.local/share/icons/hicolor/16x16/apps/telegram.png"
// }
2018-10-26 12:08:50 +02:00
},
2018-08-27 01:36:25 +02:00
"clock": {
// "timezone": "America/New_York",
2020-01-31 08:54:41 -08:00
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
2018-08-27 01:36:25 +02:00
"format-alt": "{:%Y-%m-%d}"
},
2018-08-09 13:30:11 +02:00
"cpu": {
"format": "{usage}% ",
"tooltip": false
2018-08-09 13:30:11 +02:00
},
"memory": {
"format": "{}% "
},
2019-03-13 13:18:08 +01:00
"temperature": {
2019-03-14 14:01:10 +01:00
// "thermal-zone": 2,
2019-03-13 13:18:08 +01:00
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"critical-threshold": 80,
2019-05-13 11:31:05 +02:00
// "format-critical": "{temperatureC}°C {icon}",
"format": "{temperatureC}°C {icon}",
"format-icons": ["", "", ""]
2019-03-13 13:18:08 +01:00
},
2019-02-10 02:35:19 -07:00
"backlight": {
// "device": "acpi_video1",
"format": "{percent}% {icon}",
2022-03-12 16:05:06 +02:00
"format-icons": ["", "", "", "", "", "", "", "", ""]
2019-02-10 02:35:19 -07:00
},
2018-08-09 13:30:11 +02:00
"battery": {
"states": {
// "good": 95,
"warning": 30,
"critical": 15
},
2018-08-13 22:33:07 +02:00
"format": "{capacity}% {icon}",
"format-full": "{capacity}% {icon}",
2019-05-14 15:43:57 +02:00
"format-charging": "{capacity}% ",
"format-plugged": "{capacity}% ",
2019-05-22 10:06:54 +02:00
"format-alt": "{time} {icon}",
// "format-good": "", // An empty format will hide the module
2018-11-02 17:39:00 +01:00
// "format-full": "",
2018-08-11 13:15:31 +02:00
"format-icons": ["", "", "", "", ""]
2018-08-09 16:38:24 +02:00
},
2018-10-25 17:30:26 +02:00
"battery#bat2": {
"bat": "BAT2"
},
"power-profiles-daemon": {
"format": "{icon}",
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
"tooltip": true,
"format-icons": {
"default": "",
"performance": "",
"balanced": "",
"power-saver": ""
}
},
2018-08-09 16:38:24 +02:00
"network": {
2019-05-16 11:22:22 +02:00
// "interface": "wlp2*", // (Optional) To force the use of this interface
2019-05-16 11:26:48 +02:00
"format-wifi": "{essid} ({signalStrength}%) ",
2021-09-09 20:12:20 +02:00
"format-ethernet": "{ipaddr}/{cidr} ",
"tooltip-format": "{ifname} via {gwaddr} ",
2019-05-16 11:22:22 +02:00
"format-linked": "{ifname} (No IP) ",
2019-05-21 17:44:46 +02:00
"format-disconnected": "Disconnected ⚠",
"format-alt": "{ifname}: {ipaddr}/{cidr}"
2018-08-09 23:55:38 +02:00
},
"pulseaudio": {
2019-05-14 15:24:06 +08:00
// "scroll-step": 1, // %, can be a float
2019-05-21 14:53:31 +02:00
"format": "{volume}% {icon} {format_source}",
2019-05-21 14:58:03 +02:00
"format-bluetooth": "{volume}% {icon} {format_source}",
"format-bluetooth-muted": " {icon} {format_source}",
2019-05-21 14:58:03 +02:00
"format-muted": " {format_source}",
2019-05-21 14:53:31 +02:00
"format-source": "{volume}% ",
"format-source-muted": "",
2018-08-29 23:50:41 +02:00
"format-icons": {
2020-02-04 12:16:50 +01:00
"headphone": "",
"hands-free": "",
2018-08-29 23:54:23 +02:00
"headset": "",
"phone": "",
"portable": "",
"car": "",
2019-05-14 15:43:57 +02:00
"default": ["", "", ""]
2018-11-01 09:27:00 +01:00
},
"on-click": "pavucontrol"
},
2019-03-31 16:12:38 +02:00
"custom/media": {
2024-09-17 02:56:38 +02:00
"format": "{icon} {text}",
2019-03-31 16:12:38 +02:00
"return-type": "json",
2018-08-16 17:09:51 +02:00
"max-length": 40,
2019-03-31 16:12:38 +02:00
"format-icons": {
"spotify": "",
"default": "🎜"
},
"escape": true,
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
2019-07-31 11:50:56 +02:00
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
2024-05-28 18:08:31 +02:00
},
"custom/power": {
"format" : "⏻ ",
"tooltip": false,
"menu": "on-click",
"menu-file": "$HOME/.config/waybar/power_menu.xml", // Menu file in resources folder
"menu-actions": {
"shutdown": "shutdown",
"reboot": "reboot",
"suspend": "systemctl suspend",
"hibernate": "systemctl hibernate"
}
2018-08-09 13:30:11 +02:00
}
2019-02-17 15:27:54 +01:00
}