2023-07-28 13:14:56 +02:00
|
|
|
{
|
2024-12-18 22:31:39 +01:00
|
|
|
"layer": "top", // Waybar at top layer
|
|
|
|
"position": "top", // Waybar position (top|bottom|left|right)
|
|
|
|
// "height": 30, // Auto-height is used when commented
|
|
|
|
// "width": 1280, // Full screen width when commented
|
|
|
|
"spacing": 16, // Gaps between modules (in px)
|
|
|
|
// See `man waybar` for more configuration options
|
2023-07-28 13:14:56 +02:00
|
|
|
|
2024-12-18 22:31:39 +01:00
|
|
|
// Configuration - modules-left
|
2023-07-28 13:14:56 +02:00
|
|
|
|
|
|
|
"modules-left": [
|
|
|
|
"custom/launcher",
|
|
|
|
"sway/workspaces",
|
|
|
|
"sway/mode",
|
2024-12-18 22:31:39 +01:00
|
|
|
"sway/window"
|
2023-07-28 13:14:56 +02:00
|
|
|
],
|
2024-12-18 22:31:39 +01:00
|
|
|
|
|
|
|
"custom/launcher": {
|
|
|
|
"format":"<span size='x-large'></span>",
|
|
|
|
"on-click": "exec nwg-drawer",
|
|
|
|
"tooltip": false
|
|
|
|
},
|
|
|
|
|
|
|
|
"sway/workspaces": {
|
|
|
|
"disable-scroll": true,
|
|
|
|
"all-outputs": true,
|
|
|
|
"format": "{icon}",
|
|
|
|
"format-icons": {
|
|
|
|
"3": "3",
|
|
|
|
"4": "4",
|
|
|
|
"5": "5",
|
|
|
|
"6": "6",
|
|
|
|
"7": "7",
|
|
|
|
"8": "8",
|
|
|
|
"9": "9",
|
|
|
|
"10": "10"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"sway/mode": {
|
|
|
|
"format": "<span style=\"italic\">{}</span>",
|
|
|
|
"tooltip": false
|
|
|
|
},
|
|
|
|
|
|
|
|
"sway/window": {
|
|
|
|
"format": "{}",
|
|
|
|
//"all-outputs": true, // Active window shows only on active display when commented
|
|
|
|
"max-length": 120
|
|
|
|
},
|
|
|
|
|
|
|
|
// Configuration - modules-center
|
|
|
|
|
2023-07-28 13:14:56 +02:00
|
|
|
"modules-center": [
|
2024-12-18 22:31:39 +01:00
|
|
|
"network"
|
2023-07-28 13:14:56 +02:00
|
|
|
],
|
|
|
|
|
2024-12-18 22:31:39 +01:00
|
|
|
"network": {
|
|
|
|
"format-disabled": " Disabled",
|
|
|
|
"format-wifi": " {bandwidthDownBits:>} {bandwidthUpBits:>} ",
|
|
|
|
"tooltip-format-wifi": "{essid}",
|
|
|
|
"format-ethernet": " {bandwidthDownBits:>} {bandwidthUpBits:>} ",
|
|
|
|
"tooltip-format-ethernet": "{ifname}: {ipaddr}/{cidr}",
|
|
|
|
"format-disconnected": " Disconnected",
|
|
|
|
"on-click": "footclient -T waybar_nmtui -e nmtui",
|
|
|
|
"interval": 2
|
|
|
|
},
|
|
|
|
|
|
|
|
// Configuration - modules-right
|
|
|
|
|
2023-07-28 13:14:56 +02:00
|
|
|
"modules-right": [
|
2024-12-18 22:31:39 +01:00
|
|
|
"custom/keyboard-layout",
|
2023-07-28 13:14:56 +02:00
|
|
|
"idle_inhibitor",
|
|
|
|
"cpu",
|
2024-12-18 22:31:39 +01:00
|
|
|
"memory",
|
|
|
|
"backlight",
|
2023-07-28 13:14:56 +02:00
|
|
|
"pulseaudio",
|
|
|
|
"battery",
|
|
|
|
"clock",
|
|
|
|
"tray",
|
2024-12-18 22:31:39 +01:00
|
|
|
"custom/power"
|
2023-07-28 13:14:56 +02:00
|
|
|
],
|
|
|
|
|
2024-12-18 22:31:39 +01:00
|
|
|
"custom/keyboard-layout": {
|
|
|
|
"exec": "i=$(swaymsg -t get_inputs); echo \"\"; echo \"$i\" | grep -m1 'xkb_active_layout_name' | cut -d '\"' -f4",
|
|
|
|
"format": "",
|
|
|
|
// Interval set only as a fallback; use signal to update the module more immediately
|
|
|
|
"interval": 30,
|
|
|
|
// See example config for sending signal to Waybar in ~/.config/sway/config.d/input
|
|
|
|
"signal": 1,
|
|
|
|
"on-click": "~/.config/waybar/scripts/keyhint.sh"
|
|
|
|
},
|
2023-07-28 13:14:56 +02:00
|
|
|
|
|
|
|
"idle_inhibitor": {
|
2024-12-18 22:31:39 +01:00
|
|
|
"format": "{icon}",
|
|
|
|
"format-icons": {
|
2023-07-28 13:14:56 +02:00
|
|
|
"activated": "",
|
|
|
|
"deactivated": ""
|
|
|
|
},
|
2024-12-18 22:31:39 +01:00
|
|
|
"tooltip-format-activated": "Idle Inhibitor Activated",
|
|
|
|
"tooltip-format-deactivated": "Idle Inhibitor Deactivated"
|
2023-07-28 13:14:56 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
"cpu": {
|
|
|
|
"interval": 5,
|
2024-12-18 22:31:39 +01:00
|
|
|
"format": "{usage:>3}%",
|
2023-07-28 13:14:56 +02:00
|
|
|
"states": {
|
|
|
|
"warning": 70,
|
|
|
|
"critical": 90,
|
|
|
|
},
|
2024-12-18 22:31:39 +01:00
|
|
|
"on-click": "footclient -T waybar_htop -e htop"
|
2023-07-28 13:14:56 +02:00
|
|
|
},
|
2024-12-18 22:31:39 +01:00
|
|
|
|
2023-07-28 13:14:56 +02:00
|
|
|
"memory": {
|
|
|
|
"interval": 5,
|
2024-12-18 22:31:39 +01:00
|
|
|
"format": "{:>3}%",
|
|
|
|
"on-click": "footclient -T waybar_htop -e htop",
|
2023-07-28 13:14:56 +02:00
|
|
|
"states": {
|
|
|
|
"warning": 70,
|
|
|
|
"critical": 90
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2024-12-18 22:31:39 +01:00
|
|
|
"backlight": {
|
|
|
|
"format": "{icon} {percent}%",
|
|
|
|
"format-icons": ["", "", "", "", "", "", "", "", ""],
|
|
|
|
"tooltip-format": "Backlight (Scroll): {percent:}%",
|
|
|
|
"on-scroll-down": "brightnessctl -c backlight set 5%-",
|
|
|
|
"on-scroll-up": "brightnessctl -c backlight set +5%"
|
2023-07-28 13:14:56 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
"pulseaudio": {
|
2024-12-18 22:31:39 +01:00
|
|
|
"scroll-step": 2,
|
|
|
|
"format": "{icon} {volume}%",
|
|
|
|
"format-muted":" muted",
|
2023-07-28 13:14:56 +02:00
|
|
|
"format-icons": {
|
2024-12-18 22:31:39 +01:00
|
|
|
"headphones": "",
|
|
|
|
"handsfree": "",
|
|
|
|
"headset": "",
|
2023-07-28 13:14:56 +02:00
|
|
|
"phone": "",
|
|
|
|
"portable": "",
|
|
|
|
"car": "",
|
2024-12-18 22:31:39 +01:00
|
|
|
"default": ["", "", ""]
|
2023-07-28 13:14:56 +02:00
|
|
|
},
|
2024-12-18 22:31:39 +01:00
|
|
|
"on-click": "pavucontrol"
|
2023-07-28 13:14:56 +02:00
|
|
|
},
|
|
|
|
|
2024-12-18 22:31:39 +01:00
|
|
|
"battery": {
|
|
|
|
"states": {
|
|
|
|
"warning": 30,
|
|
|
|
"critical": 15
|
|
|
|
},
|
|
|
|
"format": "{icon} {capacity}%",
|
|
|
|
"format-icons": ["", "", "", "", ""]
|
2023-07-28 13:14:56 +02:00
|
|
|
},
|
|
|
|
|
2024-12-18 22:31:39 +01:00
|
|
|
"clock": {
|
|
|
|
"format": " {:%H:%M}",
|
|
|
|
"format-alt": " {:%OI:%M %p}",
|
|
|
|
"tooltip-format": " {:%A %m/%d}\n\n<tt><small>{calendar}</small></tt>",
|
|
|
|
"calendar": {
|
|
|
|
"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-scroll-up": "shift_up",
|
|
|
|
"on-scroll-down": "shift_down"
|
|
|
|
},
|
2023-07-28 13:14:56 +02:00
|
|
|
},
|
|
|
|
|
2024-12-18 22:31:39 +01:00
|
|
|
"tray": {
|
|
|
|
"icon-size": 16,
|
|
|
|
"spacing":10
|
|
|
|
},
|
2023-07-28 13:14:56 +02:00
|
|
|
|
|
|
|
"custom/power": {
|
|
|
|
"format":"⏻",
|
2024-12-18 22:31:39 +01:00
|
|
|
"on-click": "exec ~/.config/sway/scripts/power_menu.sh",
|
|
|
|
"tooltip": false
|
2023-07-28 13:14:56 +02:00
|
|
|
},
|
|
|
|
}
|