scripts

scripts to make my pc work
Index Commits Files Refs
prompt.sh (262B)
   1 #!/bin/bash
   2 # A dmenu binary prompt script.
   3 # Gives a dmenu propmt labeled with $1 to perform command #2
   4 # For example:
   5 # './prompt "Do you want to shutdown?" "shutdown -h now"'
   6 
   7 # Autor: lukesmith.xyz
   8 
   9 [ $(echo -e "No\nYes" | dmenu -i -p "$1") == "Yes" ] && $2