Skip to content

Instantly share code, notes, and snippets.

@cwillsey06
Created January 1, 2023 02:19
Show Gist options
  • Select an option

  • Save cwillsey06/103e859e929f6f25ad32b2d3bae765ad to your computer and use it in GitHub Desktop.

Select an option

Save cwillsey06/103e859e929f6f25ad32b2d3bae765ad to your computer and use it in GitHub Desktop.
build hyprland-waybar-git
# syntax=docker/dockerfile:1.3
FROM fedora:latest AS build
RUN dnf install -y @c-development git-core meson scdoc 'pkgconfig(date)' \
'pkgconfig(dbusmenu-gtk3-0.4)' 'pkgconfig(fmt)' 'pkgconfig(gdk-pixbuf-2.0)' \
'pkgconfig(gio-unix-2.0)' 'pkgconfig(gtk-layer-shell-0)' 'pkgconfig(gtkmm-3.0)' \
'pkgconfig(jsoncpp)' 'pkgconfig(libinput)' 'pkgconfig(libmpdclient)' \
'pkgconfig(libnl-3.0)' 'pkgconfig(libnl-genl-3.0)' 'pkgconfig(libpulse)' \
'pkgconfig(libudev)' 'pkgconfig(pugixml)' 'pkgconfig(sigc++-2.0)' 'pkgconfig(spdlog)' \
'pkgconfig(wayland-client)' 'pkgconfig(wayland-cursor)' 'pkgconfig(wayland-protocols)' 'pkgconfig(xkbregistry)' && \
dnf clean all -y
WORKDIR /tmp
RUN git clone --recurse-submodules https://github.com/Alexays/Waybar.git /tmp/Waybar
WORKDIR /tmp/Waybar
RUN sed -i 's/zext_workspace_handle_v1_activate(workspace_handle_);/const std::string command = "hyprctl dispatch workspace " + name_;\n\tsystem(command.c_str());/g' src/modules/wlr/workspace_manager.cpp
RUN meson --prefix=/usr build
RUN meson configure -Dexperimental=true build
RUN ninja -C build
FROM scratch AS export
COPY --from=build /tmp/Waybar/build/waybar /
@cwillsey06
Copy link
Author

cwillsey06 commented Jan 1, 2023

cat Dockerfile | podman -o . -

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment