Update
This commit is contained in:
+87
-69
@@ -1,74 +1,92 @@
|
||||
{
|
||||
[{
|
||||
"output": "DP-1",
|
||||
"layer": "top", // Waybar at top layer
|
||||
"position": "top", // Waybar position (top|bottom|left|right)
|
||||
// "width": 1280, // Waybar width
|
||||
// Choose the order of the modules
|
||||
"modules-left": ["sway/workspaces", "pulseaudio", "clock"],
|
||||
"modules-right": ["tray", "memory", "battery", "custom/power"],
|
||||
"sway/workspaces": {
|
||||
"disable-scroll": true,
|
||||
"sort-by-name": true,
|
||||
"format": " {index} {icon} ",
|
||||
"position": "left", // Waybar position (top|bottom|left|right)
|
||||
"width": 44, // Waybar width
|
||||
// Choose the order of the modules
|
||||
"modules-left": ["pulseaudio", "clock"],
|
||||
"modules-center": ["sway/workspaces"],
|
||||
"modules-right": ["tray", "battery", "custom/power"],
|
||||
"sway/workspaces": {
|
||||
"persistent-workspaces": {
|
||||
"1": ["DP-1"],
|
||||
"2": ["DP-1"],
|
||||
"3": ["DP-1"],
|
||||
"4": ["DP-1"],
|
||||
},
|
||||
"disable-scroll": true,
|
||||
"sort-by-name": true,
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"default": "<span color=\"#cdd6f4\">●</span>",
|
||||
"focused": "<span color=\"#fab387\">●</span>",
|
||||
},
|
||||
},
|
||||
"tray": {
|
||||
"icon-size": 21,
|
||||
"spacing": 10
|
||||
},
|
||||
"clock": {
|
||||
"timezone": "America/Montreal",
|
||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||
"format": "🕐\n{:%H\n%M\n\n📅\n%d\n%m\n%y} "
|
||||
},
|
||||
"backlight": {
|
||||
"device": "intel_backlight",
|
||||
"format": "{icon}",
|
||||
"format-icons": ["", "", "", "", "", "", "", "", ""]
|
||||
},
|
||||
"battery": {
|
||||
"states": {
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"format": "🔋{capacity}%",
|
||||
"format-charging": "⚡{capacity}%",
|
||||
"format-plugged": "🔌{capacity}%",
|
||||
"format-alt": "{icon}",
|
||||
"format-icons": ["", "", "", "", "", "", "", "", "", "", "", ""]
|
||||
},
|
||||
"custom/power": {
|
||||
"format" : "⏻",
|
||||
"tooltip": false,
|
||||
"menu": "on-click",
|
||||
"menu-file": "~/.config/waybar/power_menu.xml",
|
||||
"menu-actions": {
|
||||
"logout": "loginctl terminate-user \"\"",
|
||||
"shutdown": "systemctl poweroff",
|
||||
"reboot": "systemctl reboot"
|
||||
}
|
||||
},
|
||||
"pulseaudio": {
|
||||
// "scroll-step": 1, // %, can be a float
|
||||
"format": "{icon}\n{volume}%",
|
||||
"format-muted": "",
|
||||
"format-icons": {
|
||||
"default": "◇",
|
||||
"focused": "◈",
|
||||
"default": ["", "", " "]
|
||||
},
|
||||
"on-click": "pwvucontrol"
|
||||
},
|
||||
},
|
||||
{
|
||||
"output": "DP-2",
|
||||
"layer": "top",
|
||||
"position": "top",
|
||||
"height": 44,
|
||||
"modules-center": ["sway/workspaces"],
|
||||
"sway/workspaces": {
|
||||
"persistent-workspaces": {
|
||||
"5": ["DP-2"],
|
||||
"6": ["DP-2"],
|
||||
"7": ["DP-2"],
|
||||
"8": ["DP-2"],
|
||||
},
|
||||
"tray": {
|
||||
"icon-size": 21,
|
||||
"spacing": 10
|
||||
"disable-scroll": true,
|
||||
"sort-by-name": true,
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"default": "<span color=\"#cdd6f4\">●</span>",
|
||||
"focused": "<span color=\"#fab387\">●</span>",
|
||||
},
|
||||
"custom/music": {
|
||||
"format": " {}",
|
||||
"escape": true,
|
||||
"interval": 5,
|
||||
"tooltip": false,
|
||||
"exec": "playerctl metadata --format='{{ title }}'",
|
||||
"on-click": "playerctl play-pause",
|
||||
"max-length": 50
|
||||
},
|
||||
"clock": {
|
||||
"timezone": "America/Montreal",
|
||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||
"format": "🕐 {:%H:%M 📅 %d/%m/%y} "
|
||||
},
|
||||
"backlight": {
|
||||
"device": "intel_backlight",
|
||||
"format": "{icon}",
|
||||
"format-icons": ["", "", "", "", "", "", "", "", ""]
|
||||
},
|
||||
"memory": {
|
||||
"format": "{used:0.1f}/{total:0.1f}G"
|
||||
},
|
||||
"battery": {
|
||||
"states": {
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"format": "🔋{capacity}%",
|
||||
"format-charging": "⚡{capacity}%",
|
||||
"format-plugged": "🔌{capacity}%",
|
||||
"format-alt": "{icon}",
|
||||
"format-icons": ["", "", "", "", "", "", "", "", "", "", "", ""]
|
||||
},
|
||||
"custom/power": {
|
||||
"format" : "⏻",
|
||||
"tooltip": false,
|
||||
"menu": "on-click",
|
||||
"menu-file": "~/.config/waybar/power_menu.xml",
|
||||
"menu-actions": {
|
||||
"logout": "loginctl terminate-user \"\"",
|
||||
"shutdown": "systemctl poweroff",
|
||||
"reboot": "systemctl reboot"
|
||||
}
|
||||
},
|
||||
"pulseaudio": {
|
||||
// "scroll-step": 1, // %, can be a float
|
||||
"format": "{icon} {volume}%",
|
||||
"format-muted": "",
|
||||
"format-icons": {
|
||||
"default": ["", "", " "]
|
||||
},
|
||||
"on-click": "pwvucontrol"
|
||||
},
|
||||
}
|
||||
}
|
||||
}]
|
||||
|
||||
Reference in New Issue
Block a user