chore(waybar): update waybar config
This commit is contained in:
@@ -1,20 +1,17 @@
|
|||||||
{
|
{
|
||||||
"name": "main",
|
"name": "main",
|
||||||
|
|
||||||
"mode": "dock",
|
"mode": "dock",
|
||||||
|
|
||||||
"reload_style_on_change": true,
|
"reload_style_on_change": true,
|
||||||
|
|
||||||
"layer": "top",
|
"layer": "top",
|
||||||
|
|
||||||
"position": "bottom",
|
"position": "bottom",
|
||||||
|
|
||||||
"margin": "5 5 5 5",
|
"margin": "5 5 5 5",
|
||||||
|
"modules-left": [
|
||||||
"modules-left": ["sway/workspaces", "sway/mode"],
|
"sway/workspaces",
|
||||||
|
"sway/mode"
|
||||||
"modules-center": ["clock"],
|
],
|
||||||
|
"modules-center": [
|
||||||
|
"clock"
|
||||||
|
],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
"custom/pacman",
|
"custom/pacman",
|
||||||
"custom/recorder",
|
"custom/recorder",
|
||||||
@@ -24,22 +21,29 @@
|
|||||||
"group/connections",
|
"group/connections",
|
||||||
"custom/power"
|
"custom/power"
|
||||||
],
|
],
|
||||||
|
|
||||||
"group/system": {
|
"group/system": {
|
||||||
"orientation": "inherit",
|
"orientation": "inherit",
|
||||||
"modules": ["memory", "disk"]
|
"modules": [
|
||||||
|
"memory",
|
||||||
|
"disk"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
"group/misc": {
|
"group/misc": {
|
||||||
"orientation": "inherit",
|
"orientation": "inherit",
|
||||||
"modules": ["pulseaudio", "pulseaudio#microphone", "backlight", "battery"]
|
"modules": [
|
||||||
|
"pulseaudio",
|
||||||
|
"pulseaudio#microphone",
|
||||||
|
"backlight",
|
||||||
|
"battery"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
"group/connections": {
|
"group/connections": {
|
||||||
"orientation": "inherit",
|
"orientation": "inherit",
|
||||||
"modules": ["bluetooth", "network"]
|
"modules": [
|
||||||
|
"bluetooth",
|
||||||
|
"network"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
"sway/workspaces": {
|
"sway/workspaces": {
|
||||||
"format": "{name} {icon}",
|
"format": "{name} {icon}",
|
||||||
"disable-scroll": true,
|
"disable-scroll": true,
|
||||||
@@ -49,11 +53,9 @@
|
|||||||
"default": ""
|
"default": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"sway/mode": {
|
"sway/mode": {
|
||||||
"format": "{}"
|
"format": "{}"
|
||||||
},
|
},
|
||||||
|
|
||||||
"hyprland/workspaces": {
|
"hyprland/workspaces": {
|
||||||
"format": "{name} {icon}",
|
"format": "{name} {icon}",
|
||||||
"disable-scroll": true,
|
"disable-scroll": true,
|
||||||
@@ -63,13 +65,14 @@
|
|||||||
"default": ""
|
"default": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"clock": {
|
"clock": {
|
||||||
"tooltip": true,
|
"tooltip": true,
|
||||||
"timezones": ["Europe/Rome"],
|
"tooltip-format": "{calendar}",
|
||||||
|
"timezones": [
|
||||||
|
"Europe/Rome"
|
||||||
|
],
|
||||||
"format": "{:%a %d %H:%M}",
|
"format": "{:%a %d %H:%M}",
|
||||||
"format-alt": "{%H:%M}",
|
"format-alt": "{%H:%M}",
|
||||||
"tooltip-format": "{calendar}",
|
|
||||||
"calendar": {
|
"calendar": {
|
||||||
"mode": "year",
|
"mode": "year",
|
||||||
"mode-mon-col": 3,
|
"mode-mon-col": 3,
|
||||||
@@ -88,7 +91,6 @@
|
|||||||
"on-click-right": "mode"
|
"on-click-right": "mode"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"idle_inhibitor": {
|
"idle_inhibitor": {
|
||||||
"tooltip": true,
|
"tooltip": true,
|
||||||
"format": "{icon}",
|
"format": "{icon}",
|
||||||
@@ -97,32 +99,28 @@
|
|||||||
"deactivated": ""
|
"deactivated": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"custom/pacman": {
|
"custom/pacman": {
|
||||||
|
"interval": 60,
|
||||||
"tooltip": true,
|
"tooltip": true,
|
||||||
"format": "{} ",
|
"format": "{} ",
|
||||||
"interval": 60,
|
|
||||||
"exec": "$HOME/.config/waybar/scripts/check-updates.sh",
|
"exec": "$HOME/.config/waybar/scripts/check-updates.sh",
|
||||||
"exec-if": "[[ `$HOME/.config/waybar/scripts/check-updates.sh` != 0 ]]",
|
"exec-if": "[[ `$HOME/.config/waybar/scripts/check-updates.sh` != 0 ]]",
|
||||||
"signal": 1
|
"signal": 1
|
||||||
},
|
},
|
||||||
|
|
||||||
"custom/recorder": {
|
"custom/recorder": {
|
||||||
|
"interval": 1,
|
||||||
"tooltip": true,
|
"tooltip": true,
|
||||||
"format": "Rec ",
|
"format": "Rec ",
|
||||||
"return-type": "json",
|
"return-type": "json",
|
||||||
"interval": 1,
|
|
||||||
"exec": "echo '{\"class\": \"recording\"}'",
|
"exec": "echo '{\"class\": \"recording\"}'",
|
||||||
"exec-if": "pgrep wf-recorder",
|
"exec-if": "pgrep wf-recorder",
|
||||||
"on-click": "$HOME/.config/waybar/scripts/close-screen-recorder.sh"
|
"on-click": "$HOME/.config/waybar/scripts/close-screen-recorder.sh"
|
||||||
},
|
},
|
||||||
|
|
||||||
"custom/power": {
|
"custom/power": {
|
||||||
"tooltip": false,
|
"tooltip": false,
|
||||||
"format": "⏻",
|
"format": "⏻",
|
||||||
"on-click": "wlogout -b 5 -s -T 400 -B 400 -L 400 -R 400 -c 20"
|
"on-click": "wlogout -b 5 -s -T 400 -B 400 -L 400 -R 400 -c 20"
|
||||||
},
|
},
|
||||||
|
|
||||||
"privacy": {
|
"privacy": {
|
||||||
"icon-spacing": 4,
|
"icon-spacing": 4,
|
||||||
"icon-size": 18,
|
"icon-size": 18,
|
||||||
@@ -145,9 +143,9 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
"pulseaudio": {
|
"pulseaudio": {
|
||||||
"tooltip": true,
|
"tooltip": true,
|
||||||
|
"tooltip-format": "Playing at {volume}%",
|
||||||
"format": "{volume}% {icon}",
|
"format": "{volume}% {icon}",
|
||||||
"format-bluetooth": "{volume}% {icon}",
|
"format-bluetooth": "{volume}% {icon}",
|
||||||
"format-bluetooth-muted": "{volume}% ",
|
"format-bluetooth-muted": "{volume}% ",
|
||||||
@@ -158,78 +156,116 @@
|
|||||||
"headphone": "",
|
"headphone": "",
|
||||||
"hands-free": "",
|
"hands-free": "",
|
||||||
"headset": "",
|
"headset": "",
|
||||||
"default": ["", "", ""]
|
"default": [
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
""
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"on-click": "pavucontrol"
|
"on-click": "pavucontrol",
|
||||||
|
"on-click-right": "pamixer -t"
|
||||||
},
|
},
|
||||||
|
|
||||||
"pulseaudio#microphone": {
|
"pulseaudio#microphone": {
|
||||||
"tooltip": true,
|
"tooltip": true,
|
||||||
"format": "{format_source}",
|
"format": "{format_source}",
|
||||||
"format-source": "{volume}% ",
|
"format-source": "{volume}% ",
|
||||||
"format-source-muted": "{volume}% "
|
"format-source-muted": "{volume}% "
|
||||||
},
|
},
|
||||||
|
|
||||||
"backlight": {
|
"backlight": {
|
||||||
"tooltip": true,
|
"tooltip": true,
|
||||||
"device": "intel_backlight",
|
"device": "intel_backlight",
|
||||||
"format": "{percent}% {icon}",
|
"format": "{percent}% {icon}",
|
||||||
"format-icons": ["", "", "", "", "", "", ""]
|
"format-icons": [
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
""
|
||||||
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
"battery": {
|
"battery": {
|
||||||
"interval": 1,
|
"interval": 1,
|
||||||
"tooltip": true,
|
"tooltip": true,
|
||||||
|
"tooltip-format": "{timeTo}\nCapacity: {capacity}%\nPower: {power:0.2f}w\nCycles: {cycles}\nHealth: {health}%",
|
||||||
"states": {
|
"states": {
|
||||||
"warning": 30,
|
"warning": 30,
|
||||||
"critical": 15
|
"critical": 15
|
||||||
},
|
},
|
||||||
"format": "{capacity}% {icon}",
|
"format": "{capacity}% {icon}",
|
||||||
"format-charging": "{capacity}% ",
|
"format-charging": "{capacity}% {icon}",
|
||||||
"format-plugged": "{capacity}% ",
|
"format-plugged": "{capacity}% ",
|
||||||
"format-icons": ["", "", "", "", "", ""],
|
"format-icons": {
|
||||||
"tooltip-format": "{timeTo}\nCapacity: {capacity}%\nPower: {power:0.2f}w\nCycles: {cycles}\nHealth: {health}%",
|
"charging": [
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
""
|
||||||
|
],
|
||||||
|
"default": [
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
""
|
||||||
|
]
|
||||||
|
},
|
||||||
"on-update": "$HOME/.config/waybar/scripts/check-battery.sh"
|
"on-update": "$HOME/.config/waybar/scripts/check-battery.sh"
|
||||||
},
|
},
|
||||||
|
|
||||||
"disk": {
|
"disk": {
|
||||||
"interval": 3,
|
"interval": 3,
|
||||||
"tooltip": true,
|
"tooltip": true,
|
||||||
"format": "{used} ",
|
|
||||||
"tooltip-format": "{used} used out of {total} on {path} ({percentage_used}%)",
|
"tooltip-format": "{used} used out of {total} on {path} ({percentage_used}%)",
|
||||||
|
"format": "{used} ",
|
||||||
"unit": "GiB",
|
"unit": "GiB",
|
||||||
"path": "/"
|
"path": "/"
|
||||||
},
|
},
|
||||||
|
|
||||||
"memory": {
|
"memory": {
|
||||||
"interval": 3,
|
"interval": 3,
|
||||||
"tooltip": true,
|
"tooltip": true,
|
||||||
"format": "{used:0.2f}GiB ",
|
"tooltip-format": "{used:0.2f}GiB used out of {total}GiB ({percentage}%)",
|
||||||
"tooltip-format": "{used:0.2f}GiB used out of {total}GiB ({percentage}%)"
|
"format": "{used:0.2f}GiB "
|
||||||
},
|
},
|
||||||
|
|
||||||
"bluetooth": {
|
"bluetooth": {
|
||||||
"tooltip": true,
|
"tooltip": true,
|
||||||
|
"tooltip-format": "{controller_alias}\t{controller_address}\n\n{num_connections} connected",
|
||||||
|
"tooltip-format-disabled": "Disabled",
|
||||||
"format": "",
|
"format": "",
|
||||||
"format-disabled": "",
|
"format-disabled": "",
|
||||||
"format-connected": "{device_alias} ",
|
"format-connected": "{device_alias} ",
|
||||||
"format-connected-battery": "{device_alias} {device_battery_percentage}%",
|
"format-connected-battery": "{device_alias} {device_battery_percentage}%",
|
||||||
"tooltip-format": "{controller_alias}\t{controller_address}\n\n{num_connections} connected",
|
|
||||||
"tooltip-format-disabled": "Disabled",
|
|
||||||
"on-click": "blueman-manager"
|
"on-click": "blueman-manager"
|
||||||
},
|
},
|
||||||
|
|
||||||
"network": {
|
"network": {
|
||||||
"interval": 3,
|
"interval": 3,
|
||||||
"tooltip": true,
|
"tooltip": true,
|
||||||
"format": "{ifname}",
|
|
||||||
"format-disconnected": "",
|
|
||||||
"format-wifi": "",
|
|
||||||
"format-ethernet": "",
|
|
||||||
"tooltip-format": "{ifname} via {gwaddr} ",
|
"tooltip-format": "{ifname} via {gwaddr} ",
|
||||||
"tooltip-format-wifi": "{ipaddr} ({ifname}) via {essid} ",
|
"tooltip-format-wifi": "{ipaddr} ({ifname}) via {essid} ",
|
||||||
"tooltip-format-ethernet": "{ipaddr} ({ifname}) via {essid} ",
|
"tooltip-format-ethernet": "{ipaddr} ({ifname}) via {essid} ",
|
||||||
"tooltip-format-disconnected": "Disconnected",
|
"tooltip-format-disconnected": "Disconnected",
|
||||||
|
"format": "{ifname}",
|
||||||
|
"format-icons": [
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
""
|
||||||
|
],
|
||||||
|
"format-disconnected": "",
|
||||||
|
"format-wifi": "{icon}",
|
||||||
|
"format-ethernet": "",
|
||||||
"max-length": 50,
|
"max-length": 50,
|
||||||
"on-click": "nm-connection-editor"
|
"on-click": "nm-connection-editor"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user