i3lock-color

The world's most popular non-default computer lockscreen.
Index Commits Files Refs README LICENSE
commit 02334d35ae279b67a50ba55af612d01c68095f34
parent 770006421e3fe52f42afe343d024138b81c91bcf
Author: Raymond Li <hi@raymond.li>
Date:   Tue,  4 Aug 2020 17:55:51 -0400

Fix for Arch

Diffstat:
M.gitignore | 1+
Mbuild.sh | 6+++---
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -3,6 +3,7 @@ i3lock
 tags
 *.swp
 *.gz
+/pam/i3lock
 
 ################################################################################
 # https://raw.githubusercontent.com/github/gitignore/master/Autotools.gitignore
diff --git a/build.sh b/build.sh
@@ -1,9 +1,9 @@
 #!/bin/bash
 autoreconf -fiv
 
-if [[ -f /etc/arch-release ]]
-    sed -i "/^#auth include system-auth/auth include system-auth" pam/i3lock
-    sed -i "/^auth include login/#auth include login" pam/i3lock
+if [[ -f /etc/arch-release ]]; then
+    sed -i "s/^#auth include system-auth/auth include system-auth/g" pam/i3lock
+    sed -i "s/^auth include login/#auth include login/g" pam/i3lock
 fi
 
 BUILD_DIR=build/