waybar: add on-click apps

This commit is contained in:
Konstantin Koslowski 2021-05-08 21:28:26 +02:00
parent 3becbcfcd3
commit 2f419e1760
2 changed files with 15 additions and 7 deletions

View file

@ -69,21 +69,25 @@
}, },
"clock": { "clock": {
"format": "<span foreground='#ebdbb2'> </span>{:%a, %d %b <span foreground='#ebdbb2'> </span>%H:%M}", "format": "<span foreground='#ebdbb2'> </span>{:%a, %d %b <span foreground='#ebdbb2'> </span>%H:%M}",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>" "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"on-click": "foot -T float khal interactive"
}, },
"cpu": { "cpu": {
"format": "<span foreground='#ebdbb2'></span> {usage}%", "format": "<span foreground='#ebdbb2'></span> {usage}%",
"states": { "states": {
"warning": 70, "warning": 70,
"critical": 90 "critical": 90
} },
"on-click": "foot -T float bashtop"
}, },
"memory": { "memory": {
"format": "<span foreground='#ebdbb2'></span> {}%", "format": "<span foreground='#ebdbb2'></span> {}%",
"states": { "states": {
"warning": 70, "warning": 70,
"critical": 90 "critical": 90
} },
"on-click": "foot -T float bashtop"
}, },
"backlight": { "backlight": {
"format": "<span foreground='#ebdbb2'>{icon}</span> {percent}%", "format": "<span foreground='#ebdbb2'>{icon}</span> {percent}%",

View file

@ -66,21 +66,25 @@
}, },
"clock": { "clock": {
"format": "<span foreground='#ebdbb2'> </span>{:%a, %d %b <span foreground='#ebdbb2'> </span>%H:%M}", "format": "<span foreground='#ebdbb2'> </span>{:%a, %d %b <span foreground='#ebdbb2'> </span>%H:%M}",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>" "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"on-click": "foot -T float khal interactive"
}, },
"cpu": { "cpu": {
"format": "<span foreground='#ebdbb2'></span> {usage}%", "format": "<span foreground='#ebdbb2'></span> {usage}%",
"states": { "states": {
"warning": 70, "warning": 70,
"critical": 90 "critical": 90
} },
"on-click": "foot -T float bashtop"
}, },
"memory": { "memory": {
"format": "<span foreground='#ebdbb2'></span> {}%", "format": "<span foreground='#ebdbb2'></span> {}%",
"states": { "states": {
"warning": 70, "warning": 70,
"critical": 90 "critical": 90
} },
"on-click": "foot -T float bashtop"
}, },
"backlight": { "backlight": {
"format": "<span foreground='#ebdbb2'>{icon}</span> {percent}%", "format": "<span foreground='#ebdbb2'>{icon}</span> {percent}%",
@ -97,7 +101,7 @@
"format-charging": "<span foreground='#268bd2'></span> {capacity}%", "format-charging": "<span foreground='#268bd2'></span> {capacity}%",
"format-icons": ["", "", "", "", ""] "format-icons": ["", "", "", "", ""]
}, },
{ "network#wl0": {
"interval": 2, "interval": 2,
"interface": "wl0", "interface": "wl0",
"format": "{ifname}", "format": "{ifname}",