Do not error out if xrandr or xinput is missing while DISPLAY is set
This commit is contained in:
parent
c5548aaa22
commit
9793f10c97
1 changed files with 2 additions and 1 deletions
|
@ -357,7 +357,8 @@ batstat() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ $DISPLAY ]] && xinput | grep -q Wacom && xrandr | grep -q eDP1; then
|
if [[ $DISPLAY ]] && exists xinput && exists xrandr && \
|
||||||
|
xinput | grep -q Wacom && xrandr | grep -q eDP1; then
|
||||||
xrandr() {
|
xrandr() {
|
||||||
command xrandr $@
|
command xrandr $@
|
||||||
for dev in $(xinput | grep Wacom | grep -oP '(?<=id=)\d*'); do
|
for dev in $(xinput | grep Wacom | grep -oP '(?<=id=)\d*'); do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue