* Move network module to Waybar center * Reorder modules-right: keyboard, idle inhibitor, cpu, memory, backlight, audio, battery, clock, tray, power.
181 lines
4.8 KiB
Plaintext
181 lines
4.8 KiB
Plaintext
// Global
|
|
{
|
|
"layer": "top",
|
|
"position": "top",
|
|
|
|
// If height property would be not present, it'd be calculated dynamically
|
|
"height": 30,
|
|
|
|
"modules-left": [
|
|
"custom/launcher",
|
|
"sway/workspaces",
|
|
"sway/mode",
|
|
"sway/window",
|
|
],
|
|
|
|
"modules-center": [
|
|
"network",
|
|
],
|
|
|
|
"modules-right": [
|
|
"custom/keyboard-layout",
|
|
"idle_inhibitor",
|
|
"cpu",
|
|
"memory",
|
|
"backlight",
|
|
"pulseaudio",
|
|
"battery",
|
|
"clock",
|
|
"tray",
|
|
"custom/power",
|
|
],
|
|
|
|
// Modules
|
|
|
|
"custom/launcher": {
|
|
"format":"<span size='x-large'></span>",
|
|
"on-click": "exec fuzzel",
|
|
"tooltip": false,
|
|
},
|
|
|
|
"sway/workspaces": {
|
|
"disable-scroll": true,
|
|
"disable-markup" : false,
|
|
"all-outputs": true,
|
|
"format": " {icon} ",
|
|
//"format":"{icon}",
|
|
"format-icons": {
|
|
"1": "",
|
|
"2": "",
|
|
"3": "",
|
|
"4": "",
|
|
}
|
|
},
|
|
|
|
"sway/mode": {
|
|
"format": "{}",
|
|
"tooltip": false
|
|
},
|
|
|
|
"sway/window": {
|
|
"format": "{}",
|
|
"max-length": 120
|
|
},
|
|
|
|
"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,
|
|
},
|
|
|
|
"idle_inhibitor": {
|
|
"format": "{icon} ",
|
|
"format-icons": {
|
|
"activated": "",
|
|
"deactivated": ""
|
|
},
|
|
"tooltip-format-activated": "Idle Inhibitor Activated",
|
|
"tooltip-format-deactivated": "Idle Inhibitor Deactivated"
|
|
},
|
|
|
|
"memory": {
|
|
"interval": 5,
|
|
"format": "{:>3}% ",
|
|
"on-click": "footclient -T waybar_htop -e htop",
|
|
"states": {
|
|
"warning": 70,
|
|
"critical": 90
|
|
}
|
|
},
|
|
|
|
"cpu": {
|
|
"interval": 5,
|
|
"format": "{usage:>3}% ",
|
|
"states": {
|
|
"warning": 70,
|
|
"critical": 90,
|
|
},
|
|
"on-click": "footclient -T waybar_htop -e htop",
|
|
},
|
|
|
|
"pulseaudio": {
|
|
"scroll-step": 2,
|
|
"format": "{icon} {volume}% ",
|
|
"format-muted":" muted ",
|
|
"format-icons": {
|
|
"headphones": "",
|
|
"handsfree": "",
|
|
"headset": "",
|
|
"phone": "",
|
|
"portable": "",
|
|
"car": "",
|
|
"default": ["", "", ""]
|
|
},
|
|
"on-click": "pavucontrol"
|
|
},
|
|
|
|
"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",
|
|
},
|
|
|
|
"battery": {
|
|
"states": {
|
|
"warning": 30,
|
|
"critical": 15
|
|
},
|
|
"format": "{icon} {capacity}% ",
|
|
"format-icons": ["", "", "", "", ""]
|
|
},
|
|
|
|
"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%"
|
|
},
|
|
|
|
"clock": {
|
|
"interval": 10,
|
|
"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"
|
|
},
|
|
},
|
|
|
|
"tray": {
|
|
"icon-size": 16,
|
|
"spacing":10,
|
|
},
|
|
|
|
"custom/power": {
|
|
"format":"⏻",
|
|
"on-click": "exec ~/.config/sway/scripts/power_menu.sh",
|
|
"tooltip": false,
|
|
},
|
|
}
|