From 9e0832ac85c1a381c5d33ddd6ab23ad2fc557be5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Grondek?= Date: Mon, 4 Nov 2019 14:33:10 +0100 Subject: [PATCH] [i3] Added xautolock --- i3/Makefile | 3 ++- i3/config | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/i3/Makefile b/i3/Makefile index bfd2f42..1f6e537 100644 --- a/i3/Makefile +++ b/i3/Makefile @@ -2,11 +2,12 @@ REQUIRED_BINS=\ /usr/bin/i3 \ /usr/bin/i3blocks \ /usr/bin/i3lock \ + /usr/bin/xautolock \ /usr/bin/dunst \ /usr/bin/compton \ /usr/bin/numlockx \ /usr/bin/gedit -PACKAGES=i3 i3blocks i3lock dunst compton numlockx gedit +PACKAGES=i3 i3blocks i3lock dunst compton numlockx gedit xautolock I3_CONFIG=config I3_CONFIG_OUT=$(HOME)/.config/i3/config diff --git a/i3/config b/i3/config index 605c177..05f004e 100644 --- a/i3/config +++ b/i3/config @@ -221,6 +221,9 @@ exec --no-startup-id compton --config ~/.config/compton.conf -b # polkit for authentication as root exec --no-startup-id /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 +# autolock +exec xautolock -time 5m -locker ~/bin/lock -notify 10s + # Shortcuts bindsym Mod4+F1 exec firefox bindsym Mod4+F2 exec nautilus