hyprlock icon indicating copy to clipboard operation
hyprlock copied to clipboard

Feature Request: On-Click Command Support in Hyprlock Widget

Open ashish-kus opened this issue 8 months ago • 9 comments

I hope this message finds you well. I am writing to request a new feature for Hyprlock that would significantly enhance its functionality and user experience.

Feature Request:

I would like to propose the addition of an on-click bash command feature within the widget in Hyprlock. This functionality would allow users to execute bash commands directly from the lockscreen, enabling actions such as shutdown, reboot, logout, and sleep with a single click.

Suggested Implementation:

  • Add an option in the widget configuration to specify bash commands for different on-click actions.
  • Ensure secure execution of these commands to prevent any potential misuse

Example configuration snippet:

widget_name {
monitor =
# further options
on-click = systemctl syspend 
}

ashish-kus avatar Jun 13 '24 13:06 ashish-kus