Fix Waybar instructions on FreeBSD (#176)

* Work around GNU vs. BSD sed -i incompatibility

sed: 1: "src/modules/wlr/workspa ...": bad flag in substitute command: 'k'

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254091

* waybar-hyprland also exists on FreeBSD, so drop -git suffix
This commit is contained in:
Jan Beich 2023-04-05 22:53:45 +00:00 committed by GitHub
parent 51bb3bba1d
commit ac58598600
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,7 @@
Waybar is a GTK status bar made specifically for wlroots compositors. Waybar is a GTK status bar made specifically for wlroots compositors.
To use it, it's recommended to use the AUR package `waybar-hyprland-git`. To use it, it's recommended to use your distro's package by searching `waybar-hyprland`.
## Compiling Manually ## Compiling Manually
@ -11,7 +11,7 @@ To compile manually:
Clone the source, cd into it, then do: Clone the source, cd into it, then do:
```bash ```bash
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 sed -i -e '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
meson --prefix=/usr --buildtype=plain --auto-features=enabled --wrap-mode=nodownload build meson --prefix=/usr --buildtype=plain --auto-features=enabled --wrap-mode=nodownload build
meson configure -Dexperimental=true build meson configure -Dexperimental=true build
sudo ninja -C build install sudo ninja -C build install