aboutsummaryrefslogtreecommitdiff
path: root/home/bin/lock
blob: f75f4cbb7dee527ee1cc02dd0688d8122bf67f87 (plain) (blame)
1
2
3
4
5
6
7
#!/bin/bash

screenshot="$XDG_RUNTIME_DIR/.screen.png"

scrot "$screenshot" \
    && convert "$screenshot" -scale 5% -scale 2000% "$screenshot"
i3lock --nofork --image="$screenshot" --ignore-empty-password