My scripts for startup, dmenu, and the command line
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
= f92d2f5971 Try displaying info with zathura pirms 3 gadiem
.gitignore Create utility functions for managing backups pirms 4 gadiem
README.md Try displaying info with zathura pirms 3 gadiem
backup :q pirms 4 gadiem
bar.sh :q pirms 4 gadiem
cvpn statusbar and dwm improvements pirms 4 gadiem
dwm-start Move launcher and actions to prompt script pirms 3 gadiem
dwm-statusbar Removed brightness and volume from statusbar pirms 4 gadiem
edit-ini Added INI editor pirms 3 gadiem
ewrap Move launcher and actions to prompt script pirms 3 gadiem
lsix :q pirms 4 gadiem
prompt Try displaying info with zathura pirms 3 gadiem
screenshot.sh :q pirms 4 gadiem
setup-xbindkeys Make app launchers pirms 3 gadiem
syn.sh statusbar and dwm improvements pirms 4 gadiem
util util flag changes pirms 4 gadiem
util-audio statusbar and dwm improvements pirms 4 gadiem

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 enscript ghostscript ps2pdf zathura suckless-tools

Prompt

mpc dmenu scrot xclip tmux vim lbry pass dunst

They’re all optional but missing commands may have unexpeted side effects. The scripts also assumes you have the common commands in GNU core utilities like sed, awk, etc.

  • 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
  • the script assumes your passwords are in ~/Passwords/
  • 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

Usage

prompt [launch | action | cmd | ddg | pass | manual]
edit-ini ...

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