Skip to content

Instantly share code, notes, and snippets.

@Drenn1
Last active Jun 28, 2022
Embed
What would you like to do?
Livesplit global hotkeys workaround
# Livesplit hotkeys
#
"livesplithk Page_Up"
Page_Up
"livesplithk Page_Down"
Page_Down
"livesplithk Insert"
Insert
"livesplithk Delete"
Delete
"livesplithk KP_Add"
KP_Add
"livesplithk bracketleft"
bracketleft
"livesplithk bracketright"
bracketright
#!/bin/bash
cd PATH_TO_LIVESPLIT
xbindkeys -n &
pid=$!
wine LiveSplit.exe
kill $pid
#!/bin/bash
xdotool key --window $( xdotool search --limit 1 --all --pid $( pgrep LiveSplit ) --name LiveSplit ) "$1"
@Drenn1
Copy link
Author

Drenn1 commented Jul 28, 2015

Needs xbindkeys installed. "livesplitandbind" and "livesplithk" should be somewhere in the PATH, .xbindkeysrc should be in the $HOME directory. xbindkeys will be terminated when livesplit is finished so you can use your insert/delete keys, etc.

@Montandalar
Copy link

May be fragile if you have LiveSplit (with that exact spelling) in other window titles e.g. a browser tab.

YMMV but for me with my Wine/Mono config the LiveSplit process becomes a zombie after closing the window, so you may want to record its PID and kill that as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment