Skip to content

Instantly share code, notes, and snippets.

@caio-vinicius
Forked from abraithwaite/chill-zoom.sh
Created December 17, 2021 18:49
Show Gist options
  • Save caio-vinicius/f79aa9381816f4b597049dcb313b0b91 to your computer and use it in GitHub Desktop.
Save caio-vinicius/f79aa9381816f4b597049dcb313b0b91 to your computer and use it in GitHub Desktop.
Zoom in Systemd Cgroups on Linux. Change the max allocations to fit your workstation.
#!/usr/bin/bash -xe
cat <<EOF > "${HOME}/.config/systemd/user/zoom.slice"
[Slice]
AllowedCPUs=0-4
MemoryHigh=6G
EOF
cat /usr/share/applications/Zoom.desktop | sed -E 's#^(Exec=).*$#Exec=/usr/bin/systemd-run --user --slice=zoom.slice /opt/zoom/ZoomLauncher#' > "${HOME}/.local/share/applications/Zoom.desktop"
update-desktop-database ~/.local/share/applications
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment