Skip to content

Instantly share code, notes, and snippets.

@abdulwahidgul24085
Created May 14, 2026 15:07
Show Gist options
  • Select an option

  • Save abdulwahidgul24085/70813d9f36116344fa2b22b93c8cbb98 to your computer and use it in GitHub Desktop.

Select an option

Save abdulwahidgul24085/70813d9f36116344fa2b22b93c8cbb98 to your computer and use it in GitHub Desktop.
Set up GPaste just like windows 11 clipboard
#!/usr/bin/env bash
set -euo pipefail
echo "Installing GPaste..."
sudo apt update
sudo apt install -y gpaste gnome-shell-extension-gpaste
echo "Configuring GPaste to behave like Windows 11 clipboard..."
# Save only explicit clipboard copies, not mouse-selected text
gsettings set org.gnome.GPaste primary-to-history false
# Track normal clipboard changes, required for Ctrl+C / Ctrl+Shift+C copies
gsettings set org.gnome.GPaste track-changes true
# Preserve clipboard history after reboot/logout
gsettings set org.gnome.GPaste save-history true
# Use Super+V to show clipboard history
gsettings set org.gnome.GPaste show-history "'<Super>v'"
# Do not synchronize primary selection and clipboard
# This prevents selected text from interfering with copied text
gsettings set org.gnome.GPaste synchronize-clipboards false
# Optional sane defaults
gsettings set org.gnome.GPaste close-on-select true
gsettings set org.gnome.GPaste max-displayed-history-size uint64 20
gsettings set org.gnome.GPaste max-history-size uint64 100
# Restart GPaste daemon
gpaste-client daemon-reexec
echo "Done."
echo
echo "Expected behavior:"
echo " Ctrl+C -> saved to GPaste history"
echo " Ctrl+Shift+C -> saved from terminal copies"
echo " Mouse select -> not saved"
echo " Super+V -> show clipboard history"
echo " Reboot/logout -> history preserved"
@abdulwahidgul24085

Copy link
Copy Markdown
Author

How to install the Gist directly

curl -fsSL "PASTE_RAW_GIST_URL_HERE" -o setup-gpaste-windows-like.sh
chmod +x setup-gpaste-windows-like.sh
./setup-gpaste-windows-like.sh

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