Skip to content

Commit 14e17a8

Browse files
committed
updated xinput toggler to check for xinput command
Signed-off-by: Rob Frawley 2nd <rmf@src.run>
1 parent 4654ec7 commit 14e17a8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bin-available/toggle-xinput-device-state.bash

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,11 @@ function main {
379379
local action
380380
local contexts=()
381381

382+
if [[ ! "$(which xinput)" ]]; then
383+
write_critical 'Missing dependency' \
384+
'Failed to locate the "xinput" command. Ensure the required X.org packages are installed and try again.'
385+
fi
386+
382387
while [[ $# -gt 0 ]] && [[ ."-${1}" = .--* ]]; do
383388
opt="${1}"
384389
shift

0 commit comments

Comments
 (0)