2024-02-26 13:15:20 +01:00
|
|
|
{
|
|
|
|
"layer": "bottom",
|
|
|
|
"position": "bottom",
|
2024-05-19 13:43:28 +02:00
|
|
|
"height": 24,
|
2024-02-26 13:15:20 +01:00
|
|
|
|
|
|
|
// maybe take another look at e.g. https://gitlab.com/wef/dotfiles/-/blob/master/.config/waybar/config
|
2024-05-08 22:16:45 +02:00
|
|
|
// https://github.com/Alexays/Waybar/wiki/Configuration
|
|
|
|
// https://github.com/Alexays/Waybar/wiki/Examples
|
2024-02-26 13:15:20 +01:00
|
|
|
|
2024-05-31 21:18:20 +02:00
|
|
|
"modules-left": ["sway/workspaces", "sway/mode", "sway/window" ],
|
|
|
|
"modules-center": [ "custom/disk_root", "custom/disk_docs", "custom/disk_store", "network"],
|
2024-06-05 22:20:51 +02:00
|
|
|
"modules-right": [ "custom/mail", "battery", "memory", "tray", "clock" ],
|
2024-02-26 13:15:20 +01:00
|
|
|
"sway/mode": {
|
|
|
|
"format": " {}"
|
|
|
|
},
|
|
|
|
"sway/workspaces": {
|
|
|
|
"format": "{name}",
|
|
|
|
"disable-scroll": true
|
|
|
|
},
|
|
|
|
"clock": {
|
2024-05-08 22:16:45 +02:00
|
|
|
"format": "{:%b %d %H:%M KW%U}",
|
2024-02-26 13:15:20 +01:00
|
|
|
"tooltip": false
|
|
|
|
},
|
|
|
|
"battery": {
|
|
|
|
"format": " {time} {icon}",
|
|
|
|
"format-alt": "{capacity}% {icon}",
|
|
|
|
"format-icons": ["", "", "", "", ""],
|
|
|
|
"format-charging": "{capacity}% ",
|
|
|
|
"interval": 30,
|
|
|
|
"states": {
|
|
|
|
"warning": 25,
|
|
|
|
"critical": 10
|
|
|
|
},
|
|
|
|
"tooltip": false
|
|
|
|
},
|
|
|
|
"custom/disk_home": {
|
|
|
|
"format": "🏠 {} ",
|
|
|
|
"interval": 30,
|
2024-05-31 21:18:20 +02:00
|
|
|
"exec": "df -h --output=avail $HOME | tail -1 | tr -d ' '",
|
|
|
|
"tooltip": true ,
|
|
|
|
"tooltip-format": "{path} ({percentage_used}% of {total})"
|
2024-02-26 13:15:20 +01:00
|
|
|
},
|
|
|
|
"custom/disk_root": {
|
2024-05-31 21:18:20 +02:00
|
|
|
"format": "root💽{} ",
|
2024-02-26 13:15:20 +01:00
|
|
|
"interval": 30,
|
2024-05-19 13:43:28 +02:00
|
|
|
"exec": "df -h --output=avail / | tail -1 | tr -d ' '",
|
|
|
|
"tooltip": true ,
|
|
|
|
"tooltip-format": "{path} ({percentage_used}% of {total})"
|
2024-02-26 13:15:20 +01:00
|
|
|
},
|
2024-05-31 21:18:20 +02:00
|
|
|
|
|
|
|
"custom/disk_store": {
|
|
|
|
"format": "store💽{} ",
|
|
|
|
"interval": 30,
|
|
|
|
"exec": "df -h --output=avail /media/store | tail -1 | tr -d ' '"
|
|
|
|
},
|
|
|
|
"custom/disk_docs": {
|
|
|
|
"format": "docs💽{} ",
|
|
|
|
"interval": 30,
|
|
|
|
"exec": "df -h --output=avail /media/docs | tail -1 | tr -d ' '"
|
|
|
|
},
|
2024-02-26 13:15:20 +01:00
|
|
|
"temperature": {
|
|
|
|
// "thermal-zone": 2,
|
|
|
|
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
|
|
|
"critical-threshold": 80,
|
|
|
|
// "format-critical": "{temperatureC}°C {icon}",
|
|
|
|
"format": "<span color='#e88939'>{icon}</span> {temperatureC}°C",
|
|
|
|
"format-icons": ["", "", ""]
|
|
|
|
},
|
|
|
|
"cpu": {
|
|
|
|
"format": "🏭 {usage}%",
|
|
|
|
"tooltip": false
|
|
|
|
},
|
|
|
|
"memory": {
|
|
|
|
"format": "💾 {used:0.1f}G"
|
|
|
|
},
|
|
|
|
"custom/mail": {
|
|
|
|
"format": "📩{}",
|
|
|
|
"interval": 30,
|
|
|
|
"exec": "notmuch count tag:flagged OR tag:inbox AND NOT tag:killed"
|
|
|
|
},
|
|
|
|
"network": {
|
2024-05-08 22:16:45 +02:00
|
|
|
// "family": "ipv6",
|
2024-02-26 13:15:20 +01:00
|
|
|
"format-wifi": "<span color='#589df6'></span> <span color='gray'>{essid}</span> {frequency} <span color='#589df6'>{signaldBm} dB</span> <span color='#589df6'>⇵</span> {bandwidthUpBits}/{bandwidthDownBits}",
|
|
|
|
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
|
|
|
|
"format-linked": "{ifname} (No IP) ",
|
|
|
|
"format-disconnected": "Disconnected ⚠",
|
|
|
|
"format-alt": "{ifname}: {ipaddr}/{cidr}",
|
|
|
|
"interval": 5
|
|
|
|
},
|
2024-05-08 22:16:45 +02:00
|
|
|
//"timer": {
|
|
|
|
// "interval": 1,
|
|
|
|
// "exec": "~/.config/waybar/timer.sh",
|
|
|
|
// "exec-if": "pgrep emacs",
|
|
|
|
// "escape": true
|
|
|
|
//},
|
2024-02-26 13:15:20 +01:00
|
|
|
"idle_inhibitor": {
|
|
|
|
"format": "{icon}",
|
|
|
|
"format-icons": {
|
|
|
|
"activated": "",
|
|
|
|
"deactivated": ""
|
|
|
|
},
|
|
|
|
"tooltip": false
|
|
|
|
},
|
|
|
|
"tray": {
|
|
|
|
"icon-size": 20,
|
|
|
|
"show-passive-items": true
|
|
|
|
},
|
|
|
|
"cpu": {
|
|
|
|
"interval": 2,
|
|
|
|
"format": "{icon0}{icon1}{icon2}{icon3}{icon4}{icon5}{icon6}{icon7}",
|
|
|
|
"format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"],
|
|
|
|
},
|
|
|
|
}
|