0
0
Fork 0
mirror of https://github.com/stronk-dev/Tokyo-Night-Linux.git synced 2024-10-17 20:58:16 -04:00
tokyo-night-linux/.config/waybar/config
2021-07-14 16:57:27 +02:00

128 lines
4.7 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"layer": "top",
"position": "top",
"height": 40,
"modules-left": ["sway/workspaces", "sway/mode", "sway/window"],
"modules-center": ["clock"],
"modules-right": ["custom/recorder", "tray", "pulseaudio", "backlight", "temperature", "cpu", "memory", "battery", "network", "custom/powermenu"],
"sway/mode": {
"format": " {}"
},
"sway/workspaces": {
"disable-scroll": true,
"all-outputs": false,
"disable-markup": false,
"format": "{icon}",
"format-icons": {
"1": "1 <span font='Font Awesome 5 Free 14'></span>",
"2": "2 <span font='Font Awesome 5 Free 14'></span>",
"3": "3 <span font='Font Awesome 5 Free 14'></span>",
"4": "4 <span font='Font Awesome 5 Free 14'></span>",
"5": "5 <span font='Font Awesome 5 Free 14'></span>",
"6": "6 <span font='Font Awesome 5 Free 14'></span>",
"7": "7 <span font='Font Awesome 5 Free 14'></span>",
"8": "8 <span font='Font Awesome 5 Free 14'></span>",
"9": "9 <span font='Font Awesome 5 Free 14'></span>",
"10": "0 <span font='Font Awesome 5 Free 14'></span>"
}
},
"tray": {
"icon-size": 20,
"spacing": 8
},
"sway/window": {
"max-length": 60,
"tooltip": false
// "format": "( {} )"
},
"clock": {
"format": "{:%a %d %b - %H:%M}",
"tooltip": false
},
"cpu": {
"interval": 5,
"format": "︁ {}%",
"max-length": 10
},
"memory": {
"interval": 15,
"format": "<span font='Font Awesome 5 Free 9'>︁</span> {used:0.1f}G/{total:0.1f}G",
"tooltip": false
},
"custom/powermenu": {
"return-type": "json",
"exec": "/home/marco/.config/waybar/modules/powermenu.sh",
"format": "<span font='Font Awesome 5 Free 9'>{icon}</span> {}",
"format-icons": [""],
"interval": 3600,
"escape": true,
"on-click": "/home/marco/.config/wofi/wofi-power.sh"
},
"custom/recorder": {
"format": "!",
"return-type": "json",
"interval": 3,
"exec": "echo '{\"class\": \"recording\"}'",
"exec-if": "pgrep wf-recorder",
"tooltip": false,
"on-click": "killall -s SIGINT wf-recorder"
},
"battery": {
"format": "<span font='Font Awesome 5 Free 11'>{icon}</span> {capacity}%{time}",
"format-icons": ["", "", "", "", ""],
"format-time": " ({H}h{M}m)",
"format-charging": "<span font='Font Awesome 5 Free'></span> <span font='Font Awesome 5 Free 11'>{icon}</span> {capacity}% - {time}",
"format-full": "<span font='Font Awesome 5 Free'></span> <span font='Font Awesome 5 Free 11'>{icon}</span> Charged",
"interval": 15,
"states": {
"warning": 25,
"critical": 10
},
"tooltip": false
},
"network": {
"format": "{icon}",
"format-alt": "<span font='Font Awesome 5 Free 10'>︁</span> {ipaddr}/{cidr} {icon}",
"format-alt-click": "click-left",
"format-wifi": "<span font='Font Awesome 5 Free 10'></span> {essid} ({signalStrength}%)",
"format-ethernet": "<span font='Font Awesome 5 Free 10'>︁</span> {ifname}",
"format-disconnected": "⚠ Disconnected",
"tooltip": false
},
"pulseaudio": {
"format": "<span font='Font Awesome 5 Free 11'>{icon:2}</span>{volume}%",
"format-alt": "<span font='Font Awesome 5 Free 11'>{icon:2}</span>{volume}%",
"format-alt-click": "click-right",
"format-muted": "<span font='Font Awesome 5 Free 11'></span>",
"format-icons": {
"phone": [" ", " ", " ", " "],
"default": ["", "", "", ""]
},
"scroll-step": 2,
"on-click": "pavucontrol",
"tooltip": false
},
"backlight": {
"format": "{icon} {percent}%",
"format-alt": "{icon}",
"format-alt-click": "click-left",
"format-icons": ["", ""],
"on-scroll-up": "light -A 1",
"on-scroll-down": "light -U 1"
},
"temperature": {
"hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"critical-threshold": 75,
"interval": 5,
"format": "{icon} {temperatureC}°",
"tooltip": false,
"format-icons": [
"", // Icon: temperature-empty
"", // Icon: temperature-quarter
"", // Icon: temperature-half
"", // Icon: temperature-three-quarters
"" // Icon: temperature-full
]
}
}