Skip to content

Conversation

@aditya-an1l
Copy link
Contributor

@aditya-an1l aditya-an1l commented May 22, 2025

Pull Request

Description

This PR introduces a new feature to Hyprlock that displays battery information (percentage and status) in the bottom right section of the lock screen.

  • Power.sh is a script that fetches the current battery level and status.

  • hyprlock.conf has been modified to include and display this data visually on the lock screen.

This change enhances usability for laptop users, allowing them to monitor power status without unlocking their device.

Dependencies

  • No external dependencies.
  • Relies on standard Linux power management interfaces (/sys/class/power_supply/).

Type of change

Please put an x in the boxes that apply:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update (non-breaking change; modified files are limited to the documentations)
  • Technical debt (a code change that does not fix a bug or add a feature but makes something clearer for devs)
  • Other (provide details below)

Checklist

Please put an x in the boxes that apply:

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My commit message follows the commit guidelines.
  • My change requires a change to the documentation.
  • I want to add something in Hyprland-Dots wiki.
  • I have added tests to cover my changes.
  • I have tested my code locally and it works as expected.
  • All new and existing tests passed.

Screenshots

IMG_20250522_112233

Additional context

  • Script added: config/hypr/scripts/Power.sh

  • Modified: config/hypr/hyprlock.conf

This is part of an effort to improve UX for portable device users. This feature allows laptop users to view power info when their device is locked, especially useful when the device is discharging.

- Display current power level (battery percentage) and power status
(full, charging, discharging) at the bottom right section of Hyprlock

 - This feature allows laptop user to view the power info when their
device are locked, especially if the device is getting discharged.
@aditya-an1l aditya-an1l changed the title feat: Add Power Info (level and status) in Hyprlock Window feat: Display battery level and power status on lock screen May 22, 2025
@JaKooLit JaKooLit changed the base branch from main to development May 25, 2025 18:16
@JaKooLit JaKooLit merged commit d9c558b into JaKooLit:development May 25, 2025
@JaKooLit
Copy link
Owner

c6c06f0

78a4639

Thanks for this

just some changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants