Commit Diff


commit - 89906091882875b0a67ffd3bbfa99b5368f06ec8
commit + 2960586ccfa3be117de47a65119c1cb922767957
blob - 2163e8bd6a6f0d40264e255df916c5fe7c8b3644
blob + 9b88d2e2500649668b4176a4063202c13c3a09dc
--- scripts/dmenu_power
+++ scripts/dmenu_power
@@ -24,7 +24,14 @@ Suspend)
 	esac
 	;;
 Shutdown)
-	doas shutdown -p now
+	case "$(uname)" in
+	OpenBSD|FreeBSD)
+		doas shutdown -p now
+		;;
+	Linux)
+		doas poweroff
+		;;
+	esac
 	;;
 Reboot)
 	doas reboot