Comandos 'copiado consertar' e 'copiado ajuda'
Pacote / verificar (push) Canceled after 0s
Pacote / trivy (push) Canceled after 0s
Pacote / pacote (push) Canceled after 0s
Pacote / release (push) Canceled after 0s

- consertar: recria/recarrega o atalho Win+V e inicia o app se estiver parado
- instalar.sh e desinstalar.sh passam a usar os comandos do próprio app

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas RayanandClaude Opus 5.5 committed 2026-10-03 09:46:53 -03:00
1 parent 16affedd2b
commit 6e45d64ee0
4 files changed
+125 -50

No files matched your search

+1 -10
View File
@@ -1,15 +1,6 @@
#!/usr/bin/env bash
# Remove o Copiado e o atalho Win+V
BASE=org.cinnamon.desktop.keybindings
LISTA=$(gsettings get $BASE custom-list)
for ID in $(python3 -c "import ast,sys; print(' '.join(ast.literal_eval(sys.argv[1].replace('@as ',''))))" "$LISTA"); do
SCHEMA="$BASE.custom-keybinding:/org/cinnamon/desktop/keybindings/custom-keybindings/$ID/"
if gsettings get "$SCHEMA" command | grep -q copiado; then
LISTA=$(python3 -c "import ast,sys; l=ast.literal_eval(sys.argv[1].replace('@as ','')); print([x for x in l if x!='$ID'])" "$LISTA")
gsettings set $BASE custom-list "$LISTA"
gsettings reset-recursively "$SCHEMA"
fi
done
command -v copiado >/dev/null && copiado remover-atalho
pkill -f "/usr/bin/copiado" 2>/dev/null
sudo apt-get remove -y copiado
rm -rf "$HOME/.local/share/copiado"