Batch script for launching Komorebi window manager at startup

This commit is contained in:
moshferatu 2023-10-22 14:49:51 -07:00
parent 0820edd18e
commit f58ad9590c

19
komorebi.bat Normal file
View File

@ -0,0 +1,19 @@
@echo off
SETLOCAL EnableDelayedExpansion
:: List of processes to check
set processesToKill=komorebi.exe whkd.exe
:: Loop through each process in the list
for %%A in (%processesToKill%) do (
:: Check if the process is running
tasklist /FI "IMAGENAME eq %%A" 2>NUL | find /I /N "%%A" >NUL
if "!errorlevel!"=="0" (
echo Killing process: %%A
taskkill /F /IM %%A
) else (
echo Process not running: %%A
)
)
komorebic start -c %USERPROFILE%\komorebi.json --whkd