Code Monkey home page Code Monkey logo

rofi-copyq's Introduction

rofi-copyq

Use Rofi to search CopyQ's clipboard history and set the clipboard to the selected snippet.

Requires:

  • Rofi
  • CopyQ

Installation

pip install --user git+https://github.com/cjbassi/rofi-copyq

Note that ~/.local/bin needs to be added to your $PATH for user installs.

Usage

Simply run rofi-copyq, probably through Rofi itself, and then you can search and select a CopyQ snippet to be put on the current clipboard.

rofi-copyq's People

Contributors

cjbassi avatar

Stargazers

Ricardo Santos avatar  avatar  avatar Peter Abbasi avatar Frank Solli avatar Dovie Weinstock avatar Dante Euclid Vergilson avatar  avatar Florian Bütler avatar  avatar Adrien CARBONARO avatar  avatar  avatar Ronin Tachmonite avatar xe avatar kohane27 avatar Mark Mandel avatar Klanc avatar Violet avatar Enno avatar Shadab Zafar avatar Jonathan McHugh avatar Seweryn Niemiec avatar Hai Nguyen avatar Scott Ivey avatar Jaxx Armstrong avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

rofi-copyq's Issues

Empty list

Hi,
Thank you for the amazing plugin!
I installed the plugin and when I run rofi-copyq I see the list of items in my clipboard and it works fine. However, When I try to run this through Rofi, I get an empty list.
What could be the issue there?

I know that this might not be an issue with the plugin but any help would be really appreciated :)

Command:

rofi -modi 'clipboard:rofi-copyq' -show clipboard

add support for python 3.6

Python 3.6 doesn't support capture_output in subprocess.run. This option is equivalent to:

from subprocess import PIPE

subprocess.run( ... , stdout=PIPE, stderr=PIPE)

Strange error when trying to run rofi-copyq on PopOS 20.10

Traceback (most recent call last):
File "/home/dappercore/.local/bin/rofi-copyq", line 25, in
json_arr = json.loads(p.stdout)
File "/usr/lib/python3.8/json/init.py", line 357, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

I just cloned the pip installed, logged out and logged back in, tried running the command, and was greeted with that error.

Usage?

Hello,

I'm a rofi beginner so I'd appreciate a example usage, please.

Thank you for creating this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.