Skip to content

Commit

Permalink
Merge pull request Alexays#2926 from alebastr/meson-cleanup
Browse files Browse the repository at this point in the history
build: refactorings and deprecation fixes
  • Loading branch information
Alexays authored Feb 19, 2024
2 parents 3d75167 + a95b6a3 commit 6048e23
Show file tree
Hide file tree
Showing 8 changed files with 195 additions and 169 deletions.
10 changes: 7 additions & 3 deletions include/factory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
#include "modules/sway/window.hpp"
#include "modules/sway/workspaces.hpp"
#endif
#ifdef HAVE_WLR
#ifdef HAVE_WLR_TASKBAR
#include "modules/wlr/taskbar.hpp"
#endif
#ifdef HAVE_WLR_WORKSPACES
#include "modules/wlr/workspace_manager.hpp"
#endif
#ifdef HAVE_RIVER
Expand All @@ -33,7 +35,7 @@
#include "modules/hyprland/window.hpp"
#include "modules/hyprland/workspaces.hpp"
#endif
#if defined(__FreeBSD__) || (defined(__linux__) && !defined(NO_FILESYSTEM))
#if defined(__FreeBSD__) || defined(__linux__)
#include "modules/battery.hpp"
#endif
#if defined(HAVE_CPU_LINUX) || defined(HAVE_CPU_BSD)
Expand Down Expand Up @@ -80,8 +82,10 @@
#ifdef HAVE_LIBSNDIO
#include "modules/sndio.hpp"
#endif
#ifdef HAVE_GIO_UNIX
#if defined(__linux__)
#include "modules/bluetooth.hpp"
#endif
#ifdef HAVE_LOGIND_INHIBITOR
#include "modules/inhibitor.hpp"
#endif
#ifdef HAVE_LIBJACK
Expand Down
11 changes: 2 additions & 9 deletions include/modules/battery.hpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
#pragma once

#ifdef FILESYSTEM_EXPERIMENTAL
#include <experimental/filesystem>
#else
#include <filesystem>
#endif
#include <fmt/format.h>

#include <filesystem>
#if defined(__linux__)
#include <sys/inotify.h>
#endif
Expand All @@ -21,11 +18,7 @@

namespace waybar::modules {

#ifdef FILESYSTEM_EXPERIMENTAL
namespace fs = std::experimental::filesystem;
#else
namespace fs = std::filesystem;
#endif

class Battery : public ALabel {
public:
Expand Down
2 changes: 2 additions & 0 deletions include/util/css_reload_helper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ class CssReloadHelper {
public:
CssReloadHelper(std::string cssFile, std::function<void()> callback);

virtual ~CssReloadHelper() = default;

virtual void monitorChanges();

protected:
Expand Down
1 change: 1 addition & 0 deletions man/waybar-hyprland-workspaces.5.scd
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ Additional to workspace name matching, the following *format-icons* can be set.
}
```

```
"hyprland/workspaces": {
// Formatting omitted for brevity
"ignore-workspaces": [
Expand Down
Loading

0 comments on commit 6048e23

Please sign in to comment.