Versions in this module Expand all Collapse all v0 v0.2.0 May 5, 2024 Changes in this version type ConfigurationDebug + ColoredStdoutLogs bool type ConfigurationGeneral + DefaultCursorMonitor string v0.1.1 Apr 28, 2024 Changes in this version + var ColorValuePattern = regexp.MustCompile(regexp.MustCompile(`\s+`).ReplaceAllString(..., "")) + var GradientAnglePattern = regexp.MustCompile(`(\d+)deg`) + var ModKeyNames = map[string]ModKey + var ModMaskSeparator = regexp.MustCompile(`[^a-zA-Z0-9,]`) + var RootSection = "General" + func ParseColor(raw string) (color.RGBA, error) + func ParseEqualLine(line string, originalLine string, start Position) (ass Assignment, stmt Statement, customVar CustomVariable, isStatement bool, ...) + type Assignment struct + Key string + Position Position + Value Value + ValueRaw string + type Configuration struct + Animations ConfigurationAnimations + Binds ConfigurationBinds + CustomVariables map[string]string + Debug ConfigurationDebug + Decoration ConfigurationDecoration + Dwindle ConfigurationDwindle + General ConfigurationGeneral + Gestures ConfigurationGestures + Group ConfigurationGroup + Input ConfigurationInput + Master ConfigurationMaster + Misc ConfigurationMisc + OpenGL ConfigurationOpenGL + XWayland ConfigurationXWayland + type ConfigurationAnimations struct + Enabled bool + FirstLaunchAnimation bool + type ConfigurationBinds struct + AllowWorkspaceCycles bool + DisableKeybindGrabbing bool + FocusPreferredMethod int + IgnoreGroupLock bool + MovefocusCyclesFullscreen bool + PassMouseWhenBound bool + ScrollEventDelay int + WorkspaceBackAndForth bool + WorkspaceCenterOn int + type ConfigurationDebug struct + DamageBlink bool + DamageTracking int + DisableLogs bool + DisableScaleChecks bool + DisableTime bool + EnableStdoutLogs bool + ErrorLimit int + ManualCrash int + Overlay bool + SuppressErrors bool + WatchdogTimeout int + type ConfigurationDecoration struct + ActiveOpacity float32 + Blur ConfigurationDecorationBlur + ColShadow color.RGBA + ColShadowInactive color.RGBA + DimAround float32 + DimInactive bool + DimSpecial float32 + DimStrength float32 + DropShadow bool + FullscreenOpacity float32 + InactiveOpacity float32 + Rounding int + ScreenShader string + ShadowIgnoreWindow bool + ShadowOffset [2]float32 + ShadowRange int + ShadowRenderPower int + ShadowScale float32 + type ConfigurationDecorationBlur struct + Brightness float32 + Contrast float32 + Enabled bool + IgnoreOpacity bool + NewOptimizations bool + Noise float32 + Passes int + Popups bool + PopupsIgnorealpha float32 + Size int + Special bool + Vibrancy float32 + VibrancyDarkness float32 + Xray bool + type ConfigurationDwindle struct + DefaultSplitRatio float32 + ForceSplit int + NoGapsWhenOnly int + PermanentDirectionOverride bool + PreserveSplit bool + Pseudotile bool + SmartResizing bool + SmartSplit bool + SpecialScaleFactor float32 + SplitWidthMultiplier float32 + UseActiveForSplits bool + type ConfigurationGeneral struct + AllowTearing bool + ApplySensToRaw bool + Autogenerated bool + BorderSize int + ColActiveBorder GradientValue + ColInactiveBorder GradientValue + ColNogroupBorder GradientValue + ColNogroupBorderActive GradientValue + CursorInactiveTimeout int + ExtendBorderGrabArea int + GapsIn int + GapsOut int + GapsWorkspaces int + HoverIconOnBorder bool + Layout string + NoBorderOnFloating bool + NoCursorWarps bool + NoFocusFallback bool + ResizeCorner int + ResizeOnBorder bool + Sensitivity float32 + type ConfigurationGestures struct + WorkspaceSwipe bool + WorkspaceSwipeCancelRatio float32 + WorkspaceSwipeCreateNew bool + WorkspaceSwipeDirectionLock bool + WorkspaceSwipeDirectionLockThreshold int + WorkspaceSwipeDistance int + WorkspaceSwipeFingers int + WorkspaceSwipeForever bool + WorkspaceSwipeInvert bool + WorkspaceSwipeMinSpeedToForce int + WorkspaceSwipeTouch bool + WorkspaceSwipeUseR bool + type ConfigurationGroup struct + ColBorderActive GradientValue + ColBorderInactive GradientValue + ColBorderLockedActive GradientValue + ColBorderLockedInactive GradientValue + FocusRemovedWindow bool + Groupbar ConfigurationGroupGroupbar + InsertAfterCurrent bool + type ConfigurationGroupGroupbar struct + ColActive GradientValue + ColInactive GradientValue + ColLockedActive GradientValue + ColLockedInactive GradientValue + Enabled bool + FontFamily string + FontSize int + Gradients bool + Height int + Priority int + RenderTitles bool + Scrolling bool + TextColor color.RGBA + type ConfigurationInput struct + AccelProfile string + FloatSwitchOverrideFocus int + FollowMouse int + ForceNoAccel bool + KbFile string + KbLayout string + KbModel string + KbOptions string + KbRules string + KbVariant string + LeftHanded bool + MouseRefocus bool + NaturalScroll bool + NumlockByDefault bool + OffWindowAxisEvents int + RepeatDelay int + RepeatRate int + ResolveBindsBySym bool + ScrollButton int + ScrollButtonLock bool + ScrollFactor float32 + ScrollMethod string + ScrollPoints string + Sensitivity float32 + SpecialFallthrough bool + type ConfigurationMaster struct + AllowSmallSplit bool + AlwaysCenterMaster bool + DropAtCursor bool + InheritFullscreen bool + Mfact float32 + NewIsMaster bool + NewOnTop bool + NoGapsWhenOnly int + Orientation string + SmartResizing bool + SpecialScaleFactor float32 + type ConfigurationMisc struct + AllowSessionLockRestore bool + AlwaysFollowOnDnd bool + AnimateManualResizes bool + AnimateMouseWindowdragging bool + BackgroundColor color.RGBA + CloseSpecialOnEmpty bool + ColSplash color.RGBA + CursorZoomFactor float32 + CursorZoomRigid bool + DisableAutoreload bool + DisableHyprlandLogo bool + DisableSplashRendering bool + EnableHyprcursor bool + EnableSwallow bool + FocusOnActivate bool + ForceDefaultWallpaper int + HideCursorOnKeyPress bool + HideCursorOnTouch bool + InitialWorkspaceTracking int + KeyPressEnablesDpms bool + LayersHogKeyboardFocus bool + MouseMoveEnablesDpms bool + MouseMoveFocusesMonitor bool + NewWindowTakesOverFullscreen int + NoDirectScanout bool + RenderAheadOfTime bool + RenderAheadSafezone int + SplashFontFamily string + SuppressPortalWarnings bool + SwallowExceptionRegex string + SwallowRegex string + Vfr bool + Vrr int + type ConfigurationOpenGL struct + ForceIntrospection int + NvidiaAntiFlicker bool + type ConfigurationXWayland struct + ForceZeroScaling bool + UseNearestNeighbor bool + type CustomVariable struct + type GradientValue struct + Angle float32 + Stops []Value + type Keyword string + type ModKey int + const Mod2 + const Mod3 + const Mod5 + const ModAlt + const ModCaps + const ModControl + const ModShift + const ModSuper + type Position struct + Column int + Line int + func (p Position) LSP() protocol.Position + type Section struct + Assignments []Assignment + End Position + Name string + Start Position + Statements []Statement + Subsections []Section + Variables []CustomVariable + func Parse(input string) (Section, error) + func (r Section) LSPRange() protocol.Range + func (root Section) Decode() (Configuration, error) + func (s Section) WalkCustomVariables(f func(v *CustomVariable)) + func (s Section) WalkValues(f func(assignment *Assignment, v *Value)) + type Statement struct + Arguments []Value + Keyword Keyword + Position Position + type Value struct + Bool bool + Color color.RGBA + Custom string + End Position + Float float32 + Gradient GradientValue + Integer int + Kind ValueKind + Modmask []ModKey + Start Position + String string + Vec2 [2]float32 + func (v *Value) LSPColor() protocol.Color + func (v *Value) LSPRange() protocol.Range + func (v Value) GoValue() any + type ValueKind int + const Bool + const Color + const Custom + const Float + const Gradient + const Integer + const Modmask + const String + const Vec2 + func ValueKindFromString(s string) (ValueKind, error) + func (k ValueKind) LSPSymbol() protocol.SymbolKind