Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 89 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,8 @@ muda = "0.17"
winreg = "0.55"
windows = { version = "0.62.2", features = ["Win32_Foundation", "Win32_UI_WindowsAndMessaging", "Win32_UI_Shell", "Win32_Graphics_Gdi", "Win32_Graphics_Dwm", "Win32_System_Threading", "Win32_UI_Accessibility", "Win32_System_Console"] }

[dev-dependencies]
serial_test = "3"

[build-dependencies]
tauri-winres = "0.3.5"
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Windows utility enabling Quake Mode behavior—any window slides in/out from scr
- 🖥️ **System tray** — Status, Untrack, Start with Windows, Exit
- 🔔 **Desktop notification** — Toast when window tracked
- 🚀 **Auto-launch** — Optional startup with Windows (Registry-based)
- 🖱️ **Edge trigger** — Show/hide by moving cursor to screen edge (toggleable)

## Installation

Expand All @@ -28,7 +29,7 @@ cargo install quake-modoki --locked
| `Ctrl+Alt+Q` | Track current window |
| `F8` | Toggle window visibility |

Tray icon menu: Untrack / Start with Windows / Exit
Tray icon menu: Untrack / Edge trigger / Start with Windows / Exit

## Development

Expand Down
4 changes: 4 additions & 0 deletions src/autolaunch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,18 @@ pub fn toggle() -> Result<bool, AutoLaunchError> {
#[cfg(test)]
mod tests {
use super::*;
use serial_test::serial;

#[test]
#[serial]
fn test_is_enabled_initially_false() {
// Clean up first
let _ = disable();
assert!(!is_enabled());
}

#[test]
#[serial]
fn test_enable_disable_cycle() {
// Clean state
let _ = disable();
Expand All @@ -82,6 +85,7 @@ mod tests {
}

#[test]
#[serial]
fn test_toggle() {
// Clean state
let _ = disable();
Expand Down
Loading