a lightweight, interval-based utility to combat digital strain through "Ma" (intentional pauses) for the eyes and body.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: gate linux-only imports, fix windows import

+4 -4
-1
src/idle/windows.rs
··· 1 1 use anyhow::Result; 2 2 use std::time::Duration; 3 - use windows::Win32::Foundation::GetLastError; 4 3 use windows::Win32::UI::Input::KeyboardAndMouse::{GetLastInputInfo, LASTINPUTINFO}; 5 4 6 5 use super::IdleDetector;
+2
src/overlay/mod.rs
··· 1 + #[cfg(target_os = "linux")] 1 2 pub mod layer_shell; 2 3 pub mod monitors; 3 4 pub mod multi_slint; ··· 8 9 use std::time::Duration; 9 10 10 11 use crate::config::AppConfig; 12 + #[cfg(target_os = "linux")] 11 13 use crate::overlay::session::SessionType; 12 14 use crate::timer::{ScheduledBreak, TimerCommand}; 13 15
+2 -3
src/system.rs
··· 53 53 #[cfg(target_os = "windows")] 54 54 mod platform { 55 55 pub fn is_dark() -> bool { 56 - use windows::{ 57 - Win32::Foundation::HKEY_CURRENT_USER, 58 - Win32::System::Registry::{RRF_RT_REG_DWORD, RegGetValueW}, 56 + use windows::Win32::System::Registry::{ 57 + HKEY_CURRENT_USER, RRF_RT_REG_DWORD, RegGetValueW, 59 58 }; 60 59 let mut val: u32 = 1; 61 60 let mut sz = std::mem::size_of::<u32>() as u32;