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