Skip to content

Commit

Permalink
Update for screen lock
Browse files Browse the repository at this point in the history
  • Loading branch information
clsty committed Feb 6, 2025
1 parent f70fc98 commit 2ae75ff
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions src/content/docs/en/i-i/03.config.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,35 @@ gsettings set org.gnome.desktop.interface font-name 'FONT_NAME FONT_SIZE'
gsettings set org.gnome.desktop.interface font-name 'Rubik 11'
```

## Configure Lock screen
## Configure Screen Lock
### Auto Screen Lock
Reference: [Hyprland Wiki](https://wiki.hyprland.org/Hypr-Ecosystem/hypridle/)

Edit `~/.config/hypr/hypridle.conf` to your needs.
### Custom Hyprlock
Reference: [Hyprland Wiki](https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock/)

Edit `~/.config/hypr/hyprlock.conf`.
Hyprlock is the default screenlock provider.

Edit `~/.config/hypr/hyprlock.conf` as you want.

For example, to set the date and time format, change the value of the `text` **which corresponds to the lock**.
### Use another screenlock provider
Reference: [Arch Wiki](https://wiki.archlinux.org/title/Session_lock)

Take `swaylock` as example.

Edit `~/.config/hypr/hypridle.conf` and modify the value of `$lock_cmd` as follows:
```conf
$lock_cmd = swaylock
```
And ensure hypridle is running (typically it should autostart if you have `exec-once = hypridle` in Hyprland config).

As a result, `loginctl lock-session` will call `swaylock` to lock the screen.

:::note[How]
The command `loginctl lock-session` will send signal to the running `hypridle` process, and then `hypridle` will trigger the command from the value of `$lock_cmd`.
:::

## Cloudflare WARP
- This might help you bypass your ISP's restrictions and provide a faster internet
Expand Down

0 comments on commit 2ae75ff

Please sign in to comment.