Skip to content

Instantly share code, notes, and snippets.

@lukaswoj
Last active May 21, 2025 19:16
Show Gist options
  • Save lukaswoj/5714b13802b0f3653c62d72895f31642 to your computer and use it in GitHub Desktop.
Save lukaswoj/5714b13802b0f3653c62d72895f31642 to your computer and use it in GitHub Desktop.
# here is how you can build locally kwin-bismuth package that in 3.1.4-4build2 comes broken unfortunately for Kubuntu 24.04
# from main system
sudo apt-get install kwin-bismuth
git clone https://github.com/Bismuth-Forge/bismuth.git
cd bismuth
git checkout v3.1.4
docker run --rm -it --volume `pwd`:/app --workdir /app ubuntu
# from inside the container
apt-get update
apt-get install make cmake ninja-build build-essential extra-cmake-modules qtbase5-private-dev qtdeclarative5-dev libqt5svg5-dev libkf5config-dev libkf5declarative-dev libkf5configwidgets-dev libkf5kcmutils-dev libkdecorations2-dev
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
source ~/.profile
nvm install 20
# fix tsc command
npm uninstall tsc
npm install -D typescript
# apply build command fix
sed -i 's/neutral"/neutral" "--target=es2016"/g' src/kwinscript/CMakeLists.txt
make build
exit
# from main system, to replace "broken" file with fixed one
sudo sh -c 'cat build/src/kwinscript/bismuth/contents/code/index.mjs > /usr/share/kwin/scripts/bismuth/contents/code/index.mjs'
# now enable window tiler and you should have it working with shortcuts also available under "Windo Tiling" section
@dekiesel
Copy link

Thank you for this!

I think there is a typo in lin 26. Shouldn't it be

sudo sh -c 'cat build/src/kwinscript/bismuth/contents/code/index.mjs > /usr/share/kwin/scripts/bismuth/contents/code/index.mjs'

Otherwise you just replace the file with itself.

@dehidehidehi
Copy link

Thank you for this; it fixed my issue!
Glad to have my window tiler back and working on Ubuntu 24.04.

@lukaswoj
Copy link
Author

Updated gist with your fix @dekiesel - thanks!

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