Fork
Some checks failed
clang-format / lint (push) Has been cancelled
freebsd / build (push) Has been cancelled
linux / build (c++20, alpine) (push) Has been cancelled
linux / build (c++20, archlinux) (push) Has been cancelled
linux / build (c++20, debian) (push) Has been cancelled
linux / build (c++20, fedora) (push) Has been cancelled
linux / build (c++20, gentoo) (push) Has been cancelled
linux / build (c++20, opensuse) (push) Has been cancelled
Nix-Tests / nix-flake-check (push) Has been cancelled

This commit is contained in:
2025-10-09 22:05:52 -07:00
parent 559079e9a6
commit c5a7fae1d9
14 changed files with 138 additions and 20 deletions

View File

@ -4,6 +4,8 @@
#include <gtkmm/widget.h>
#include <json/json.h>
#include <optional>
#include "AModule.hpp"
#include "gtkmm/revealer.h"
@ -15,6 +17,7 @@ class Group : public AModule {
~Group() override = default;
auto update() -> void override;
operator Gtk::Widget &() override;
auto refresh(int sig) -> void override;
virtual Gtk::Box &getBox();
void addWidget(Gtk::Widget &widget);
@ -26,10 +29,12 @@ class Group : public AModule {
bool is_first_widget = true;
bool is_drawer = false;
bool click_to_reveal = false;
std::optional<int> toggle_signal;
std::string add_class_to_drawer_children;
bool handleMouseEnter(GdkEventCrossing *const &ev) override;
bool handleMouseLeave(GdkEventCrossing *const &ev) override;
bool handleToggle(GdkEventButton *const &ev) override;
void toggle();
void show_group();
void hide_group();
};

View File

@ -21,6 +21,7 @@ class Mode : public waybar::ALabel {
private:
const waybar::Bar &bar_;
std::set<std::string> hidden_modes_;
std::string mode_;
struct zriver_seat_status_v1 *seat_status_;
};

View File

@ -20,6 +20,7 @@ class Tags : public waybar::AModule {
void handle_focused_tags(uint32_t tags);
void handle_view_tags(struct wl_array *tags);
void handle_urgent_tags(uint32_t tags);
void handle_focused_view(const char *title, uint32_t tags);
void handle_show();
void handle_primary_clicked(uint32_t tag);
@ -27,6 +28,7 @@ class Tags : public waybar::AModule {
struct zriver_status_manager_v1 *status_manager_;
struct zriver_control_v1 *control_;
struct zriver_seat_status_v1 *seat_status_;
struct wl_seat *seat_;
private:

View File

@ -16,7 +16,7 @@ class Window : public waybar::ALabel {
virtual ~Window();
// Handlers for wayland events
void handle_focused_view(const char *title);
void handle_focused_view(const char *title, uint32_t);
void handle_focused_output(struct wl_output *output);
void handle_unfocused_output(struct wl_output *output);