From d6e3c81ace327bd90ee49a14c525bff5348f078d Mon Sep 17 00:00:00 2001 From: cizordj <32869222+cizordj@users.noreply.github.com> Date: Sun, 14 Feb 2021 14:49:33 -0300 Subject: [PATCH] Update i3-exit Now the polybar is capable of rebooting the computer on FreeBSD without needing root access --- i3-exit | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/i3-exit b/i3-exit index 1638a5a0..04411827 100755 --- a/i3-exit +++ b/i3-exit @@ -20,9 +20,11 @@ case "$1" in logout) i3-msg exit ;; reboot) - systemctl reboot ;; + systemctl reboot || doas /sbin/reboot + ;; shutdown) - systemctl poweroff ;; + systemctl poweroff || doas /sbin/poweroff + ;; *) printHelp ;; esac