My scripts for startup, dmenu, and the command line
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
= 454bee1d6f Add username and password retrieval il y a 3 ans
.gitignore Create utility functions for managing backups il y a 4 ans
README.md Add username and password retrieval il y a 3 ans
backup :q il y a 4 ans
bar.sh :q il y a 4 ans
cvpn statusbar and dwm improvements il y a 4 ans
dwm-start Move launcher and actions to prompt script il y a 3 ans
dwm-statusbar Removed brightness and volume from statusbar il y a 4 ans
edit-ini Added INI editor il y a 3 ans
ewrap Move launcher and actions to prompt script il y a 3 ans
lsix :q il y a 4 ans
pages Add info display feature il y a 3 ans
prompt Add username and password retrieval il y a 3 ans
screenshot.sh :q il y a 4 ans
setup-xbindkeys Make app launchers il y a 3 ans
syn.sh statusbar and dwm improvements il y a 4 ans
util util flag changes il y a 4 ans
util-audio statusbar and dwm improvements il y a 4 ans

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

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

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.

  • 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