Created
January 1, 2023 02:19
-
-
Save cwillsey06/103e859e929f6f25ad32b2d3bae765ad to your computer and use it in GitHub Desktop.
build hyprland-waybar-git
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 / | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.