mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
fix: lint
This commit is contained in:
parent
ba6faa7859
commit
60e0584d16
@ -15,7 +15,7 @@ class AModule : public IModule {
|
|||||||
auto update() -> void override;
|
auto update() -> void override;
|
||||||
virtual auto refresh(int) -> void{};
|
virtual auto refresh(int) -> void{};
|
||||||
operator Gtk::Widget &() override;
|
operator Gtk::Widget &() override;
|
||||||
auto doAction(const std::string& name) -> void override;
|
auto doAction(const std::string &name) -> void override;
|
||||||
|
|
||||||
Glib::Dispatcher dp;
|
Glib::Dispatcher dp;
|
||||||
|
|
||||||
|
@ -18,10 +18,10 @@
|
|||||||
#include "modules/wlr/workspace_manager.hpp"
|
#include "modules/wlr/workspace_manager.hpp"
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_RIVER
|
#ifdef HAVE_RIVER
|
||||||
|
#include "modules/river/layout.hpp"
|
||||||
#include "modules/river/mode.hpp"
|
#include "modules/river/mode.hpp"
|
||||||
#include "modules/river/tags.hpp"
|
#include "modules/river/tags.hpp"
|
||||||
#include "modules/river/window.hpp"
|
#include "modules/river/window.hpp"
|
||||||
#include "modules/river/layout.hpp"
|
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_HYPRLAND
|
#ifdef HAVE_HYPRLAND
|
||||||
#include "modules/hyprland/backend.hpp"
|
#include "modules/hyprland/backend.hpp"
|
||||||
|
@ -15,10 +15,7 @@ enum class WeeksSide {
|
|||||||
HIDDEN,
|
HIDDEN,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum class CldMode {
|
enum class CldMode { MONTH, YEAR };
|
||||||
MONTH,
|
|
||||||
YEAR
|
|
||||||
};
|
|
||||||
|
|
||||||
class Clock final : public ALabel {
|
class Clock final : public ALabel {
|
||||||
public:
|
public:
|
||||||
@ -64,12 +61,11 @@ class Clock final : public ALabel {
|
|||||||
void tz_down();
|
void tz_down();
|
||||||
|
|
||||||
// ModuleActionMap
|
// ModuleActionMap
|
||||||
static inline std::map<const std::string, void(waybar::modules::Clock::* const)()> actionMap_{
|
static inline std::map<const std::string, void (waybar::modules::Clock::*const)()> actionMap_{
|
||||||
{"mode", &waybar::modules::Clock::cldModeSwitch},
|
{"mode", &waybar::modules::Clock::cldModeSwitch},
|
||||||
{"shift_up", &waybar::modules::Clock::cldShift_up},
|
{"shift_up", &waybar::modules::Clock::cldShift_up},
|
||||||
{"shift_down", &waybar::modules::Clock::cldShift_down},
|
{"shift_down", &waybar::modules::Clock::cldShift_down},
|
||||||
{"tz_up", &waybar::modules::Clock::tz_up},
|
{"tz_up", &waybar::modules::Clock::tz_up},
|
||||||
{"tz_down", &waybar::modules::Clock::tz_down}
|
{"tz_down", &waybar::modules::Clock::tz_down}};
|
||||||
};
|
|
||||||
};
|
};
|
||||||
} // namespace waybar::modules
|
} // namespace waybar::modules
|
||||||
|
@ -989,7 +989,7 @@ struct Help : Opt {
|
|||||||
showHelpFlag = flag;
|
showHelpFlag = flag;
|
||||||
return ParserResult::ok(ParseResultType::ShortCircuitAll);
|
return ParserResult::ok(ParseResultType::ShortCircuitAll);
|
||||||
}) {
|
}) {
|
||||||
static_cast<Opt &> (*this)("display usage information")["-?"]["-h"]["--help"].optional();
|
static_cast<Opt &>(*this)("display usage information")["-?"]["-h"]["--help"].optional();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
|
#include "modules/mpris/mpris.hpp"
|
||||||
|
|
||||||
#include <fmt/core.h>
|
#include <fmt/core.h>
|
||||||
|
|
||||||
#include <optional>
|
#include <optional>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "modules/mpris/mpris.hpp"
|
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include <playerctl/playerctl.h>
|
#include <playerctl/playerctl.h>
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user