Update '.config/waybar/config'

This commit is contained in:
tk1rk 2022-11-14 23:52:45 +01:00
parent 379150e3a0
commit ae0d37dd95

View File

@ -1,10 +1,10 @@
"settings": [ "settings": {
"mainBar": [ "mainBar": {
"layer": "top", "layer": "top",
"position": "left", "position": "left",
"width": "60", "width": "60",
"spacing": "7", "spacing": "7",
"modules-left": [ "modules-left": {
"custom/search" "custom/search"
"wlr/workspaces" "wlr/workspaces"
"custom/lock" "custom/lock"
@ -12,88 +12,88 @@
"custom/todo" "custom/todo"
"backlight" "backlight"
"battery" "battery"
], },
], },
"modules-center": [], "modules-center": [],
"modules-right": ["pulseaudio" "network" "custom/swallow" "clock" "custom/power"], "modules-right": ["pulseaudio" "network" "custom/swallow" "clock" "custom/power"],
"wlr/workspaces": [ "wlr/workspaces": {
"on-click": "activate", "on-click": "activate",
"format": "{icon}", "format": "{icon}",
"active-only": "false", "active-only": "false",
"format-icons": [ "format-icons": {
"default": "", "default": "",
"active": " 󰮯", "active": " 󰮯",
], },
], },
"custom/search": [ "custom/search": {
"format": " ", "format": " ",
"tooltip": "false", "tooltip": "false",
"on-click": "killall rofi || ${pkgs.rofi}/bin/rofi -show drun", "on-click": "killall rofi || ${pkgs.rofi}/bin/rofi -show drun",
], },
"custom/todo": [ "custom/todo": {
"format": "[]", "format": "[]",
"tooltip": "true", "tooltip": "true",
"interval": "7", "interval": "7",
"exec": "${./scripts/todo.sh}", "exec": "${./scripts/todo.sh}",
"return-type": "json", "return-type": "json",
], },
"custom/weather": [ "custom/weather": {
"format: "[]", "format: "[]",
"tooltip: "true", "tooltip: "true",
"interval: "3600", "interval: "3600",
"exec": "${waybar-wttr}", "exec": "${waybar-wttr}",
"return-type", "json", "return-type": "json",
], },
"custom/lock" = [ "custom/lock": {
"tooltip": "false", "tooltip": "false",
"on-click" "sh -c '(sleep 0.5s; ${pkgs.swaylock}/bin/swaylock --grace 0)' & disown", "on-click": "sh -c '(sleep 0.5s; ${pkgs.swaylock}/bin/swaylock --grace 0)' & disown",
"format": "", "format": "",
], },
"custom/swallow" = [ "custom/swallow": {
"tooltip": "false", "tooltip": "false",
"on-click": "${./scripts/waybar-swallow.sh}", "on-click": "${./scripts/waybar-swallow.sh}",
"format": "", "format": "",
], },
"custom/power" = { "custom/power": {
"tooltip": "false", "tooltip": "false",
"on-click": "${./scripts/shutdown.sh} &", "on-click": "${./scripts/shutdown.sh} &",
"format": "襤", "format": "襤",
], },
"clock": [ "clock": {
"format": ":%H %M}", "format": ":%H %M}",
"tooltip-format": "<big>{:%Y %B}</big><tt><small>{calendar}</small></tt>", "tooltip-format": "<big>{:%Y %B}</big><tt><small>{calendar}</small></tt>",
], },
"backlight": [ "backlight": {
"format": "[icon]", "format": "[icon]",
"format-icons": ["" "" "" "" "" "" "" "" ""], "format-icons": "["" "" "" "" "" "" "" "" ""]"",
], },
"battery": [ "battery": {
"states": [], "states": [],
"warning": "30", "warning": "30",
"critical": "15", "critical": "15",
], },
"format": "{icon}", "format": "{icon}",
"format-charging": "", "format-charging": "",
"format-plugged": "", "format-plugged": "",
"format-alt": "{icon}", "format-alt": "{icon}",
"format-icons": ["" "" "" "" "" "" "" "" "" "" "" ""], "format-icons": ["" "" "" "" "" "" "" "" "" "" "" ""],
], },
"network" = [ "network": {
"format-wifi": "󰤨", "format-wifi": "󰤨",
"format-ethernet": "󰤨", "format-ethernet": "󰤨",
"format-alt": "󰤨", "format-alt": "󰤨",
"format-disconnected": "󰤭", "format-disconnected": "󰤭",
"tooltip-format": "{ipaddr}/{ifname} via {gwaddr} ({signalStrength}%)", "tooltip-format": "{ipaddr}/{ifname} via {gwaddr} ({signalStrength}%)",
], },
"pulseaudio" = [ "pulseaudio": {
"scroll-step": "5", "scroll-step": "5",
"tooltip"": "false", "tooltip"": "false",
"format": "{icon}", "format": "{icon}",
"format-icons": "default = ["" "" "墳"]", "format-icons": "default = ["" "" "墳"]",
"on-click": "${pkgs.killall}/bin/killall pavucontrol || ${pkgs.pavucontrol}/bin/pavucontrol", "on-click": "${pkgs.killall}/bin/killall pavucontrol || ${pkgs.pavucontrol}/bin/pavucontrol",
], },
], },
], },
], },
] }