Skip to content

一款使用Tauri开发的贴图软件(同时支持简单的区域截图功能),类似与Windows上的snipaste,支持Linux系统

License

Notifications You must be signed in to change notification settings

FengZhongShaoNian/sticky-rs

Repository files navigation

sticky-rs

Description(中文简介

A Tauri-powered image sticky-note app(Support Linux), enabling users to affix pictures to their desktop and keep them always on display. It comes equipped with various annotation capabilities. Among the annotation options are:

  • Rectangular framing
  • Oval framing
  • Line drawing
  • Arrow creation
  • Freehand sketching
  • Highlighter marker
  • Pixelated masking
  • Gaussian blurring
  • Text overlay
  • Step-by-step numbering
  • Virtual eraser

Have a look at the software's interface through the screenshot provided: UI截图

Compile

cd sticky-rs
pnpm install
pnpm run tauri build

Installation

For archlinux AUR users:

yay -S sticky-rs-git

#or:
yay -S sticky-rs-bin

Usage

Usage: sticky-rs.sh [OPTIONS]

Options:
  -p, --path <PATH>  Path of image to open
  -c, --capture      Capture screen region
  -h, --help         Print help
  -V, --version      Print version

This software can be used with gnome-screenshot to achieve the effect of Snipaste software on Windows on Linux. The following is a script that takes screenshots and automatically pins them:

#!/bin/bash

mkdir -p /tmp/screenshot-sticky
time=$(date "+%Y%m%d-%H-%M-%S")
tmp_file="/tmp/screenshot-sticky/${time}.png"
gnome-screenshot -c -a -f $tmp_file && /usr/bin/sticky-rs.sh -p "$tmp_file"

You can set a shortcut key through the system's built-in shortcut key function, bind your favorite shortcut key to this script, and you can take screenshots and paste pictures with one click. By the way, you can install gnome-screenshot in Archlinux like this:

sudo pacman -S gnome-screenshot

Screenshot Functionality

Due to the fact that gnome-screenshot no longer works on Gnome 49+, the latest version of sticky-rs includes a built-in area screenshot feature. You can launch the area screenshot with the following command:

sticky-rs.sh -c  

Note: If fractional scaling is enabled on the system, the scaling factor must be specified using the STICKY_RS_SCALE_FACTOR environment variable:

# If the system scaling is set to 125%, then:  
export STICKY_RS_SCALE_FACTOR=1.25  
# Take a screenshot  
sticky-rs.sh -c  

About

一款使用Tauri开发的贴图软件(同时支持简单的区域截图功能),类似与Windows上的snipaste,支持Linux系统

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published