Skip to content
/ yx Public

clipboard-centric command executor

License

Notifications You must be signed in to change notification settings

metaory/yx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YX

Clipboard-centric command executor

USAGE

yx X|Y [STR...]    # exec|yank args (case insensitive)
[CMD...] | yx x|y  # exec|yank pipe

EXAMPLES

# basic usage
yx y hi           → hi
echo hi | yx y    → hi

# with args
yx X date         → Sun Feb 25 00:00:00 AM +00 2024
date | yx Y now:  → Sun Feb 25 00:00:00 AM +00 2024 now:

# command output
echo ls | yx x    → file1 file2 file3
echo date | yx X +%s → 1708796381

INSTALL

# requires xsel
git clone https://github.com/metaory/yx.git && cd yx && chmod +x yx && ln -sfv $PWD/yx ~/.local/bin/

SHELL

alias -g YY='| yx y'  # pipe→yank
alias -g YX='| yx x'  # pipe→exec
alias yy='yx y'       # args→yank
alias yx='yx x'       # args→exec

ENV

YX_SILENT=1 suppress output

SEE

yank xsel xset xclipboard wiki.archlinux/Clipboard

MIT