Waybar/resources/config.jsonc

203 lines
6.1 KiB
Plaintext
Raw Normal View History

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