Skip to content

About

A customizable GNOME Shell desktop widget and top bar indicator counting down days, weeks, or Mondays until spring. 🌸

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

6 Commits

Folders and files

Repository files navigation

Spring Countdown (GNOME Shell Extension) 🌸

A customizable, modern desktop widget and top bar indicator for GNOME Shell (supporting versions 45 through 51 on Wayland and X11) that counts down the time left until the first day of spring (March 21st) or showcases the current warm season.

GNOME Shell Session License

Spring Countdown Widget & Preferences


✨ Features

  • πŸ–₯️ Interactive Desktop Widget:

    • Modern, glassy floating widget attached directly to the desktop wallpaper layer.
    • Fluid Drag & Drop: Move the widget anywhere across your workspace with left-click dragging.
    • Multi-Monitor Awareness: Automatically pins to the GNOME Primary Display or a specific monitor (Monitor 0, Monitor 1, etc.) using percentage-based relative coordinates. Works seamlessly across display connect/disconnect (hotplug) events.
    • Position Lock: Lock the widget in place from settings to avoid accidental movement.
  • ⏳ Flexible Countdown Units:

    • Mondays: β€œ22 Mondays until spring!” (Track the remaining work weeks).
    • Full Weeks: β€œ22 weeks until spring”.
    • Days: β€œ158 days until March 21st”.
  • 🎭 Customizable Subtitle Vibes:

    • Standard: Realistic time distance.
    • Minimalist: Brief and clean.
    • Endure the Gloom: Sarcastic survival counter for cold gray days.
    • Seasonal Blues: Witty seasonal depression tracker.
    • Nature & Bloom: Poetic anticipation of flowers, sunny mornings, and singing birds.
  • 🎨 Visual Customization & Theming:

    • HEX Accent Color: Set any custom HEX color (e.g. #4cd964, #ff79c6, #00e5ff) with built-in color picker and glowing text shadows.
    • Themes:
      • Modern Glassmorphism (frosted blur and subtle borders)
      • Solid Dark (deep contrast)
      • Emerald Spring (fresh vibrant green tone)
      • Minimal (borderless & lightweight)
    • Scale & Size: Standard (Normal), Large & Prominent (Large), or Huge Poster (Huge).
    • Header Badge: Toggle the top pill badge on/off.
  • 🌐 Multilingual Interface:

    • Real-time in-place language switching for both the desktop widget and preferences window.
    • Supported languages: English, Polish, German, and Spanish (with automatic system default detection).
  • πŸ” Top Bar Indicator:

    • Compact countdown pill on the top panel.
    • Clicking reveals a GNOME popup menu with status and direct access to extension preferences.
  • πŸƒ Seasonal Logic:

    • Spring (March 21 – June 21): Shows β€œSpring is here! πŸŒΈβ€.
    • Summer (June 22 – September 22): Shows β€œSummer is here! β˜€οΈβ€.
    • Autumn & Winter: Automatically starts countdown to the upcoming spring.
    • Optional mode: β€œAlways count down to next Spring”.

πŸš€ Installation

Automated Script

Clone the repository and run the included installer:

git clone https://github.com/piotrowskiadam/spring-countdown.git
cd spring-countdown
./install.sh

Enabling the Extension

In a Wayland session, GNOME Shell discovers new extensions on session login:

  1. Log out and log back in (or restart your session).
  2. Enable the extension:
    gnome-extensions enable [email protected]
  3. Open preferences to customize colors, language, and monitors:
    gnome-extensions prefs [email protected]

βš™οΈ Configuration & GSettings

The extension uses the GSettings schema org.gnome.shell.extensions.spring-countdown:

Key Type Default Description
countdown-unit string 'mondays' 'mondays', 'weeks', or 'days'
subtitle-preset string 'default' 'default', 'simple', 'grey-endure', 'depression', 'nature'
accent-color string '#4cd964' Custom HEX color for numbers and highlights
widget-theme string 'glass' 'glass', 'solid-dark', 'emerald', 'minimal'
widget-size string 'large' 'normal', 'large', 'huge'
subtitle-size string 'medium' 'small', 'medium', 'large', 'huge'
show-badge boolean true Toggle the header pill badge
show-desktop-widget boolean true Enable/disable desktop wallpaper widget
show-topbar-indicator boolean false Enable/disable top panel indicator
monitor-target string 'primary' 'primary' or monitor index ('0', '1', etc.)
language string 'system' 'system', 'en', 'pl', 'de', 'es'
lock-widget-position boolean false Prevent dragging the desktop widget
seasonal-behavior string 'seasons' 'seasons' or 'always-countdown'

πŸ› οΈ Project Structure

β”œβ”€β”€ calculator.js     # Season calculations, countdown algorithms, and i18n dictionaries
β”œβ”€β”€ extension.js      # Main GNOME Shell extension lifecycle, widget actor, and panel indicator
β”œβ”€β”€ prefs.js          # Libadwaita preferences window with live in-place localization
β”œβ”€β”€ stylesheet.css    # CSS styling, glassmorphism filters, themes, and sizing rules
β”œβ”€β”€ metadata.json     # GNOME extension metadata and version compatibility
β”œβ”€β”€ install.sh        # Schema compiler and installer script
β”œβ”€β”€ schemas/          # GSettings XML schema and compiled binary
β”œβ”€β”€ LICENSE           # MIT License
β”œβ”€β”€ AGENTS.md         # Architecture and guide for AI coding assistants
└── README.md         # Project overview and user documentation

πŸ“„ License

Distributed under the MIT License.

About

A customizable GNOME Shell desktop widget and top bar indicator counting down days, weeks, or Mondays until spring. 🌸

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages