My scripts for startup, dmenu, and the command line
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
= c04e9a440f Make README easier to understand 3 years ago
.gitignore Create utility functions for managing backups 4 years ago
README.md Make README easier to understand 3 years ago
backup :q 4 years ago
bar.sh :q 4 years ago
cvpn statusbar and dwm improvements 4 years ago
dwm-start Add more terminal applications 3 years ago
dwm-statusbar Removed brightness and volume from statusbar 4 years ago
edit-ini Added INI editor 3 years ago
ewrap Move launcher and actions to prompt script 3 years ago
lsix :q 4 years ago
mru Add more terminal applications 3 years ago
pages Add info display feature 3 years ago
prompt Add more terminal applications 3 years ago
screenshot.sh :q 4 years ago
setup-xbindkeys Make app launchers 3 years ago
syn.sh statusbar and dwm improvements 4 years ago
util util flag changes 4 years ago
util-audio statusbar and dwm improvements 4 years ago

README.md

Macros

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.

Installing dependencies

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.

prompt

It’s the central script that gives the rest of the features interactivity. Read the source code for more details.

Usage

prompt [ launch | action | cmd | cmd_clip | github | godoc | ddg | manual | username | password | other_password | edit_password | open | edit ]

Generaly, prompt has two types of commands, launch commands and action commands. Launch commands are used to open applications, manual pages, or spawn 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.

###Notes

  • The download action uses youtube-dl to download whatever is in the keyboard to ~/Downloads/tmp

##mru Used for indexing and ranking frequently accessed files to ~/.cache/mru

pages

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.

Usage

pages [ open ]
  • 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
  • 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

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

  • Finish vpn and networking stuff after ini script is finished, then make sure printf in case goes to stderror which is shown in bar
  • Add ddg search prompt
  • setup pass
  • variables to the script to make assumed paths easier to change
  • show script for man pages, pkg info, and other things
  • command to clipboard
  • emoji select to clipboard
  • system of additional clipboards using /tmp files
  • use attach-session -t . -c /dir for selecting multiplexer directory
  • ddg fill options should be taken from bookmarks or history
  • Make password prompts green
  • Figure out range selecting for parsing passwords
  • Figure out using dmenu instead of gnome key prompt
  • Give launched st windows better naming