i
Owner: IIIlllIIIllI URL: git@github.com:nyangkosense/i.git
add doas
Commit af0038e390c892fb59de00d296aeddc429da81ee by SeMi <sebastian.michalk@protonmail.com> on 2025-06-15 14:17:37 +0200
diff --git a/config.def.h b/config.def.h
index d8544cc..49149af 100644
--- a/config.def.h
+++ b/config.def.h
@@ -25,8 +25,8 @@ static const struct {
static const char *battery_path = "/sys/class/power_supply/BAT0";
/* commands for power management (requires appropriate sudo permissions) */
-static const char *reboot_cmd = "sudo reboot";
-static const char *shutdown_cmd = "sudo shutdown -h now";
+static const char *reboot_cmd = "/usr/bin/doas reboot";
+static const char *shutdown_cmd = "/usr/bin/doas shutdown -h now";
/* ASCII art definitions for different operating systems */
static const char *ascii_alpine[] = {