View | Details | Raw Unified | Return to bug 257715 | Differences between
and this patch

Collapse All | Expand All

(-)b/b/Makefile (-5 / +6 lines)
Lines 7-17 COMMENT= Lockscreen with a prettier style Link Here
7
7
8
LICENSE=	MIT
8
LICENSE=	MIT
9
9
10
RUN_DEPENDS=	$(LOCALBASE)/bash:shells/bash \
10
RUN_DEPENDS=	bash:shells/bash \
11
		$(LOCALBASE)/dunst:sysutils/dunst \
11
		dunst:sysutils/dunst \
12
		$(LOCALBASE)/feh:graphics/feh \
12
		feh:graphics/feh \
13
		$(LOCALBASE)/i3lock:x11/i3lock-color \
13
		grep:textproc/gnugrep \
14
		$(LOCALBASE)/convert:graphics/ImageMagick7
14
		i3lock:x11/i3lock-color \
15
		convert:graphics/ImageMagick7
15
16
16
CONFLICTS_INSTALL=	i3lock-[0-9]*
17
CONFLICTS_INSTALL=	i3lock-[0-9]*
17
18
(-)b/b/files/patch-betterlockscreen (+29 lines)
Added Link Here
1
--- betterlockscreen
2
+++ betterlockscreen
3
@@ -303,7 +303,7 @@ logical_px() {
4
     local dpi
5
 
6
     # use DPI set by user in .Xresources
7
-    dpi=$(xrdb -q | grep -oP '^\s*Xft.dpi:\s*\K\d+' | bc)
8
+    dpi=$(xrdb -q | /usr/local/bin/grep -oP '^\s*Xft.dpi:\s*\K\d+' | bc)
9
 
10
     # or get dpi value from xdpyinfo
11
     if [ -z "$dpi" ]; then
12
@@ -329,7 +329,7 @@ logical_px() {
13
 
14
 # get total resolution, sets $TOTAL_SIZE
15
 get_total_size () {
16
-    TOTAL_SIZE=$(xdpyinfo | grep -w "dimensions" | sed -r 's/^[^0-9]*([0-9]+x[0-9]+).*$/\1/')
17
+    TOTAL_SIZE=$(xdpyinfo | /usr/local/bin/grep -w "dimensions" | sed -r 's/^[^0-9]*([0-9]+x[0-9]+).*$/\1/')
18
 }
19
 
20
 # get list of displays, sets $DISPLAY_LIST
21
@@ -602,7 +602,7 @@ update () {
22
         USER_WALL="${WALL_LIST[$i]}"
23
 
24
         # escape spaces for IM
25
-        if echo "$USER_WALL" | grep -E -q "[[:space:]]"; then
26
+        if echo "$USER_WALL" | /usr/local/bin/grep -E -q "[[:space:]]"; then
27
             USER_WALL="${USER_WALL// /\\ }"
28
         fi
29
 

Return to bug 257715