repo
stringlengths
6
65
file_url
stringlengths
81
311
file_path
stringlengths
6
227
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:31:58
2026-01-04 20:25:31
truncated
bool
2 classes
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/util/src/color.rs
crates/util/src/color.rs
// NOTE: GENERATED BY AI use cosmic_text::Color; use regex_lite::Regex; use std::num::{ParseFloatError, ParseIntError}; use thiserror::Error; #[derive(Debug, Error)] pub enum ParseColorError { #[error("invalid color name")] InvalidName, #[error("invalid hex format")] InvalidHex, #[error("invalid c...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/util/src/template/base.rs
crates/util/src/template/base.rs
use std::{borrow::Cow, collections::HashMap, fmt::Debug, rc::Rc}; use downcast_rs::Downcast; pub trait TemplateArgParser: Debug + Downcast { fn name(&self) -> &str; } downcast_rs::impl_downcast!(TemplateArgParser); pub trait TemplateArgProcesser: Debug { fn process(&self, param: &str) -> Result<Box<dyn Templa...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/util/src/template/mod.rs
crates/util/src/template/mod.rs
pub mod arg; pub mod base;
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/util/src/template/arg/ring_preset.rs
crates/util/src/template/arg/ring_preset.rs
use crate::template::base::{TemplateArgParser, TemplateArgProcesser}; pub const TEMPLATE_ARG_RING_PRESET: &str = "preset"; #[derive(Debug, Default, Clone)] pub struct TemplateArgRingPresetParser; impl TemplateArgRingPresetParser { pub fn parse(&self, arg: String) -> String { arg } } impl TemplateArgP...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/util/src/template/arg/mod.rs
crates/util/src/template/arg/mod.rs
mod float; mod ring_preset; pub use float::*; pub use ring_preset::*;
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/util/src/template/arg/float.rs
crates/util/src/template/arg/float.rs
use std::str::FromStr; use crate::template::base::{TemplateArgParser, TemplateArgProcesser}; pub const TEMPLATE_ARG_FLOAT: &str = "float"; #[derive(Debug, Clone)] pub struct TemplateArgFloatParser { precision: usize, multiply: Option<f64>, } impl Default for TemplateArgFloatParser { fn default() -> Self ...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/util/src/text/draw.rs
crates/util/src/text/draw.rs
use cairo::ImageSurface; use cosmic_text::{ Attrs, Buffer, Color, Family, FontSystem, LayoutRunIter, Metrics, Shaping, SwashCache, Weight, }; use crate::pre_multiply_and_to_little_endian_argb; use super::slide_font::include_slide_font; extern crate alloc; static FONT_SYSTEM: std::sync::LazyLock<std::sync::Mutex...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/util/src/text/slide_font.rs
crates/util/src/text/slide_font.rs
pub const FAMILY_NAME: &str = "WayEdges-Slide"; macro_rules! include_slide_font { () => { [ 0x4f, 0x54, 0x54, 0x4f, 0x00, 0x09, 0x00, 0x80, 0x00, 0x03, 0x00, 0x10, 0x43, 0x46, 0x46, 0x20, 0xa7, 0x4f, 0xdb, 0x3b, 0x00, 0x00, 0x08, 0x5c, 0x00, 0x00, 0x14, 0x99, 0x4f, 0x53,...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
true
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/util/src/text/mod.rs
crates/util/src/text/mod.rs
mod draw; pub mod slide_font; pub use draw::*;
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/backend/src/lib.rs
crates/backend/src/lib.rs
pub mod backlight; pub mod config_file_watch; pub mod ipc; pub mod pulseaudio; pub mod runtime; pub mod system; pub mod tray; pub mod workspace;
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/backend/src/system.rs
crates/backend/src/system.rs
use std::sync::{Arc, LazyLock, Mutex, MutexGuard}; use starship_battery::{Battery, State}; use sysinfo::{Disks, MemoryRefreshKind, System}; static SYSTEM: LazyLock<Arc<Mutex<System>>> = LazyLock::new(|| Arc::new(Mutex::new(System::new()))); fn get_system() -> MutexGuard<'static, System> { Mutex::lock(&SYSTEM).un...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/backend/src/runtime.rs
crates/backend/src/runtime.rs
use std::sync::atomic::AtomicPtr; use tokio::runtime::{Handle, LocalRuntime}; static LOCAL_RUNTIME: AtomicPtr<LocalRuntime> = AtomicPtr::new(std::ptr::null_mut()); static TASK_HANDLER: AtomicPtr<Handle> = AtomicPtr::new(std::ptr::null_mut()); pub fn get_backend_runtime() -> &'static LocalRuntime { unsafe { ...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/backend/src/config_file_watch.rs
crates/backend/src/config_file_watch.rs
use std::{sync::Arc, time::Duration}; use calloop::channel::Sender; use config::get_config_path; use futures_util::StreamExt; use inotify::{EventMask, Inotify, WatchMask}; use log::info; use crate::runtime::get_backend_runtime_handle; pub fn start_configuration_file_watcher(sender: Sender<()>) { get_backend_runt...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/backend/src/tray/event.rs
crates/backend/src/tray/event.rs
use std::sync::Arc; use system_tray::client::ActivateRequest; use crate::runtime::get_backend_runtime_handle; use super::{ context::{get_tray_context, TrayMap}, item::{Icon, RootMenu, Tray}, }; #[derive(Debug, Clone)] pub enum TrayEventSignal { Add(Arc<String>), Rm(Arc<String>), Update(Arc<Strin...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/backend/src/tray/mod.rs
crates/backend/src/tray/mod.rs
mod context; mod event; pub mod icon; pub mod item; pub use context::{ init_tray_client, register_tray, unregister_tray, TrayBackendHandle, TrayMap, TrayMsg, }; pub use event::{tray_about_to_show_menuitem, tray_active_request, TrayEventSignal};
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/backend/src/tray/item.rs
crates/backend/src/tray/item.rs
use std::{collections::HashMap, sync::Mutex}; use cairo::ImageSurface; use log::{error, warn}; use system_tray::{ item::{IconPixmap, StatusNotifierItem}, menu::MenuDiff, }; use super::icon::{ fallback_icon, parse_icon_given_data, parse_icon_given_name, parse_icon_given_pixmaps, IconThemeNameOrPath, };...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/backend/src/tray/context.rs
crates/backend/src/tray/context.rs
use std::{ borrow::Borrow, collections::HashMap, hash::Hash, sync::{ atomic::{AtomicBool, AtomicPtr}, Arc, Mutex, }, }; use calloop::channel::Sender; use system_tray::client::{Client, Event}; use crate::runtime::get_backend_runtime_handle; use super::{event::TrayEventSignal, item:...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/backend/src/tray/icon/freedesktop.rs
crates/backend/src/tray/icon/freedesktop.rs
use std::{path::PathBuf, sync::LazyLock}; static DEFAULT_ICON_THEME: LazyLock<Option<String>> = LazyLock::new(linicon_theme::get_icon_theme); pub fn fallback_icon(size: i32, theme: Option<&str>) -> Option<PathBuf> { let mut builder = freedesktop_icons::lookup("image-missing") .with_size(size as u16) ...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/backend/src/tray/icon/mod.rs
crates/backend/src/tray/icon/mod.rs
mod custom; mod freedesktop; use std::{io::Cursor, path::PathBuf}; use cairo::ImageSurface; use resvg::{tiny_skia, usvg}; use system_tray::item::IconPixmap; use util::{pre_multiply_and_to_little_endian_argb, Z}; pub fn parse_icon_given_data(vec: &Vec<u8>, size: i32) -> Option<ImageSurface> { ImageSurface::creat...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/backend/src/tray/icon/custom.rs
crates/backend/src/tray/icon/custom.rs
use std::{ collections::BTreeMap, ffi::OsStr, path::PathBuf, sync::{LazyLock, Mutex}, }; pub fn find_icon(icon_theme_path: &str, icon_name: &str) -> Option<PathBuf> { if let Some(path) = try_cached(icon_theme_path, icon_name) { return Some(path); } walkdir::WalkDir::new(icon_theme_...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/backend/src/backlight/dbus.rs
crates/backend/src/backlight/dbus.rs
use zbus::proxy; use zbus::Connection; use crate::backlight::match_device; use crate::runtime::get_backend_runtime_handle; // NOTE: this dbus proxy takes 2 threads // it'll create 1 thread which always on after first connection #[proxy(interface = "org.freedesktop.login1.Session")] trait BackLight { fn SetBrightn...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/backend/src/backlight/mod.rs
crates/backend/src/backlight/mod.rs
pub mod dbus; use std::{ borrow::Cow, collections::{HashMap, HashSet}, rc::Rc, sync::atomic::{AtomicBool, AtomicPtr, Ordering}, }; use blight::Device; use calloop::channel::Sender; use futures_util::StreamExt; use inotify::{Inotify, WatchDescriptor, WatchMask, Watches}; use crate::runtime::get_backen...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/backend/src/workspace/hypr.rs
crates/backend/src/workspace/hypr.rs
use std::{ collections::HashMap, num::ParseIntError, process, str::FromStr, sync::atomic::{AtomicBool, AtomicPtr}, }; use hyprland::{ data::{Monitor, Workspace}, event_listener::{self}, prelude::async_closure, shared::{HyprData, HyprDataActive, WorkspaceType}, }; use crate::{runtim...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/backend/src/workspace/mod.rs
crates/backend/src/workspace/mod.rs
use std::collections::HashMap; use calloop::channel::Sender; use hypr::HyprWorkspaceHandler; use niri::NiriWorkspaceHandler; pub mod hypr; pub mod niri; #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub struct WorkspaceData { /// workspace len, start from 1 pub workspace_count: i32, /// index, start from ...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/backend/src/workspace/niri/connection.rs
crates/backend/src/workspace/niri/connection.rs
use niri_ipc::{socket::SOCKET_PATH_ENV, Reply, Workspace}; use serde::Deserialize; use tokio::{ io::{self, AsyncBufReadExt, AsyncWriteExt, BufReader}, net::UnixStream, }; /// A compositor event. #[derive(Deserialize, Debug, Clone)] pub enum Event { /// The workspace configuration has changed. Workspace...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/backend/src/workspace/niri/mod.rs
crates/backend/src/workspace/niri/mod.rs
mod connection; use std::{ collections::HashMap, sync::atomic::{AtomicBool, AtomicPtr}, }; use config::widgets::workspace::NiriConf; use connection::{Connection, Event}; use tokio::io; use crate::runtime::get_backend_runtime_handle; use super::{WorkspaceCB, WorkspaceCtx, WorkspaceData, WorkspaceHandler, ID}...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/backend/src/ipc/mod.rs
crates/backend/src/ipc/mod.rs
mod listen; use std::{ io::Write, os::unix::net::UnixStream, path::{Path, PathBuf}, sync::OnceLock, }; pub use listen::start_ipc; use serde::{Deserialize, Serialize}; #[derive(Debug, Deserialize, Serialize)] pub struct CommandBody { #[serde(default)] pub command: String, #[serde(default)]...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/backend/src/ipc/listen.rs
crates/backend/src/ipc/listen.rs
use crate::ipc::{get_ipc_sock, IPC_COMMAND_RELOAD}; use crate::runtime::get_backend_runtime_handle; use super::{CommandBody, IPCCommand}; use super::{IPC_COMMAND_QUIT, IPC_COMMAND_TOGGLE_PIN}; use std::path::Path; use calloop::channel::Sender; use tokio::net::UnixStream; pub fn start_ipc(sender: Sender<IPCCommand>) ...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/backend/src/pulseaudio/change.rs
crates/backend/src/pulseaudio/change.rs
use libpulse_binding::{ context::Context, volume::{ChannelVolumes, Volume}, }; use crate::runtime::get_backend_runtime_handle; use super::{ get_pa, pa::{self, with_context}, PulseAudioDevice, }; pub fn get_default_sink() -> Option<&'static String> { get_pa().default_sink.as_ref() } pub fn get...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/backend/src/pulseaudio/mod.rs
crates/backend/src/pulseaudio/mod.rs
pub mod change; mod pa; use std::{ collections::{HashMap, HashSet}, sync::atomic::{AtomicBool, AtomicPtr, Ordering}, }; use calloop::channel::Sender; pub use pa::PulseAudioDevice; pub use pa::VInfo; use crate::runtime::get_backend_runtime_handle; #[derive(Default)] struct VInfoMap(HashMap<String, VInfo>); i...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/backend/src/pulseaudio/pa.rs
crates/backend/src/pulseaudio/pa.rs
use std::sync::atomic::{AtomicPtr, Ordering}; use libpulse_binding::{ self as pulse, callbacks::ListResult, context::{ introspect::{ServerInfo, SinkInfo, SourceInfo}, subscribe::{Facility, InterestMaskSet, Operation}, Context, FlagSet, }, volume::{ChannelVolumes, Volume}, };...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/way-edges-derive/src/lib.rs
crates/way-edges-derive/src/lib.rs
use proc_macro::{self, TokenStream}; use quote::{format_ident, quote}; use syn::{ parse_macro_input, punctuated::Punctuated, DeriveInput, LitStr, Meta, MetaNameValue, Token, }; #[proc_macro_derive(GetSize)] pub fn derive_size(input: TokenStream) -> TokenStream { let a: DeriveInput = syn::parse(input).unwrap();...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/mouse_state.rs
crates/frontend/src/mouse_state.rs
use smithay_client_toolkit::seat::pointer::{AxisScroll, PointerEvent, PointerEventKind}; #[derive(Debug, Clone)] pub enum MouseEvent { Press((f64, f64), u32), Release((f64, f64), u32), Enter((f64, f64)), Leave, Motion((f64, f64)), Scroll(AxisScroll, AxisScroll), // horizontal, vertical } #[der...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/lib.rs
crates/frontend/src/lib.rs
mod animation; mod buffer; // mod frame; mod mouse_state; pub mod widgets; // pub mod window; mod wayland; pub use wayland::mainloop::run_app;
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/buffer.rs
crates/frontend/src/buffer.rs
use cairo::ImageSurface; use util::draw::new_surface; #[derive(Clone, Debug, Default)] pub struct Buffer(Option<ImageSurface>); impl Buffer { pub fn update_buffer(&mut self, new: ImageSurface) { self.0.replace(new); } pub fn get_buffer(&self) -> ImageSurface { self.0.clone().unwrap_or(new_s...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/widgets/mod.rs
crates/frontend/src/widgets/mod.rs
use cairo::ImageSurface; use crate::{ mouse_state::{MouseEvent, MouseStateData}, wayland::app::WidgetBuilder, }; mod button; mod slide; mod workspace; mod wrapbox; pub trait WidgetContext: std::fmt::Debug { fn redraw(&mut self) -> ImageSurface; fn on_mouse_event(&mut self, data: &MouseStateData, even...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/widgets/workspace/event.rs
crates/frontend/src/widgets/workspace/event.rs
use smithay_client_toolkit::shell::wlr_layer::Anchor; use util::binary_search_within_range; use way_edges_derive::wrap_rc; type ItemLocation = Vec<[f64; 2]>; type MatchItemFunc = fn(&ItemLocation, (f64, f64)) -> isize; fn make_hover_match_func(edge: Anchor) -> MatchItemFunc { macro_rules! create_func { ($...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/widgets/workspace/draw.rs
crates/frontend/src/widgets/workspace/draw.rs
use cairo::{Context, ImageSurface}; use backend::workspace::WorkspaceData; use config::widgets::workspace::WorkspaceConfig; use cosmic_text::Color; use smithay_client_toolkit::shell::wlr_layer::Anchor; use util::{ color::{cairo_set_color, color_mix, color_transition}, draw::{draw_rect_path, new_surface}, Z...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/widgets/workspace/mod.rs
crates/frontend/src/widgets/workspace/mod.rs
mod draw; mod event; use std::{cell::Cell, rc::Rc}; use crate::{ mouse_state::{MouseEvent, MouseStateData}, wayland::app::WidgetBuilder, }; use backend::workspace::{ hypr::{register_hypr_event_callback, HyprConf}, niri::register_niri_event_callback, WorkspaceCB, WorkspaceData, WorkspaceHandler, };...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/widgets/slide/mod.rs
crates/frontend/src/widgets/slide/mod.rs
mod backlight; mod base; mod custom; mod pulseaudio; use crate::wayland::app::WidgetBuilder; use config::widgets::slide::base::SlideConfig; use super::WidgetContext; pub fn init_widget( builder: &mut WidgetBuilder, size: (i32, i32), mut w_conf: SlideConfig, ) -> Box<dyn WidgetContext> { w_conf ...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/widgets/slide/custom/mod.rs
crates/frontend/src/widgets/slide/custom/mod.rs
use cairo::ImageSurface; use interval_task::runner::Runner; use std::{cell::Cell, rc::Rc, time::Duration}; use config::{ shared::KeyEventMap, widgets::slide::{base::SlideConfig, preset::CustomConfig}, }; use util::{ shell::{shell_cmd, shell_cmd_non_block}, template::base::Template, }; use super::base:...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/widgets/slide/base/event.rs
crates/frontend/src/widgets/slide/base/event.rs
use std::cell::Cell; use std::rc::Rc; use crate::mouse_state::MouseEvent; use config::widgets::slide::base::SlideConfig; use smithay_client_toolkit::seat::pointer::BTN_LEFT; use smithay_client_toolkit::shell::wlr_layer::Anchor; fn make_translate_func(edge: Anchor) -> fn(i32, i32, (f64, f64)) -> f64 { macro_rules!...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/widgets/slide/base/draw.rs
crates/frontend/src/widgets/slide/base/draw.rs
use config::widgets::slide::base::SlideConfig; use cosmic_text::Color; use smithay_client_toolkit::shell::wlr_layer::Anchor; use util::color::{cairo_set_color, COLOR_BLACK}; use util::text::TextConfig; use std::f64::consts::PI; use cairo::{self, Context, ImageSurface, Path}; use util::draw::new_surface; use util::Z; ...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/widgets/slide/base/mod.rs
crates/frontend/src/widgets/slide/base/mod.rs
pub mod draw; pub mod event;
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/widgets/slide/backlight/mod.rs
crates/frontend/src/widgets/slide/backlight/mod.rs
use cairo::ImageSurface; use std::{cell::Cell, rc::Rc}; use super::base::{ draw::DrawConfig, event::{setup_event, ProgressState}, }; use crate::{ mouse_state::{MouseEvent, MouseStateData}, wayland::app::WidgetBuilder, widgets::{slide::base::event::ProgressDataf, WidgetContext}, }; use config::widg...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/widgets/slide/pulseaudio/mod.rs
crates/frontend/src/widgets/slide/pulseaudio/mod.rs
use cairo::ImageSurface; use cosmic_text::Color; use smithay_client_toolkit::seat::pointer::BTN_RIGHT; use std::sync::Arc; use std::{cell::Cell, rc::Rc}; use util::color::color_transition; use super::base::{ draw::DrawConfig, event::{setup_event, ProgressState}, }; use crate::widgets::slide::base::event::Progr...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/widgets/button/draw.rs
crates/frontend/src/widgets/button/draw.rs
use super::BtnConfig; use cosmic_text::Color; use smithay_client_toolkit::shell::wlr_layer::Anchor; use util::color::cairo_set_color; use std::f64::consts::PI; use cairo::{self, Context, ImageSurface, LinearGradient}; use util::draw::new_surface; use util::Z; // for top only #[derive(Debug)] pub struct DrawConfig { ...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/widgets/button/mod.rs
crates/frontend/src/widgets/button/mod.rs
mod draw; use crate::{ mouse_state::{MouseEvent, MouseStateData}, wayland::app::WidgetBuilder, }; use config::{shared::KeyEventMap, widgets::button::BtnConfig}; use draw::DrawConfig; use super::WidgetContext; pub fn init_widget( builder: &mut WidgetBuilder, size: (i32, i32), mut btn_config: BtnCo...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/widgets/wrapbox/box_traits.rs
crates/frontend/src/widgets/wrapbox/box_traits.rs
use std::{cell::Cell, fmt::Debug, rc::Rc}; use cairo::ImageSurface; use way_edges_derive::wrap_rc; use crate::{animation::AnimationList, buffer::Buffer, mouse_state::MouseEvent}; use super::grid::GridBox; pub type BoxedWidgetGrid = GridBox<BoxedWidgetCtxRc>; pub trait BoxedWidget: Debug { fn content(&mut self)...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/widgets/wrapbox/event.rs
crates/frontend/src/widgets/wrapbox/event.rs
use util::Or; use super::{ box_traits::{BoxedWidgetCtxRc, BoxedWidgetCtxRcWeak, BoxedWidgetGrid}, outlook::OutlookDraw, BoxContext, }; use crate::mouse_state::MouseEvent; /// last hover widget, for trigger mouse leave option for that widget. #[derive(Debug)] pub struct LastWidget { press_lock: bool, ...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/widgets/wrapbox/mod.rs
crates/frontend/src/widgets/wrapbox/mod.rs
mod box_traits; mod event; mod grid; mod outlook; mod widgets; use std::{cell::Cell, rc::Rc}; use crate::{ animation::{AnimationList, ToggleAnimationRc}, wayland::app::{App, WidgetBuilder}, }; use box_traits::{BoxedWidgetCtx, BoxedWidgetCtxRc, BoxedWidgetGrid}; use config::{shared::Curve, widgets::wrapbox::Bo...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/widgets/wrapbox/widgets/mod.rs
crates/frontend/src/widgets/wrapbox/widgets/mod.rs
pub mod ring; pub mod text; pub mod tray;
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/widgets/wrapbox/widgets/tray/draw.rs
crates/frontend/src/widgets/wrapbox/widgets/tray/draw.rs
use std::f64::consts::PI; use backend::tray::item::{MenuItem, MenuType, Tray}; use cairo::{Context, ImageSurface}; use config::widgets::wrapbox::tray::{MenuDrawConfig, TrayConfig}; use util::{ color::cairo_set_color, draw::new_surface, text::{draw_text, TextConfig}, Z, }; use super::item::{MenuState,...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/widgets/wrapbox/widgets/tray/module.rs
crates/frontend/src/widgets/wrapbox/widgets/tray/module.rs
use std::{collections::HashMap, sync::Arc}; use backend::tray::{item::Tray, TrayMap}; use cairo::ImageSurface; use config::widgets::wrapbox::tray::TrayConfig; use crate::{mouse_state::MouseEvent, widgets::wrapbox::grid::GridBox}; use super::item::TrayState; #[derive(Debug)] pub struct ModuleState { current_mou...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/widgets/wrapbox/widgets/tray/mod.rs
crates/frontend/src/widgets/wrapbox/widgets/tray/mod.rs
mod draw; mod item; mod layout; mod module; use std::{ cell::RefCell, rc::{Rc, Weak}, }; use backend::tray::{init_tray_client, register_tray, TrayBackendHandle, TrayMsg}; use config::widgets::wrapbox::tray::TrayConfig; use module::{new_tray_module, TrayModule}; use util::Or; use crate::{ mouse_state::Mou...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/widgets/wrapbox/widgets/tray/layout.rs
crates/frontend/src/widgets/wrapbox/widgets/tray/layout.rs
use backend::tray::item::{MenuItem, RootMenu, Tray}; use cairo::{Context, ImageSurface}; use config::widgets::wrapbox::tray::{HeaderMenuAlign, HeaderMenuStack, TrayConfig}; use util::{binary_search_end, draw::new_surface, Z}; use super::{ draw::{HeaderDrawArg, MenuDrawArg}, item::{MenuState, TrayState}, }; #...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/widgets/wrapbox/widgets/tray/item.rs
crates/frontend/src/widgets/wrapbox/widgets/tray/item.rs
use std::sync::Arc; use cairo::ImageSurface; use smithay_client_toolkit::seat::pointer::{BTN_LEFT, BTN_RIGHT}; use system_tray::client::ActivateRequest; use backend::tray::{ item::{MenuItem, RootMenu, Tray}, tray_about_to_show_menuitem, tray_active_request, }; use config::widgets::wrapbox::tray::TrayConfig; ...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/widgets/wrapbox/widgets/ring/draw.rs
crates/frontend/src/widgets/wrapbox/widgets/ring/draw.rs
use cairo::{Format, ImageSurface}; use config::widgets::wrapbox::ring::RingConfig; use cosmic_text::{Color, FamilyOwned}; use util::color::cairo_set_color; use util::draw::{draw_fan, new_surface}; use util::template::arg::{TemplateArgFloatParser, TEMPLATE_ARG_FLOAT}; use util::template::base::Template; use util::text:...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/widgets/wrapbox/widgets/ring/preset.rs
crates/frontend/src/widgets/wrapbox/widgets/ring/preset.rs
use calloop::channel::Sender; use interval_task::runner::Runner; use std::time::Duration; use backend::system::{get_battery_info, get_cpu_info, get_disk_info, get_ram_info, get_swap_info}; use config::widgets::wrapbox::ring::RingPreset; use util::shell::shell_cmd; #[allow(dead_code)] fn from_kb(total: u64, avaibale: ...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/widgets/wrapbox/widgets/ring/mod.rs
crates/frontend/src/widgets/wrapbox/widgets/ring/mod.rs
mod draw; mod preset; use std::cell::UnsafeCell; use std::rc::Rc; use cairo::ImageSurface; use config::shared::KeyEventMap; use draw::RingDrawer; use interval_task::runner::Runner; use config::widgets::wrapbox::ring::RingConfig; use preset::RunnerResult; use crate::mouse_state::MouseEvent; use crate::widgets::wrapb...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/widgets/wrapbox/widgets/text/draw.rs
crates/frontend/src/widgets/wrapbox/widgets/text/draw.rs
use cairo::ImageSurface; use config::widgets::wrapbox::text::TextConfig; use cosmic_text::{Color, FamilyOwned}; use util::text::draw_text; #[derive(Debug)] pub struct TextDrawer { pub fg_color: Color, pub font_family: FamilyOwned, pub font_pixel_size: i32, } impl TextDrawer { pub fn new(conf: &TextCon...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/widgets/wrapbox/widgets/text/mod.rs
crates/frontend/src/widgets/wrapbox/widgets/text/mod.rs
mod draw; use std::cell::UnsafeCell; use std::{rc::Rc, time::Duration}; use cairo::ImageSurface; use calloop::channel::Sender; use chrono::{Local, Utc}; use config::shared::KeyEventMap; use draw::TextDrawer; use interval_task::runner::Runner; use config::widgets::wrapbox::text::{TextConfig, TextPreset}; use util::sh...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/widgets/wrapbox/outlook/board.rs
crates/frontend/src/widgets/wrapbox/outlook/board.rs
use cairo::ImageSurface; use config::{ shared::NumOrRelative, widgets::wrapbox::{OutlookBoardConfig, OutlookMargins}, }; use cosmic_text::Color; use smithay_client_toolkit::shell::wlr_layer::Anchor; use util::{ color::{cairo_set_color, color_mix}, draw::{draw_rect_path, new_surface}, }; use super::Out...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/widgets/wrapbox/outlook/mod.rs
crates/frontend/src/widgets/wrapbox/outlook/mod.rs
use std::fmt::Debug; use cairo::ImageSurface; use config::{shared::NumOrRelative, widgets::wrapbox::Outlook}; use smithay_client_toolkit::shell::wlr_layer::Anchor; mod board; mod window; pub fn init_outlook(outlook: &Outlook, edge: Anchor, offset: NumOrRelative) -> Box<dyn OutlookDraw> { match outlook { ...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/widgets/wrapbox/outlook/window.rs
crates/frontend/src/widgets/wrapbox/outlook/window.rs
use cairo::ImageSurface; use config::{shared::NumOrRelative, widgets::wrapbox::{OutlookMargins, OutlookWindowConfig}}; use cosmic_text::Color; use smithay_client_toolkit::shell::wlr_layer::Anchor; use util::{ color::{cairo_set_color, color_mix}, draw::{draw_rect_path, new_surface}, Z, }; use super::Outloo...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/widgets/wrapbox/grid/builder.rs
crates/frontend/src/widgets/wrapbox/grid/builder.rs
use config::widgets::wrapbox::{Align, AlignFunc}; use super::{item::GridItemMap, GridBox}; pub struct GrideBoxBuilder<T> { ws: Vec<Vec<Option<T>>>, row_col_num: (usize, usize), } impl<T> GrideBoxBuilder<T> { pub fn new() -> Self { Self { ws: vec![], row_col_num: (0, 0), ...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/widgets/wrapbox/grid/mod.rs
crates/frontend/src/widgets/wrapbox/grid/mod.rs
pub mod builder; pub mod item; use cairo::{self, Format, ImageSurface}; use config::widgets::wrapbox::{Align, AlignFunc}; use item::GridItemMap; use util::binary_search_within_range; #[derive(Debug)] pub struct GridPositionMap { // use i32 to save memory total_size: (i32, i32), grid_cell_position_map: [Ve...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/widgets/wrapbox/grid/item.rs
crates/frontend/src/widgets/wrapbox/grid/item.rs
use core::fmt::Debug; #[derive(Debug)] pub struct GridItemMap<T> { pub items: Vec<T>, // record each row start index in `items` pub row_index: Vec<usize>, } impl<T> Default for GridItemMap<T> { fn default() -> Self { Self { items: Vec::default(), row_index: Vec::default(...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/wayland/app.rs
crates/frontend/src/wayland/app.rs
use std::{ collections::HashMap, mem, rc::Rc, sync::{atomic::AtomicPtr, Arc, Mutex, Weak}, time::Duration, }; use backend::ipc::IPCCommand; use calloop::{ channel::Sender, ping::{make_ping, Ping}, Idle, LoopHandle, LoopSignal, }; use config::{common::MonitorSpecifier, shared::Curve}; us...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/wayland/window_pop_state.rs
crates/frontend/src/wayland/window_pop_state.rs
use std::rc::Rc; use crate::animation::{ToggleAnimationRc, ToggleDirection}; #[derive(Debug)] pub struct WindowPopState { pinnale: bool, pin_with_key: bool, pin_key: u32, pub pin_state: bool, pub pop_state: Option<Rc<()>>, pub pop_animation: ToggleAnimationRc, } impl WindowPopState { pub f...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/wayland/draw.rs
crates/frontend/src/wayland/draw.rs
use config::{common::CommonConfig, shared::NumOrRelative}; use smithay_client_toolkit::shell::wlr_layer::Anchor; #[derive(Debug)] pub struct DrawCore { extra_trigger_size: i32, preview_size: NumOrRelative, visible_y_func: VisibleYFunc, pop_coordinate_func: PopCoordinateFunc, } impl DrawCore { pub ...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/wayland/mainloop.rs
crates/frontend/src/wayland/mainloop.rs
use std::time::Duration; use backend::{ config_file_watch::start_configuration_file_watcher, ipc::start_ipc, runtime::init_backend_runtime_handle, }; use calloop::EventLoop; use smithay_client_toolkit::{ compositor::CompositorState, output::OutputState, reexports::calloop_wayland_source::WaylandSou...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/wayland/implement.rs
crates/frontend/src/wayland/implement.rs
use smithay_client_toolkit::{ compositor::{CompositorHandler, SurfaceData as SctkSurfaceData}, delegate_compositor, delegate_layer, delegate_output, delegate_pointer, delegate_registry, delegate_seat, delegate_shm, delegate_simple, output::{OutputHandler, OutputState}, reexports::protocols::wp::{ ...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/wayland/mod.rs
crates/frontend/src/wayland/mod.rs
pub mod app; mod draw; mod implement; pub mod mainloop; mod window_pop_state;
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/animation/base.rs
crates/frontend/src/animation/base.rs
use std::time::{Duration, Instant}; use config::shared::Curve; #[derive(Debug)] pub(super) struct Animation { pub start_time: Instant, pub animation_costs: Duration, get_y: fn(f64) -> f64, get_x: fn(f64) -> f64, cache_y: f64, } impl Animation { pub(super) fn new(time_cost: Duration, curve: Cu...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/animation/list.rs
crates/frontend/src/animation/list.rs
use std::{collections::HashSet, time::Duration}; use config::shared::Curve; use super::{ToggleAnimation, ToggleAnimationRc}; // use way_edges_derive::wrap_rc; // #[wrap_rc(rc = "pub", normal = "pub")] #[derive(Debug)] pub struct AnimationList { inner: HashSet<ToggleAnimationRc>, } impl AnimationList { pub f...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/frontend/src/animation/mod.rs
crates/frontend/src/animation/mod.rs
mod base; mod list; use std::{hash::Hash, ops::Not, rc::Rc, time::Duration}; use config::shared::Curve; use way_edges_derive::wrap_rc; use base::Animation; pub use list::AnimationList; // pub use list::{AnimationList, AnimationListRc}; #[derive(Debug, Copy, Clone, PartialEq, Eq)] pub enum ToggleDirection { Forw...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/config/src/lib.rs
crates/config/src/lib.rs
pub mod common; pub mod shared; pub mod widgets; use schemars::{schema_for, JsonSchema}; use serde::Deserialize; use std::{ fs::OpenOptions, io::Read, path::{Path, PathBuf}, sync::OnceLock, }; pub use crate::common::CommonConfig; pub use crate::widgets::WidgetConfig; static CONFIG_PATH: OnceLock<Pat...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/config/src/common.rs
crates/config/src/common.rs
use schemars::json_schema; use serde::Deserializer; use smithay_client_toolkit::shell::wlr_layer::{Anchor, Layer}; use schemars::JsonSchema; use std::collections::HashSet; use serde::Deserialize; use crate::shared::{Curve, NumOrRelative}; #[derive(Debug, Clone, Eq, PartialEq)] pub enum MonitorSpecifier { ID(usi...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/config/src/shared.rs
crates/config/src/shared.rs
use cosmic_text::{Color, FamilyOwned}; use regex_lite::Regex; use schemars::{json_schema, JsonSchema}; use serde::{self, Deserialize, Deserializer, Serialize}; use serde_jsonrc::Value; use smithay_client_toolkit::shell::wlr_layer::Anchor; use std::collections::HashMap; use std::str::FromStr; use util::{color::parse_col...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/config/src/widgets/button.rs
crates/config/src/widgets/button.rs
use crate::shared::{color_translate, schema_color, CommonSize, KeyEventMap}; use cosmic_text::Color; use educe::Educe; use schemars::JsonSchema; use serde::Deserialize; use util::color::{parse_color, COLOR_BLACK}; use way_edges_derive::{const_property, GetSize}; use schemars::Schema; use serde_json::Value; #[derive(E...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/config/src/widgets/workspace.rs
crates/config/src/widgets/workspace.rs
use crate::shared::{ color_translate, option_color_translate, schema_color, schema_optional_color, CommonSize, Curve, }; use cosmic_text::Color; use schemars::Schema; use schemars::{json_schema, JsonSchema}; use serde::{Deserialize, Deserializer}; use serde_json::Value; use util::color::parse_color; use way_edges_...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/config/src/widgets/mod.rs
crates/config/src/widgets/mod.rs
use button::BtnConfig; use schemars::JsonSchema; use serde::Deserialize; use slide::base::SlideConfig; use workspace::WorkspaceConfig; use wrapbox::BoxConfig; pub mod button; pub mod slide; pub mod workspace; pub mod wrapbox; #[derive(Debug, Deserialize, JsonSchema, Clone)] #[serde(rename_all = "kebab-case", tag = "t...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/config/src/widgets/slide/base.rs
crates/config/src/widgets/slide/base.rs
use cosmic_text::Color; use educe::Educe; use schemars::JsonSchema; use serde::Deserialize; use util::color::parse_color; use way_edges_derive::{const_property, GetSize}; use crate::shared::{ color_translate, option_color_translate, schema_color, schema_optional_color, CommonSize, }; use super::preset::Preset; u...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/config/src/widgets/slide/preset.rs
crates/config/src/widgets/slide/preset.rs
use cosmic_text::Color; use schemars::JsonSchema; use serde::{Deserialize, Deserializer}; use util::{ color::COLOR_BLACK, template::{ arg::TemplateArgFloatProcesser, base::{Template, TemplateProcesser}, }, }; use crate::shared::{ color_translate, option_color_translate, schema_color, sc...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/config/src/widgets/slide/mod.rs
crates/config/src/widgets/slide/mod.rs
pub mod base; pub mod preset;
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/config/src/widgets/wrapbox/tray.rs
crates/config/src/widgets/wrapbox/tray.rs
use cosmic_text::{Color, FamilyOwned}; use educe::Educe; use schemars::JsonSchema; use serde::Deserialize; use util::color::COLOR_WHITE; use super::Align; use crate::shared::{ color_translate, dt_family_owned, option_color_translate, schema_color, schema_optional_color, FamilyOwnedRef, }; #[derive(Debug, Dese...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/config/src/widgets/wrapbox/text.rs
crates/config/src/widgets/wrapbox/text.rs
use cosmic_text::{Color, FamilyOwned}; use educe::Educe; use schemars::JsonSchema; use serde::Deserialize; use util::color::COLOR_BLACK; use crate::shared::{color_translate, dt_family_owned, schema_color, FamilyOwnedRef, KeyEventMap}; #[derive(Educe, Deserialize, JsonSchema, Clone)] #[educe(Debug)] #[serde( renam...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/config/src/widgets/wrapbox/ring.rs
crates/config/src/widgets/wrapbox/ring.rs
use crate::shared::{ color_translate, dt_family_owned, schema_color, schema_optional_template, Curve, FamilyOwnedRef, KeyEventMap, }; use cosmic_text::{Color, FamilyOwned}; use schemars::JsonSchema; use serde::{Deserialize, Deserializer}; use util::color::parse_color; use util::template::{ arg::{TemplateArg...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
way-edges/way-edges
https://github.com/way-edges/way-edges/blob/03a9091642ad39345115223890000481eeac8333/crates/config/src/widgets/wrapbox/mod.rs
crates/config/src/widgets/wrapbox/mod.rs
pub mod ring; pub mod text; pub mod tray; use cosmic_text::Color; use ring::RingConfig; use schemars::JsonSchema; use serde::Deserialize; use text::TextConfig; use tray::TrayConfig; use util::color::parse_color; use way_edges_derive::const_property; use crate::shared::{color_translate, schema_color}; // ============...
rust
MIT
03a9091642ad39345115223890000481eeac8333
2026-01-04T20:25:15.177432Z
false
alexpasmantier/grip-grab
https://github.com/alexpasmantier/grip-grab/blob/831a5646dd030785b6ea32c1c3ceb0f33b989779/src/fs.rs
src/fs.rs
use ignore::{types::TypesBuilder, Error, WalkBuilder}; use std::path::{Path, PathBuf}; pub fn walk_builder( paths: Vec<&Path>, ignored_paths: &[PathBuf], n_threads: usize, respect_gitignore: bool, filter_filetypes: &[String], ) -> WalkBuilder { let mut builder = WalkBuilder::new(paths[0]); ...
rust
Apache-2.0
831a5646dd030785b6ea32c1c3ceb0f33b989779
2026-01-04T20:25:24.435580Z
false
alexpasmantier/grip-grab
https://github.com/alexpasmantier/grip-grab/blob/831a5646dd030785b6ea32c1c3ceb0f33b989779/src/cli.rs
src/cli.rs
use std::path::PathBuf; use crate::{printer::PrintMode, utils}; use clap::{ArgAction, Parser, Subcommand}; #[derive(Parser, Debug)] #[command(name = "grip-grab")] #[command(bin_name = "gg")] #[command(version, about = "A faster, more lightweight ripgrep alternative for day to day usecases.", long_about = None, arg_re...
rust
Apache-2.0
831a5646dd030785b6ea32c1c3ceb0f33b989779
2026-01-04T20:25:24.435580Z
false
alexpasmantier/grip-grab
https://github.com/alexpasmantier/grip-grab/blob/831a5646dd030785b6ea32c1c3ceb0f33b989779/src/search.rs
src/search.rs
#![allow(clippy::module_name_repetitions)] use std::{fmt, io}; use std::{path::PathBuf, slice::Iter}; use grep::{ matcher::{Match, Matcher}, regex::{self, RegexMatcher, RegexMatcherBuilder}, searcher::{sinks::UTF8, Searcher, SearcherBuilder}, }; use serde::Serialize; #[derive(Debug, Serialize, Clone)] pub...
rust
Apache-2.0
831a5646dd030785b6ea32c1c3ceb0f33b989779
2026-01-04T20:25:24.435580Z
false
alexpasmantier/grip-grab
https://github.com/alexpasmantier/grip-grab/blob/831a5646dd030785b6ea32c1c3ceb0f33b989779/src/printer.rs
src/printer.rs
use devicons::FileIcon; use std::{ env::current_dir, fmt, io::{IsTerminal, Result, Write}, path::{Path, PathBuf}, }; use termcolor::{Buffer, BufferWriter, Color, ColorChoice, ColorSpec, WriteColor}; use crate::search::{FileResults, SearchResult}; use std::io::stdout; #[derive(Debug, Eq, PartialEq)] pu...
rust
Apache-2.0
831a5646dd030785b6ea32c1c3ceb0f33b989779
2026-01-04T20:25:24.435580Z
false
alexpasmantier/grip-grab
https://github.com/alexpasmantier/grip-grab/blob/831a5646dd030785b6ea32c1c3ceb0f33b989779/src/upgrade.rs
src/upgrade.rs
use termcolor::{Color, ColorChoice, ColorSpec, StandardStream, WriteColor}; #[cfg(not(feature = "upgrade"))] pub fn upgrade_gg(_force: bool) { let mut colored_stdout = StandardStream::stdout(ColorChoice::Always); colored_stdout .set_color(ColorSpec::new().set_fg(Some(Color::Red)).set_italic(true)) ...
rust
Apache-2.0
831a5646dd030785b6ea32c1c3ceb0f33b989779
2026-01-04T20:25:24.435580Z
false
alexpasmantier/grip-grab
https://github.com/alexpasmantier/grip-grab/blob/831a5646dd030785b6ea32c1c3ceb0f33b989779/src/utils.rs
src/utils.rs
use std::path::{Path, PathBuf}; pub fn resolve_paths(paths: Vec<PathBuf>) -> Vec<PathBuf> { paths.into_iter().map(|pb| resolve_path(&pb)).collect() } pub fn resolve_path(path: &Path) -> PathBuf { path.canonicalize().unwrap() }
rust
Apache-2.0
831a5646dd030785b6ea32c1c3ceb0f33b989779
2026-01-04T20:25:24.435580Z
false
alexpasmantier/grip-grab
https://github.com/alexpasmantier/grip-grab/blob/831a5646dd030785b6ea32c1c3ceb0f33b989779/src/main.rs
src/main.rs
use std::io::{self, stdin, Read}; use std::path::PathBuf; use std::sync::{mpsc, Arc}; use clap::Parser; use cli::Commands; use fs::is_readable_stdin; use grep::regex::{self, RegexMatcher}; use ignore::DirEntry; use printer::PrinterConfig; use search::{build_searcher, search_reader}; use thiserror::Error; use upgrade:...
rust
Apache-2.0
831a5646dd030785b6ea32c1c3ceb0f33b989779
2026-01-04T20:25:24.435580Z
false
google/rust_icu
https://github.com/google/rust_icu/blob/acdee0b194d408c598b6d2f0ccf9d2b87204de87/rust_icu_release/src/lib.rs
rust_icu_release/src/lib.rs
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
rust
Apache-2.0
acdee0b194d408c598b6d2f0ccf9d2b87204de87
2026-01-04T20:25:24.845005Z
false
google/rust_icu
https://github.com/google/rust_icu/blob/acdee0b194d408c598b6d2f0ccf9d2b87204de87/rust_icu_udat/build.rs
rust_icu_udat/build.rs
// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
rust
Apache-2.0
acdee0b194d408c598b6d2f0ccf9d2b87204de87
2026-01-04T20:25:24.845005Z
false
google/rust_icu
https://github.com/google/rust_icu/blob/acdee0b194d408c598b6d2f0ccf9d2b87204de87/rust_icu_udat/src/lib.rs
rust_icu_udat/src/lib.rs
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
rust
Apache-2.0
acdee0b194d408c598b6d2f0ccf9d2b87204de87
2026-01-04T20:25:24.845005Z
false