This is a collection of scripts I use to make managing files and processes easier.
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.
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.
Generaly, prompt has two types of commands, launch commands and action
Generaly, prompt has two types of commands, launch commands and action
commands. Launch commands are used to open applications, manual pages, or spawn
commands. Launch commands are used to open applications, manual pages, or spawn
other windows. Action commands modify daemons or read/write th the clipboard.
other windows. Action commands modify daemons or read/write th the clipboard.
`prompt launch` and `prompt action` are the only commands you really need to
know because they will prompt for all the rest. The other command line subcommands are for
convenience and may be removed in the future.
This means that `prompt launch` and `prompt action` are the only important
subcommands because they will prompt for all the rest.
###Notes
###Notes
* The download action uses youtube-dl to download whatever is in the keyboard to ~/Downloads/tmp
* The download action uses youtube-dl to download whatever is in the keyboard to ~/Downloads/tmp
* You may want to bind Mod4+a to `launch action` and Mod4+g to `prompt launch`
##mru
##mru
Used for indexing and ranking frequently accessed files to ~/.cache/mru
Used for indexing and ranking frequently accessed files to ~/.cache/mru
mru [COMMAND] [CACHE]
#### COMMMAND
- init
- update
- output
- list
If no cache is specified, it assumes 'home'
### Initializing
mru init; mru create home $HOME all
## pages
## pages
pages is a command for viewing /tmp/pages-{number} files with less or zathura.
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
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.
can be created from your own tools. I use it for viewing documentation.
### Usage
pages [ open ]
### Usage
pages [ pager | pdf | browser | send ] [ NAME ]
- [ dmenu ](http://tools.suckless.org/dmenu/) for the prompts. It can be changed to rofi or some other solution
- scrot and xclip for screenshots
- all scripts assume your prefered terminal is [ st ](http://st.suckless.org)
- mpc is for media controls
- commands that display information from man pages, godoc, logs, etc
do it using `enscript -p - | ps2pdf - | zathura -`. I'm considering
more minimal combinations like enscript and surf or st and less but
they create their own set of problems. This solution makes future
changes easy without becoming too complicated
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.
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.
#### Notes
* Page names don't have to be numbers, here is an example vim Ex mode command I
use to convert a markdown file to html and open it in a browser: `:!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.
#### TODO
#### TODO
- Finish vpn and networking stuff after ini script is finished, then make sure printf in case goes to stderror which is shown in bar
- Finish vpn and networking stuff after ini script is finished, then make sure printf in case goes to stderror which is shown in bar
@@ -61,4 +97,5 @@ Use it to automagically select and run terminal applications, send signals to da
- Make password prompts green
- Make password prompts green
- Figure out range selecting for parsing passwords
- Figure out range selecting for parsing passwords
- Figure out using dmenu instead of gnome key prompt
- Figure out using dmenu instead of gnome key prompt
- Give launched st windows better naming
- Consider entr, inotifywait, auditctl, or find -atime for MRU