Gen 426: Shell script nix files work properly now

This commit is contained in:
pagedMov
2024-10-12 19:16:17 -04:00
parent ed16562d58
commit 3dce49571a
39 changed files with 210 additions and 676 deletions

View File

@@ -0,0 +1,20 @@
{ self, pkgs }:
pkgs.writeShellScriptBin "shutdown-script" (''
#!/usr/bin/env zsh
respond="$(echo " Shutdown\n Restart\n Cancel" | rofi -dmenu)"
if [ $respond = ' Shutdown' ]
then
echo "shutdown"
shutdown now
elif [ $respond = ' Restart' ]
then
echo "restart"
reboot
else
notify-send "cancel shutdown"
fi
'')