Compare commits
No commits in common. "6a1ba01ec1e6d1d131c4b303113e832c3b2ef6a3" and "2d07fdf98ccd2e903f0188af312cafed89629cca" have entirely different histories.
6a1ba01ec1
...
2d07fdf98c
1 changed files with 3 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
lock() {
|
lock() {
|
||||||
width_height=$(xdpyinfo | awk '/dimensions/ {print $2}')
|
width_height=$(xdpyinfo | awk '/dimensions/ {print $2}')
|
||||||
scrot - | convert - -scale 10% -blur 0x2.0 -resize "$width_height" RGB:- | i3lock --nofork --raw "$width_height":rgb --image /dev/stdin
|
scrot - | convert - -scale 80% -blur 0x2.0 -resize "$width_height" RGB:- | i3lock --nofork --raw "$width_height":rgb --image /dev/stdin
|
||||||
}
|
}
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
@ -13,10 +13,10 @@ logout)
|
||||||
i3-msg exit
|
i3-msg exit
|
||||||
;;
|
;;
|
||||||
suspend)
|
suspend)
|
||||||
systemctl suspend && lock
|
lock && systemctl suspend
|
||||||
;;
|
;;
|
||||||
hibernate)
|
hibernate)
|
||||||
systemctl hibernate && lock
|
lock && systemctl hibernate
|
||||||
;;
|
;;
|
||||||
reboot)
|
reboot)
|
||||||
systemctl reboot
|
systemctl reboot
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue