Skip to content

Archlinux+Hyprland+Hyprlock Lock screen automatically when you leave.

License

Notifications You must be signed in to change notification settings

canmi21/hypraway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hypraway

hypraway is a tool to automatically lock your screen when you leave, and it integrates seamlessly with Hyprland and Wayland compositors.

Installation

You can install hypraway from the AUR (Arch User Repository) using yay or any other AUR helper:

yay -S hypraway

Alternatively, you can manually clone the AUR repository and build it:

git clone https://aur.archlinux.org/packages/hypraway.git
cd hypraway
makepkg -si

Dependencies

  • glibc
  • hyprland
  • hyprlock
  • swayidle
  • cargo (for building the package)

Configuration

Once installed, you need to add hypraway to your Hyprland configuration. You can do this by adding the following line to your hyprland.conf:

exec-once = hypraway &

This will start hypraway automatically when your session starts.

Usage

Once running, hypraway will monitor your system and automatically lock the screen or hibernate the machine based on the defined timeout levels. You can modify the configuration file located at:

~/.config/hypr/hypraway.conf

Example:

You can customize your hypraway settings for different power modes (AC, battery) and timeouts. The default configuration has 3 levels for both AC and battery:

  • Level 1: Timeout of 600 seconds, and it will display a notification.
  • Level 2: Timeout of 1200 seconds, and it will lock the screen using hyprlock.
  • Level 3: Timeout of 0 seconds, and it will hibernate the system.

Feel free to adjust the timeouts and commands to suit your needs.

Links