samurai-select

command module
v0.0.0-...-7146cbc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2023 License: Zlib Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Samurai Select

A screen selection tool for wayland compositors using the layer shell. I thank slurp for teaching me how to use the layer shell and for showing an approach to creating a screen selection tool.

Features

  • Customizable (colors, sizes, fonts etc.)
  • Screen Freeze (-z flag)
  • Screenshot (-s flag)
  • Execute arbitrary command (--cmd flag), usable when freezing screen
  • Show Coordinates and Dimensions (-t flag)
  • Alter selection after performing an initial selection (-A flag)
  • Touch Support (needs testing)
  • Force aspect ratio (-a flag)
  • Select certain regions of screen (e.g. windows) (-r flag)
    • Hyprland support (-r hyprland)
    • Sway support (-r sway)
    • Arbitrary (via argument) (-r arg -R 'X,Y WxH X1,Y1 W1xH1 ...')
  • Select whole outputs (-p flag)

Install

Arch Linux (AUR)

This program is available through the AUR, you can install it using an AUR helper like yay:

yay -S samurai-select

or manually:

git clone https://aur.archlinux.org/samurai-select-git
cd samurai-select
makepkg -si
Everything Else

If you have the dependencies listed under Build installed you can just install this program without having the source code by calling

go install github.com/PucklaJ/samurai-select@latest
ln -s $GOPATH/bin/samurai-select $GOPATH/bin/smel

Build

To build it you need to have a go compiler, C compiler (for cgo) and the following dependencies installed:

On Arch Linux you can install these dependencies like so:

sudo pacman -S --needed go gcc wayland cairo

Then call this to build it:

go build -v

Or this to install it:

go install -v

To build the man page:

  1. Install scdoc and gzip
  2. Execute:
scdoc < manpage.scd | gzip -c > samurai-select.1.gz
  1. View it:
man -l samurai-select.1.gz

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址