mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 22:12:53 +01:00
This commit makes it possible to send commands from the bar by using the mouse/touchpad/touchscreen. Komorebi or custom commands can be sent by clicking on the mouse's primary, secondary, middle, back or forward buttons. As the primary single click is already used by widgets, only primary double clicks can send commands. This limitation is due to Egui also triggering 2 single clicks before a double click is triggered. Egui does not have an implementation for stopping event propagation out of the box and would be too much work to include. Similarly, commands can be sent on every "tick" of mouse scrolling, touchpad or touchscreen swiping in any of the 4 directions. This "tick" can be adjusted to fit user's preference. This is due to the fact, that Egui does not have an event for when a mouse "tick" occurs. It instead gives a number of points that the user scrolled/swiped on each frame. PR: #1403
78 lines
2.0 KiB
TOML
78 lines
2.0 KiB
TOML
[workspace]
|
|
|
|
resolver = "2"
|
|
members = [
|
|
"komorebi",
|
|
"komorebi-client",
|
|
"komorebi-gui",
|
|
"komorebic",
|
|
"komorebic-no-console",
|
|
"komorebi-bar",
|
|
"komorebi-themes",
|
|
"komorebi-shortcuts"
|
|
]
|
|
|
|
[workspace.dependencies]
|
|
clap = { version = "4", features = ["derive", "wrap_help"] }
|
|
chrono-tz = "0.10"
|
|
chrono = "0.4"
|
|
crossbeam-channel = "0.5"
|
|
crossbeam-utils = "0.8"
|
|
color-eyre = "0.6"
|
|
eframe = "0.31"
|
|
egui_extras = "0.31"
|
|
dirs = "6"
|
|
dunce = "1"
|
|
hotwatch = "0.5"
|
|
schemars = "0.8"
|
|
lazy_static = "1"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = { package = "serde_json_lenient", version = "0.2" }
|
|
serde_yaml = "0.9"
|
|
strum = { version = "0.27", features = ["derive"] }
|
|
tracing = "0.1"
|
|
tracing-appender = "0.2"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
parking_lot = "0.12"
|
|
paste = "1"
|
|
sysinfo = "0.34"
|
|
uds_windows = "1"
|
|
win32-display-data = { git = "https://github.com/LGUG2Z/win32-display-data", rev = "a28c6559a9de2f92c142a714947a9b081776caca" }
|
|
windows-numerics = { version = "0.2" }
|
|
windows-implement = { version = "0.60" }
|
|
windows-interface = { version = "0.59" }
|
|
windows-core = { version = "0.61" }
|
|
shadow-rs = "1"
|
|
which = "7"
|
|
|
|
[workspace.dependencies.windows]
|
|
version = "0.61"
|
|
features = [
|
|
"Foundation_Numerics",
|
|
"Win32_Devices",
|
|
"Win32_Devices_Display",
|
|
"Win32_System_Com",
|
|
"Win32_UI_Shell_Common", # for IObjectArray
|
|
"Win32_Foundation",
|
|
"Win32_Globalization",
|
|
"Win32_Graphics_Dwm",
|
|
"Win32_Graphics_Gdi",
|
|
"Win32_Graphics_Direct2D",
|
|
"Win32_Graphics_Direct2D_Common",
|
|
"Win32_Graphics_Dxgi_Common",
|
|
"Win32_System_LibraryLoader",
|
|
"Win32_System_Power",
|
|
"Win32_System_RemoteDesktop",
|
|
"Win32_System_Threading",
|
|
"Win32_UI_Accessibility",
|
|
"Win32_UI_HiDpi",
|
|
"Win32_UI_Input_KeyboardAndMouse",
|
|
"Win32_UI_Shell",
|
|
"Win32_UI_Shell_Common",
|
|
"Win32_UI_WindowsAndMessaging",
|
|
"Win32_System_SystemServices",
|
|
"Win32_System_WindowsProgramming",
|
|
"Media",
|
|
"Media_Control"
|
|
]
|