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