Skip to content

NSTechBytes/sleek-power

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sleek Power ⚡

A sleek, modern, and highly customizable power utility widget for Novadesk.

Preview

Features

  • Dual Layout Styles:
    • Style 1 (Vertical): A compact vertical layout containing 3 standard power controls (Sleep, Shutdown, Restart).
    • Style 2 (Horizontal): A wide horizontal layout containing 4 power controls (Sleep, Shutdown, Restart, Lock) plus a live system uptime display.
  • 🌓 Dynamic Themes: Seamless Dark and Light theme integration.
  • 🎨 Adaptive Color Tinting: Icons automatically tint (white on dark, dark on light) to ensure flawless contrast and modern aesthetics.
  • 📏 Dynamic Scaling: Scale the widget from 50% to 200% via the context menu with crystal-clear rendering.
  • ⏱️ CPU Uptime Tracker: Displays system uptime below the horizontal layout in a user-friendly Xd xhrs. & xmins. format.
  • Interactive Quick Actions: Fast, reliable system actions communicating securely via IPC to execute OS-level commands (Sleep, Shutdown, Restart, Lock).
  • 💾 State Persistence: Remembers your theme, scaling, and layout style settings across restarts.

Installation

  1. Ensure Novadesk is installed on your computer. If not, download it from here.
  2. Download the latest .ndpkg of sleek-power from the releases.
  3. Install the package through your Novadesk application.
  4. The power widget will be added directly to your desktop.

Usage

  • Hover: Move your mouse over any power icon to reveal its label dynamically.
  • Click:
    • 💤 Sleep: Puts the computer to sleep.
    • 🛑 Shutdown: Shuts down the computer immediately.
    • 🔄 Restart: Reboots the computer immediately.
    • 🔒 Lock: Locks your active Windows workstation.
  • Right-Click: Access the desktop context menu to adjust:
    • Use Dark Mode: Instantly toggle between Dark and Light mode.
    • Style: Dynamically switch between Style 1 (Vertical) and Style 2 (Horizontal).
    • Scale: Choose between 50%, 75%, 100%, 125%, 150%, 175%, or 200% scale.
    • Close Widget: Exit the widget.

Configuration

Custom configuration is automatically synchronized and stored under your system's AppData directory: %AppData%/Novadesk/sleek-power/config.json

Technical Details

  • Platform: Novadesk Engine
  • Languages: JavaScript (Renderer & Main processes)
  • APIs Used: ipcMain/ipcRenderer, system.cpu (uptime), system.execute (OS quick actions)
  • License: Apache License 2.0

Author

Crafted with ❤️ by nstechbytes

About

A sleek, modern widget for monitoring system uptime and accessing power functions (Sleep, Shutdown, Restart, Lock).

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors