b00f / gnome-clipboard Goto Github PK
View Code? Open in Web Editor NEWA clipboard manager for Gnome desktop
License: GNU General Public License v3.0
A clipboard manager for Gnome desktop
License: GNU General Public License v3.0
So, when there is a regex match of copied text it would automatically run a shell command.
Example: Whenever an URL is copied and "http.*" is found it would automatically run my script to open url in firefox
#!/bin/bash url=$(xclip -selection clipboard -o) firefox $url
Is it possible to add such feature?
I haven't yet seen any of clipboard extensions with such functionality.
Hello -
I am unable to install from extensions.gnome.org I think due to issues with Firefox and snap (see keepassxreboot/keepassxc-browser#1426 for more info and a similar broken situation). I have run the steps for manual install
git clone https://github.com/b00f/gnome-clipboard.git``
cd gnome-clipboard
make install
but I get the following error :
$ make install
sh scripts/transpile.sh
scripts/transpile.sh: 22: tsc: not found
find: ‘src/build’: No such file or directory
Missing extension.js in extension pack
make: *** [Makefile:21: pack] Error 2
Any suggestions?
OS : Pop!_OS 21.10
GNOME : 40.4.0
Firefox : 96.0
Thank you.
The pin button are hidden and small, only see when mouse cursor over. I spent 2 days to figure out how to pin
Gnome switched to ECMAScript for Gnome 45 and more or less deprecated a lot of extensions, including gnome-clipboard.
Imports have changed and there's an API change with ExtensionUtils being moved to Extension and a lot more.
It feels more robust, but it's hell to transition.
After I figure it out and fix the extension I'm currently trying to maintain, I might be open to help with this one too if nobody else wants to do it.
Using this on Ubuntu 21.04, Wayland (Gnome 3.38.5).
Works ok, but I'm unable to use or configure shortcut keys.
Is there a way to configure it using Gnome keyboard shortcuts?
Couple of things that would make it even better:
It crash randomly when I copy something.
Bug report: https://bugzilla.redhat.com/show_bug.cgi?id=2071410
System Info:
Fedora Linux 36.20220402.n.0 (Silverblue Prerelease)
gnome-shell-42.0-2.fc36
kernel 5.17.1-300.fc36.x86_64
So, it doesn't appear to be working in Gnome 43, would like to start this issue to track work progress.
Of course, no pressure, just would love it to work on Gnome 43.
I don't open dialog Settings.
Ubuntu 20.04.3 LTS
Error report:
Error: GSettings key show-notifications not found in schema org.gnome.shell.extensions.gnome-clipboard
Stack trace:
_checkKey@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:576:23
_init/createCheckedMethod/<@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:528:30
addRowAndBindSetting@/home/simonovich/.local/share/gnome-shell/extensions/[email protected]/prefs.js:48:38
buildPrefsWidget@/home/simonovich/.local/share/gnome-shell/extensions/[email protected]/prefs.js:112:9
_init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:207:40
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:132:13
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:175:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
run@resource:///org/gnome/gjs/modules/script/package.js:222:19
start@resource:///org/gnome/gjs/modules/script/package.js:206:5
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17
When I click on 'settings' button it doesnt works and the following error shows on journal:
`
mai 20 10:27:33 ideapad gnome-shell[2832]: JS ERROR: TypeError: ExtensionUtils.openPrefs is not a function
_init/<@/home/perry/.local/share/gnome-shell/extensions/[email protected]/clipboardPanel.js:62:13
onOpenSettings/<@/home/perry/.local/share/gnome-shell/extensions/[email protected]/actionBar.js:86:13
activate@resource:///org/gnome/shell/ui/popupMenu.js:182:9
_onButtonReleaseEvent@resource:///org/gnome/shell/ui/popupMenu.js:135:9
`
An empty area is drawn in the Settings dialog.
Screenshot:
https://yadi.sk/i/3-BlIMEoyp72OQ
Ubuntu 20.04.3 LTS
I wonder if it's possible to save a selected text without actually selecting Save?
Stack trace:
buildPrefsWidget@$HOME/.local/share/gnome-shell/extensions/[email protected]/prefs.js:27:9
_init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:209:40
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:115:22
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:177:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
run@resource:///org/gnome/gjs/modules/script/package.js:206:19
start@resource:///org/gnome/gjs/modules/script/package.js:190:8
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17
Hi,
Thanks for your extension, it looks promising.
It work for copy and paste, i can delete items...
I'm using manjaro and I have a problem to access the configuration window. I got the message "Technical problem"
Error: No property margin on GtkBox
Stack trace:
_init/Gtk.Widget.prototype._init@resource:///org/gnome/gjs/modules/core/overrides/Gtk.js:45:40
buildPrefsWidget@/home/vince/.local/share/gnome-shell/extensions/[email protected]/prefs.js:16:15
_init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:209:40
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:115:22
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:177:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
run@resource:///org/gnome/gjs/modules/script/package.js:206:19
start@resource:///org/gnome/gjs/modules/script/package.js:190:8
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17
Any idea ?
Hello,
Fortuitously, I see this in /var/log/syslog
:
Dec 18 10:05:47 carbone gnome-shell[2657]: Gnome Clipboard: [INFO] set clipboard content: *****
With the content clipboard. It is very unsecured if this content is a password.
OS : Debian Bullseye.
Wondering if there would be a chance to reduce the default number of 0-15 lines of clipboard items window. Either by the code constant value to be adjustable by user settings or basically on any other way. Adjusting the html file or even css, js - all do not work since it is complied.
Imagine a login/restart however and opening the gnome-clipboard a window appears being largely empty. Even though reducing the maximum of history <15 wouldn't decimate the height even though the entire window is not used. The most elegant way - an item window dynamically expanding till max size of history.
Thanks a lot in advance for being considered.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.