From dd47b9a029f38a3c15d0e1d781843c63cd27296d Mon Sep 17 00:00:00 2001 From: cptbbVM Date: Wed, 13 Dec 2023 18:11:56 +0100 Subject: [PATCH] new script shut : ask for shutdown --- shut | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 shut diff --git a/shut b/shut new file mode 100755 index 0000000..fb312ba --- /dev/null +++ b/shut @@ -0,0 +1,5 @@ +#!/bin/bash + +x=$(echo -e "OUI\nNON" | dmenu -i -p "éteindre PC ?") + +[ $x == "OUI" ] && echo "ration" && shutdown 0 || echo "pc go mimir annuler"