forked from quickshell/quickshell
hyprland/global_shortcuts: add GlobalShortcut
This commit is contained in:
parent
87a884ca36
commit
bba8cb8a7d
14 changed files with 569 additions and 6 deletions
29
src/wayland/hyprland/global_shortcuts/CMakeLists.txt
Normal file
29
src/wayland/hyprland/global_shortcuts/CMakeLists.txt
Normal file
|
@ -0,0 +1,29 @@
|
|||
qt_add_library(quickshell-hyprland-global-shortcuts STATIC
|
||||
qml.cpp
|
||||
manager.cpp
|
||||
shortcut.cpp
|
||||
)
|
||||
|
||||
qt_add_qml_module(quickshell-hyprland-global-shortcuts
|
||||
URI Quickshell.Hyprland._GlobalShortcuts
|
||||
VERSION 0.1
|
||||
)
|
||||
|
||||
add_library(quickshell-hyprland-global-shortcuts-init OBJECT init.cpp)
|
||||
|
||||
wl_proto(quickshell-hyprland-global-shortcuts
|
||||
hyprland-global-shortcuts-v1
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/hyprland-global-shortcuts-v1.xml"
|
||||
)
|
||||
|
||||
target_link_libraries(quickshell-hyprland-global-shortcuts PRIVATE ${QT_DEPS} wayland-client)
|
||||
target_link_libraries(quickshell-hyprland-global-shortcuts-init PRIVATE ${QT_DEPS})
|
||||
|
||||
qs_pch(quickshell-hyprland-global-shortcuts)
|
||||
qs_pch(quickshell-hyprland-global-shortcutsplugin)
|
||||
qs_pch(quickshell-hyprland-global-shortcuts-init)
|
||||
|
||||
target_link_libraries(quickshell PRIVATE
|
||||
quickshell-hyprland-global-shortcutsplugin
|
||||
quickshell-hyprland-global-shortcuts-init
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue