{
  pkgs,
  config,
  ...
}: {
    programs.waybar = {
        enable = true;
        package = pkgs.waybar;
        settings = {
            mainBar = {
                layer = "top";
                position = "top";
                height = 30;
                output = [
                    "eDP-1"
                    "DP-1"
                    "HDMI-A-1"
                    "Virtual-1"
                ];

                modules-left = [ "sway/workspaces" "sway/mode" "wlr/taskbar" ];
                modules-center = [ "sway/window" "custom/hello-from-waybar" ];
                modules-right = [ "mpd" "custom/mymodule#with-css-id" "temperature" ];

                "sway/workspaces" = {
                    disable-scroll = true;
                    all-outputs = true;
                };
                "custom/hello-from-waybar" = {
                    format = "hello {}";
                    max-length = 40;
                    interval = "once";
                    exec = pkgs.writeShellScript "hello-from-waybar" ''
                        echo "from within waybar $USER"
                    '';
                };
            };
        };
    };

    /*home.file.".config/waybar" = {
        source = ./configs;
        # copy the scripts directory recursively
        recursive = true;
    };*/
}
