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