diff options
-rw-r--r-- | drm.ahk | 4 | ||||
-rw-r--r-- | hotkeys.x | 0 | ||||
-rw-r--r-- | patch.bat | 9 | ||||
-rw-r--r-- | patch.sh | 5 | ||||
-rw-r--r-- | rules.x (renamed from drm.x) | 0 |
5 files changed, 8 insertions, 10 deletions
@@ -62,6 +62,8 @@ ButtonRestart: Reload return +#IncludeAgain %A_ScriptDir%\hotkeys.x + ; Handle tray opening NotifyIcon(wParam, lParam) @@ -193,7 +195,7 @@ Save(ByRef Positions) if (style & 0x40000 = 0) ; WS_SIZEBOX DoIgnoreSize := true - #IncludeAgain %A_ScriptDir%\drm.x + #IncludeAgain %A_ScriptDir%\rules.x ; Example: ; if (exe = "mpc-hc.exe" and cw = 294) diff --git a/hotkeys.x b/hotkeys.x new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/hotkeys.x diff --git a/patch.bat b/patch.bat deleted file mode 100644 index 5ccd33e..0000000 --- a/patch.bat +++ /dev/null @@ -1,9 +0,0 @@ -@echo off -setlocal -cd /d %~dp0 -if "%~1" == "" ( - echo Error: argument missing - pause - exit /b -) -sed "s/^ ; Custom rules$/ #IncludeAgain %%A_ScriptDir%%\\\\drm.x/" "%~1" > drm.ahk
\ No newline at end of file diff --git a/patch.sh b/patch.sh new file mode 100644 index 0000000..380966f --- /dev/null +++ b/patch.sh @@ -0,0 +1,5 @@ +#!/bin/sh +test -z "$1" && { echo usage: $0 file 1>&2; exit 1; } +sed 's/^ ; Custom rules$/ #IncludeAgain %A_ScriptDir%\\rules.x/' "$1" | +sed 's/^; Custom hotkeys$/#IncludeAgain %A_ScriptDir%\\hotkeys.x/' > drm.tmp +mv drm.tmp drm.ahk |