1
Fork 0

Create the drg-auto-ready script.

This commit is contained in:
Bauke 2023-04-23 12:44:32 +02:00
parent 148bb466de
commit 014327fcfe
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 11 additions and 0 deletions

11
.bauke/bin/drg-auto-ready Executable file
View File

@ -0,0 +1,11 @@
#!/usr/bin/env zsh
# Automatically type "r" in the Deep Rock Galactic chat when it's running and
# the currently active window.
drg_pid=$(xdotool search --name 'Deep Rock Galactic' getwindowpid)
active_window_pid=$(xdotool getactivewindow getwindowpid)
if [[ $drg_pid = $active_window_pid ]]; then
xdotool key --delay 50 Enter r Enter
fi