Dotfiles for different machines on different branches.
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.

9 lines
301 B

  1. #!/bin/sh
  2. # A dmenu binary prompt script.
  3. # Gives a dmenu prompt labeled with $1 to perform command $2.
  4. # For example:
  5. # `./prompt "Do you want to shutdown?" "shutdown -h now"`
  6. # by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
  7. [ "$(printf "No\\nYes" | dmenu -i -p "$1" )" = "Yes" ] && $2