Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#393·skhd

Wrong `Duplicate declaration` error in a simple config

Author: JokeroCreated Jul 27, 2025Updated Jul 27, 2025

For some reason this config is not considered as valid:

:: buy
:: buyW

rcmd - b ; buy 

buy, buyW < rcmd - escape ; default 

buy < rcmd - w ; buyW

buyW < rcmd - u : osascript -e 'tell application "Terminal" to do script "echo buy wu" & activate' 
bash
/usr/local/bin/skhd -c ~/.skhdrc
#2:4 duplicate declaration 'buyW'

I'm using the latest version installed via brew:

bash
/usr/local/bin/skhd --version   
skhd-v0.3.9

The interesting thing is that if I install skhd from the source, this error does not happen. The source code is the same, but result is different. What can be the reason of such behaviour?

Source: asmvik/skhd

View original on GitHubView discussion on GitHub