hyprshell-hyprland-plugin 4.7.0

Plugin for hyprland, used to monitor keypresses
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <hyprland/src/plugins/PluginAPI.hpp>
#include <hyprland/src/desktop/LayerSurface.hpp>

#include "globals.h"

void onOpenLayerChange(const PHLLS &window, const bool open) {
    if (window->m_namespace.starts_with("hyprshell_")) {
        // if constexpr (HYPRSHELL_PRINT_DEBUG == 1) {
        //     HyprlandAPI::addNotification(PHANDLE, "Layer active: " + std::to_string(open), GREEN, 5000);
        // }
        LAYER_VISIBLE = open;
    }
}