2021-06-24 15:33:56 +02:00
|
|
|
|
// vi: ft=jsonc
|
|
|
|
|
// normal #ebdbb2
|
|
|
|
|
// blue #268bd2
|
|
|
|
|
// red #fb4934
|
|
|
|
|
// green #b8bb26
|
|
|
|
|
{
|
|
|
|
|
"layer": "top",
|
|
|
|
|
"height": 25,
|
|
|
|
|
"modules-left": [
|
|
|
|
|
"sway/workspaces",
|
2021-07-24 08:25:43 +02:00
|
|
|
|
"custom/separator#left",
|
|
|
|
|
"custom/separator#space"
|
2021-06-24 15:33:56 +02:00
|
|
|
|
],
|
|
|
|
|
"modules-center": [
|
|
|
|
|
"custom/separator#right",
|
|
|
|
|
"custom/media",
|
|
|
|
|
"custom/separator#center",
|
|
|
|
|
"pulseaudio",
|
2022-08-24 22:39:56 +02:00
|
|
|
|
// "custom/separator#center",
|
|
|
|
|
// "custom/card",
|
|
|
|
|
// "custom/separator#center",
|
|
|
|
|
// "custom/mail",
|
|
|
|
|
"custom/separator#left",
|
|
|
|
|
"custom/separator#space"
|
2021-06-24 15:33:56 +02:00
|
|
|
|
],
|
|
|
|
|
"modules-right": [
|
|
|
|
|
"custom/separator#right",
|
|
|
|
|
"network#en0",
|
2022-03-25 20:28:01 +01:00
|
|
|
|
"network#wl0",
|
2021-06-24 15:33:56 +02:00
|
|
|
|
"custom/separator#right",
|
|
|
|
|
"cpu",
|
|
|
|
|
"memory",
|
2022-08-26 14:34:20 +02:00
|
|
|
|
"temperature",
|
2021-06-24 15:33:56 +02:00
|
|
|
|
"custom/separator#right",
|
2022-08-24 22:39:56 +02:00
|
|
|
|
// "battery",
|
|
|
|
|
// "custom/separator#right",
|
2021-06-24 15:33:56 +02:00
|
|
|
|
"custom/calendar",
|
|
|
|
|
"clock",
|
|
|
|
|
"tray"
|
|
|
|
|
],
|
|
|
|
|
"custom/separator#left": {
|
2021-07-24 08:25:43 +02:00
|
|
|
|
"format": "<span foreground='#268bd2'>❯</span>"
|
|
|
|
|
},
|
|
|
|
|
"custom/separator#space": {
|
|
|
|
|
"format": " "
|
2021-06-24 15:33:56 +02:00
|
|
|
|
},
|
|
|
|
|
"custom/separator#center": {
|
2021-07-24 08:25:43 +02:00
|
|
|
|
// "format": "<span foreground='#268bd2'></span>"
|
|
|
|
|
"format": "<span foreground='#268bd2'>|</span>"
|
2021-06-24 15:33:56 +02:00
|
|
|
|
},
|
|
|
|
|
"custom/separator#right": {
|
2021-07-24 08:25:43 +02:00
|
|
|
|
"format": "<span foreground='#268bd2'>❮</span>"
|
2021-06-24 15:33:56 +02:00
|
|
|
|
},
|
|
|
|
|
"custom/calendar": {
|
|
|
|
|
"format": "{icon} {}",
|
|
|
|
|
"tooltip-format": "{}",
|
|
|
|
|
"tooltip": true,
|
|
|
|
|
"return-type": "json",
|
2021-07-24 08:25:43 +02:00
|
|
|
|
"min-length": 25,
|
|
|
|
|
"max-length": 40,
|
2021-06-24 15:33:56 +02:00
|
|
|
|
"interval": 300,
|
|
|
|
|
"format-icons": {
|
2021-07-24 08:25:43 +02:00
|
|
|
|
"now": "<span foreground='#fb4934'></span>",
|
|
|
|
|
"today": "<span foreground='#b8bb26'></span>",
|
|
|
|
|
"idle": ""
|
2021-06-24 15:33:56 +02:00
|
|
|
|
},
|
|
|
|
|
"escape": false,
|
|
|
|
|
"exec": "$HOME/.config/sway/bin/waybar_khal.py 2> /dev/null",
|
|
|
|
|
"on-click": "foot -T float khal interactive"
|
|
|
|
|
},
|
|
|
|
|
"custom/card": {
|
|
|
|
|
"format": "{icon} {}",
|
|
|
|
|
"tooltip-format": "{}",
|
|
|
|
|
"tooltip": true,
|
|
|
|
|
"return-type": "json",
|
|
|
|
|
"min-length": 3,
|
|
|
|
|
"max-length": 3,
|
|
|
|
|
"interval": 10,
|
|
|
|
|
"format-icons": {
|
|
|
|
|
"available": "",
|
|
|
|
|
"missing": ""
|
|
|
|
|
},
|
|
|
|
|
"escape": true,
|
|
|
|
|
"exec": "$HOME/.config/sway/bin/waybar_card.sh 2> /dev/null"
|
|
|
|
|
},
|
|
|
|
|
"custom/mail": {
|
|
|
|
|
"format": "{icon} {}",
|
|
|
|
|
"tooltip-format": "{}",
|
|
|
|
|
"tooltip": true,
|
|
|
|
|
"return-type": "json",
|
|
|
|
|
"min-length": 5,
|
2021-07-08 07:26:07 +02:00
|
|
|
|
"max-length": 6,
|
2021-06-24 15:33:56 +02:00
|
|
|
|
"interval": 30,
|
|
|
|
|
"format-icons": {
|
2021-07-24 08:25:43 +02:00
|
|
|
|
"unread": "",
|
|
|
|
|
"read": ""
|
2021-06-24 15:33:56 +02:00
|
|
|
|
},
|
|
|
|
|
"escape": true,
|
|
|
|
|
"exec": "$HOME/.config/sway/bin/waybar_mail.py 2> /dev/null"
|
|
|
|
|
},
|
|
|
|
|
"custom/media": {
|
|
|
|
|
"format": "{icon} {}",
|
|
|
|
|
"tooltip-format": "{}",
|
|
|
|
|
"tooltip": true,
|
|
|
|
|
"return-type": "json",
|
2021-07-24 08:25:43 +02:00
|
|
|
|
"min-length": 10,
|
|
|
|
|
"max-length": 30,
|
2021-06-24 15:33:56 +02:00
|
|
|
|
"format-icons": {
|
|
|
|
|
"chromium": " ",
|
|
|
|
|
"firefox": " ",
|
|
|
|
|
"Plexamp": "♫ ",
|
|
|
|
|
"default": "♪ "
|
|
|
|
|
},
|
|
|
|
|
"escape": true,
|
|
|
|
|
"exec": "$HOME/.config/sway/bin/waybar_mediaplayer.py 2> /dev/null"
|
|
|
|
|
},
|
|
|
|
|
"clock": {
|
2021-07-24 08:25:43 +02:00
|
|
|
|
"format": "<span foreground='#ebdbb2'></span>{: %b %d, %H:%M}",
|
2021-06-24 15:33:56 +02:00
|
|
|
|
"on-click": "foot -T float khal interactive"
|
|
|
|
|
},
|
|
|
|
|
"cpu": {
|
2021-07-24 08:25:43 +02:00
|
|
|
|
"format": "<span foreground='#ebdbb2'></span>{usage:3}%",
|
|
|
|
|
"min-length": 6,
|
|
|
|
|
"max-length": 10,
|
2021-06-24 15:33:56 +02:00
|
|
|
|
"states": {
|
|
|
|
|
"warning": 70,
|
|
|
|
|
"critical": 90
|
|
|
|
|
},
|
|
|
|
|
"on-click": "foot -T float bashtop"
|
|
|
|
|
},
|
|
|
|
|
"memory": {
|
2021-07-24 08:25:43 +02:00
|
|
|
|
"format": "<span foreground='#ebdbb2'></span>{}%",
|
|
|
|
|
"min-length": 6,
|
|
|
|
|
"max-length": 10,
|
2021-06-24 15:33:56 +02:00
|
|
|
|
"states": {
|
|
|
|
|
"warning": 70,
|
|
|
|
|
"critical": 90
|
|
|
|
|
},
|
|
|
|
|
"on-click": "foot -T float bashtop"
|
|
|
|
|
},
|
|
|
|
|
"battery": {
|
|
|
|
|
"bat": "BAT0",
|
|
|
|
|
"design-capacity": false,
|
|
|
|
|
"states": {
|
|
|
|
|
"warning": 30,
|
|
|
|
|
"critical": 15
|
|
|
|
|
},
|
2021-07-24 08:25:43 +02:00
|
|
|
|
"format": "<span foreground='#ebdbb2'>{icon}</span>{capacity:3}%",
|
|
|
|
|
"format-charging": "<span foreground='#268bd2'></span>{capacity:3}%",
|
2021-06-24 15:33:56 +02:00
|
|
|
|
"format-icons": ["", "", "", "", ""]
|
|
|
|
|
},
|
2022-08-26 14:34:20 +02:00
|
|
|
|
"temperature": {
|
|
|
|
|
"thermal-zone": 2,
|
|
|
|
|
"critical-threshold": 60,
|
2023-12-19 09:19:25 +01:00
|
|
|
|
"format-icons": ["", ""],
|
|
|
|
|
"format": "<span foreground='#ebdbb2'>{icon}</span>{temperatureC:3}°C"
|
2022-08-26 14:34:20 +02:00
|
|
|
|
},
|
2022-03-25 20:28:01 +01:00
|
|
|
|
"network#en0": {
|
2021-06-24 15:33:56 +02:00
|
|
|
|
"interval": 2,
|
2022-03-25 20:28:01 +01:00
|
|
|
|
"interface": "en0",
|
2021-06-24 15:33:56 +02:00
|
|
|
|
"format": "{ifname}",
|
2021-07-24 08:25:43 +02:00
|
|
|
|
"format-wifi": "<span foreground='#ebdbb2'> </span>{ifname}",
|
2021-06-24 15:33:56 +02:00
|
|
|
|
"format-linked": "<span foreground='#ebdbb2'> </span>{ifname}",
|
2021-08-12 11:21:01 +02:00
|
|
|
|
"format-disconnected": "<span foreground='#606060'> </span>{ifname}",
|
2021-07-24 08:25:43 +02:00
|
|
|
|
"min-length": 8,
|
|
|
|
|
"max-length": 30,
|
2022-03-25 20:28:01 +01:00
|
|
|
|
"tooltip-format": "{ifname}\n\t{ipaddr}/{cidr}\n \t{bandwidthDownBits}\n \t{bandwidthUpBits}",
|
|
|
|
|
"tooltip-format-ethernet": "{ifname}\n\t{ipaddr}/{cidr}\n \t{bandwidthDownBits}\n \t{bandwidthUpBits}",
|
|
|
|
|
"tooltip-format-wifi": "{ifname} {essid} ({signalStrength:3}%)\n\t{ipaddr}/{cidr}\n \t{bandwidthDownBits}\n \t{bandwidthUpBits}",
|
2021-06-24 15:33:56 +02:00
|
|
|
|
"tooltip-format-disconnected": "{ifname} disconnected",
|
|
|
|
|
"on-click": "foot -T float nmtui"
|
|
|
|
|
},
|
2022-03-25 20:28:01 +01:00
|
|
|
|
"network#wl0": {
|
2021-08-17 11:50:10 +02:00
|
|
|
|
"interval": 2,
|
2022-03-25 20:28:01 +01:00
|
|
|
|
"interface": "wl0",
|
2021-08-17 11:50:10 +02:00
|
|
|
|
"format": "{ifname}",
|
2022-03-25 20:28:01 +01:00
|
|
|
|
"format-wifi": "<span foreground='#ebdbb2'> </span>{ifname}",
|
|
|
|
|
"format-linked": "<span foreground='#ebdbb2'> </span>{ifname}",
|
2021-08-17 11:50:10 +02:00
|
|
|
|
"format-disconnected": "<span foreground='#606060'> </span>{ifname}",
|
2022-03-25 20:28:01 +01:00
|
|
|
|
"min-length": 8,
|
|
|
|
|
"max-length": 30,
|
2021-08-17 11:50:10 +02:00
|
|
|
|
"tooltip-format": "{ifname}\n\t{ipaddr}/{cidr}\n \t{bandwidthDownBits}\n \t{bandwidthUpBits}",
|
2022-03-25 20:28:01 +01:00
|
|
|
|
"tooltip-format-ethernet": "{ifname}\n\t{ipaddr}/{cidr}\n \t{bandwidthDownBits}\n \t{bandwidthUpBits}",
|
|
|
|
|
"tooltip-format-wifi": "{ifname} {essid} ({signalStrength:3}%)\n\t{ipaddr}/{cidr}\n \t{bandwidthDownBits}\n \t{bandwidthUpBits}",
|
2021-06-24 15:33:56 +02:00
|
|
|
|
"tooltip-format-disconnected": "{ifname} disconnected",
|
|
|
|
|
"on-click": "foot -T float nmtui"
|
|
|
|
|
},
|
|
|
|
|
"pulseaudio": {
|
|
|
|
|
"format": "<span foreground='#ebdbb2'>{icon} </span>{volume}% {format_source}",
|
|
|
|
|
"format-muted": "<span foreground='#fb4934'> </span>{format_source}",
|
2021-07-24 08:25:43 +02:00
|
|
|
|
"format-bluetooth": "<span foreground='#ebdbb2'>{icon}</span> {volume}% {format_source}",
|
|
|
|
|
"format-bluetooth-muted": "<span foreground='#fb4934'>{icon}</span>{format_source}",
|
|
|
|
|
"format-source": "<span foreground='#b8bb26'></span>",
|
|
|
|
|
"format-source-muted": "<span foreground='#fb4934'></span>",
|
2021-06-24 15:33:56 +02:00
|
|
|
|
"format-icons": {
|
|
|
|
|
"headphone": "🎧",
|
|
|
|
|
"hands-free": "",
|
|
|
|
|
"headset": "",
|
|
|
|
|
"phone": "",
|
|
|
|
|
"portable": "",
|
|
|
|
|
"car": "",
|
|
|
|
|
"default": ["", "", ""]
|
|
|
|
|
},
|
2021-07-24 08:25:43 +02:00
|
|
|
|
"min-length": 7,
|
|
|
|
|
"max-length": 12,
|
2021-06-24 15:33:56 +02:00
|
|
|
|
"on-click": "$HOME/.config/sway/bin/sway_volume mute",
|
2021-07-24 08:25:43 +02:00
|
|
|
|
"on-click-middle": "$HOME/.config/sway/bin/sway_volume source-mute",
|
|
|
|
|
"on-click-right": "$HOME/.config/sway/bin/sway_volume gui",
|
2021-06-24 15:33:56 +02:00
|
|
|
|
"on-scroll-up": "$HOME/.config/sway/bin/sway_volume increase",
|
|
|
|
|
"on-scroll-down": "$HOME/.config/sway/bin/sway_volume decrease-mute"
|
|
|
|
|
},
|
|
|
|
|
"tray": {
|
|
|
|
|
"padding": 10,
|
|
|
|
|
"spacing": 10
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|