aboutsummarylogtreecommitdiffstats
path: root/README.md
blob: c30cd6436582bc6522437427df3661b048d3b143 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# nicelock

Shell script for making i3lock look nice.

Run with `nicelock`.

## Notifications

`nicelock` will automatically suspend dunst notifications and show a notification when locking.

## Automatic locking

Example using `xss-lock`

```sh
xss-lock -- /usr/bin/nicelock
```

Place this is your `.xinitrc` or spawn it in your window manager like this in `xmonad`:

```hs
myStartupHook = do
    ...
    spawnOnce "xss-lock -- /usr/bin/nicelock"
    ...
    defaults = def {
    ...
    startupHook        = myStartupHook
    }
```