Без примера вывода или поведения трудно дать точный ответ, но, похоже, вы ищете команду expect
.
Справочная страница ожидаемое (1):
EXPECT(1) General Commands Manual EXPECT(1)
NAME
expect - programmed dialogue with interactive programs, Version 5
SYNOPSIS
expect [ -dDinN ] [ -c cmds ] [ [ -[f|b] ] cmdfile ] [ args ]
INTRODUCTION
Expect is a program that "talks" to other interactive programs accord‐
ing to a script. Following the script, Expect knows what can be
expected from a program and what the correct response should be. An
interpreted language provides branching and high-level control struc‐
tures to direct the dialogue. In addition, the user can take control
and interact directly when desired, afterward returning control to the
script.
Вы можете попробовать добавить вторую команду в sxhkd
строки конфигурации, которые отправляют bspc
команды фокуса для перемещения мыши чуть после нее, например, xdotool mousemove_relative 1 0
.
Указатель мыши не указывает, какое окно находится в фокусе. Сообщите оконному менеджеру, чтобы он по-разному стилизовал сфокусированное окно.