Giter Site home page Giter Site logo

haruhishot's Introduction

haruhishot

It is a screenshot tool for wlroots based compositors such as sway and river written in Rust, with wayland-rs

haruhis

How to build

dependiences: wayland , wlroots , rust and meson

You can just run cargo run

If you want to package it , you can use meson.build

  meson setup \
    -Dprefix=/usr \
    -Dbuildtype=release \
    -Denable-notify=true \ # it is a feature of notify, can set it to false
    -Denable-sway=true \ # it is a feature of notify, can set it to false
    -Ddesktop-entry=true \ # it will install a desktop entry, can set it to false
    build
  ninja -C build

Installation

Packaging status

Thanks to wayshot

Use example

Fullscreen (No, just the first screen, just because I am not familar with image.rs) Finished fullscreen, just compile two images together

haruhishot -G --stdout | wl-copy

or

haruhishot --global --stdout > suzumiya.png

Pick with Region

haruhishot -S (slurp -d) --stdout | wl-copy

or

haruhishot --slurp (slurp -d) --stdout | wl-copy

Get Lists

haruhishot -L

or

haruhishot --list

Shot one screen

haruhishot -O DP-2 --stdout > test.png

or

haruhishot --output DP-2 --stdout > test.png

Get Color

haruhishot -C (slurp -p)

or

haruhishot --color (slurp -p)

if enable swayipc, then

haruhishot --window

hover on the window and press ese, then shot the window

Features

Notify Message

notify

TODO

  • I want to add a slint fontend
  • Real Fullscreen shot
  • In the code of wayshot, it seems need to make change if meet some format, but it works well on my computer, so..

Thanks to the help of developers in Smithay

haruhishot's People

Contributors

decodetalkers avatar sestea avatar yavko avatar

Stargazers

 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.