From 88429962489d4d1669f928ae7e589918d009aeef Mon Sep 17 00:00:00 2001 From: Theri Date: Sat, 14 Dec 2024 11:16:15 +0000 Subject: [PATCH] =?UTF-8?q?=E2=AD=90=20Nyaoff=20v1.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 0 nyaoff | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 README.md create mode 100644 nyaoff diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/nyaoff b/nyaoff new file mode 100644 index 0000000..552de79 --- /dev/null +++ b/nyaoff @@ -0,0 +1,39 @@ +#!/bin/bash +# nyaoff - a cute poweroff screen for yall +# made for my cutie leafusowo I LOVE YOUUUU (platonically ofc haha ;3) +# Version: 1.0 + +# silly colors :3 +RED='\e[1;91m' +GREEN='\e[1;92m' +PINK='\033[38;2;245;194;231m' +PURPLE='\033[38;2;203;166;247m' + +# silly menu :3 +echo -e "${PINK}" +echo -e " ╭─ UwU ───────────────────────────────────────────╮" +echo -e " │  ${PURPLE}Hewwo~${PINK} Wat do u wanna do with ur computer? :3 │" +echo -e " │ │" +echo -e " │ (1) 󰐥${RED} Put computer to eep :3${PINK} │" +echo -e " │ (2) 󱥸 ${GREEN}Restart the machine :333${PINK} │" +echo -e " │ │" +echo -e " ╰─────────────────────────────────────────────────╯" + +# input... nyaa~ +echo -ne " ${PINK}> " +read -n 1 -t 10 INPUT +echo # sexy echo command + +# check which input the cutie entered :3 +if [[ $INPUT == "1" ]]; then + echo -e "${PURPLE}meow~ Putting ur lil pc to sleep...${PINK}" + systemctl shutdown # eep +elif [[ $INPUT == "2" ]]; then + echo -e "${GREEN}Nyaa~ Rebwooting machine... See ya :D ${PINK}" + systemctl reboot # reboowting +else # oopsie + echo -e "${RED}Oopsie~ Invalid input. Nya, try again later!${PINK}" +fi + +# theridev was here :333 +# ily!!!