i3lock-color

The world's most popular non-default computer lockscreen.
Index Commits Files Refs README LICENSE
commit c7f887848384d10fed727b8ae5a7a6305a76080e
parent 3ce919eedc690e3e2f1aab4f5af4995dbb6c51fc
Author: Raymond Li <hi@raymond.li>
Date:   Sun, 14 Feb 2021 17:37:42 -0500

Combine Arch and Gentoo PAM config

Diffstat:
Mconfigure.ac | 13+++----------
1 file changed, 3 insertions(+), 10 deletions(-)
diff --git a/configure.ac b/configure.ac
@@ -76,16 +76,9 @@ AC_SEARCH_LIBS([ev_run], [ev], , [AC_MSG_FAILURE([cannot find the required ev_ru
 
 AC_SEARCH_LIBS([shm_open], [rt])
 
-# Use system-local-login instead of login on Arch
-if [[ -f /etc/arch-release ]]; then
-    echo "Using PAM for Arch"
-    sed -i "s/^#auth include system-local-login/auth include system-local-login/g" ../pam/i3lock
-    sed -i "s/^auth include login/#auth include login/g" ../pam/i3lock
-fi
-
-# Use system-local-login instead of login on Gentoo
-if [[ -f /etc/gentoo-release ]]; then
-    echo "Using PAM for Gentoo"
+# Use system-local-login instead of login on Arch and Gentoo
+if [[ -f /etc/arch-release ]] || [[ -f /etc/gentoo-release ]]; then
+    echo "Using PAM for Arch/Gentoo"
     sed -i "s/^#auth include system-local-login/auth include system-local-login/g" ../pam/i3lock
     sed -i "s/^auth include login/#auth include login/g" ../pam/i3lock
 fi