1
Fork 0

Compare commits

...

2 Commits

Author SHA1 Message Date
Bauke 014327fcfe
Create the drg-auto-ready script. 2023-04-23 12:44:32 +02:00
Bauke 148bb466de
Add period. 2023-04-22 13:56:13 +02:00
2 changed files with 12 additions and 1 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

View File

@ -14,7 +14,7 @@ async function main(): Promise<void> {
.option("--print <print:string>", "Print data from the current song.") .option("--print <print:string>", "Print data from the current song.")
.option( .option(
"--volume <volume:number>", "--volume <volume:number>",
"Change the volume by a relative amount", "Change the volume by a relative amount.",
) )
.parse(Deno.args); .parse(Deno.args);