Skip to content

Instantly share code, notes, and snippets.

@wommy
Last active April 12, 2025 23:36
Show Gist options
  • Save wommy/f924db8f7cfd57e058bb2771e2adf7da to your computer and use it in GitHub Desktop.
Save wommy/f924db8f7cfd57e058bb2771e2adf7da to your computer and use it in GitHub Desktop.
remove cursor's titlebar
#!/bin/bash
pushd ~/Applications/ # or wherever you install AppImages, they recommend here
./cursor.AppImage --appimage-extract && \
sed -i 's/,minHeight/,frame:false,minHeight/g' "squashfs-root/usr/share/cursor/resources/app/out/main.js"
[ ! -f ./appimagetool* ] && {
URL="https://github.com/AppImage/appimagetool/releases/download/continuous"
wget $URL/appimagetool-$(uname -m).AppImage && chmod +x appimagetool*
}
./appimagetool* squashfs-root/ cursor.AppImage ; rm -r squashfs-root/
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment