vdotfiles

Cem's Dotfiles for Void Linux
git clone git://git.ckyln.com/vdotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 87f2ad087890968af408037528f07f65633d7a80
parent 7b39c744c858dfd6a1ba2cc9fd9c4cd2cb24f75d
Author: Cem Keylan <cem@ckyln.com>
Date:   Fri,  1 Nov 2019 10:59:51 +0300

add prompt command

Diffstat:
A.local/bin/ask | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/.local/bin/ask b/.local/bin/ask @@ -0,0 +1,6 @@ +#!/usr/bin/env sh +# Dmenu binary prompt +# Usage: +# ./ask "shutdown -h now" "Do you want to shutdown?" + +[ "$(printf "No\\nYes" | dmenu -i -p "$2")" = "Yes" ] && $1