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 |
|