= 98da93c6b7 | 4 年前 | |
---|---|---|
.gitignore | 4 年前 | |
README.md | 4 年前 | |
backup | 4 年前 | |
bar.sh | 4 年前 | |
cvpn | 4 年前 | |
dwm-start | 4 年前 | |
dwm-statusbar | 4 年前 | |
edit-ini | 4 年前 | |
ewrap | 4 年前 | |
lsix | 4 年前 | |
mru | 4 年前 | |
pages | 4 年前 | |
pinentry | 4 年前 | |
prompt | 4 年前 | |
screenshot.sh | 4 年前 | |
setup-xbindkeys | 4 年前 | |
syn.sh | 4 年前 | |
text-opener | 4 年前 | |
util | 4 年前 | |
util-audio | 4 年前 |
This is a collection of scripts I use to make managing files and processes easier. Use it to automagically select and run terminal applications, send signals to daemons, execute arbitrary commands, search the web, grab passwords from a password manager, and more.
sudo apt install pass enscript dunst xclip scrot mpc mpd ghostscript zathura suckless-tools youtube-dl
All of them are optional except suckless-tools. Many of the features aren’t interdependent and are made up of 1 or 2 functions.
The central script that gives the rest of the features interactivity. Read the source code for more details.
prompt [ COMMAND ]
most functionality is accessible from launch and action only
launch action
and Mod4+g to prompt launch
search package
will infer with their default operation
when the string entered is an invalid selectionUsed for storing file paths and their modification times in ~/.cache/mru. It doesn’t actually implement a caching algorithm using hit rate but it may be added in the future. mru [COMMAND] [CACHE]
mru init; mru create home $HOME all
pages is a command for viewing /tmp/pages-{number} files with less or zathura.
The files are the result of prompt commands like prompt action
-> Go page or
can be created from your own tools. I use it for viewing documentation.
pages [ pager | pdf | browser | send ] [ NAME ]
send will send stdin to the named page with the naming convention /tmp/pages-{NAME}. All other commands attempt to open the named page if it exists.
:!markdown % | pages send 1.html | pages browser 1.html
This could then be given it’s
own keybinding.
Use it to automagically select and run terminal applications, send signals to
daemons, execute arbitrary commands, search the web, grab passwords from the
password manager, and more.