Giter VIP home page Giter VIP logo

nwg-clipman's Introduction

nwg-shell logo

nwg-clipman


This program is a part of the nwg-shell project.

Nwg-clipman is a GTK3-based GUI for Senan Kelly's cliphist. It provides access to previously copied items, as well as management of the clipboard history from a window opened on gtk-layer-shell. The program is intended for use with sway, Hyprland and other wlroots-based Wayland compositors.

screenshot

Features

  • image & text history item preview;
  • searching clipboard history by a textual phrase;
  • deleting selected history item;
  • clearing clipboard history.

Dependencies

  • python >= 3.6;
  • python-gobject;
  • gtk3;
  • gtk-layer-shell;
  • wl-clipboard;
  • cliphist;
  • xdg-utils.

Installation

Packaging status

The program may be installed by cloning this repository and executing the install.sh script (make sure you installed dependencies first). Then you need to edit your compositor config file, to enable storing clipboard history to cliphist.

Example for sway:

exec wl-paste --type text --watch cliphist store
exec wl-paste --type image --watch cliphist store

Example for Hyprland:

exec-once = wl-paste --type text --watch cliphist store
exec-once = wl-paste --type image --watch cliphist store

You may omit the second line if you don't want images to be remembered.

Then create a key binding to launch nwg-clipman:

Example for sway:

bindsym Mod1+C exec nwg-clipman

Example for Hyprland:

bind = ALT, C, exec, nwg-clipman

Options

❯ nwg-clipman -h
usage: nwg-clipman [-h] [-v] [-n] [-w]

options:
  -h, --help     show this help message and exit
  -v, --version  display Version information
  -n, --numbers  show item Numbers in the list
  -w, --window   run in regular Window, w/o layer shell

Hints

  • To see numbers in the cliboard history use the nwg-clipman -n command.
  • If you'd like the window to open normally, not on the layer shell, use the nwg-clipman -w command.
  • You may clear the search entry / close the program window with the Esc key.

nwg-clipman's People

Contributors

nwg-piotr avatar

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.