Re: How to shutdown when using Openbox

MJ Fleming <[email protected]> Sat, 24 Mar 2018 14:50:16 -0500
Newsgroups gmane.comp.window-managers.openbox
Message-ID <CABR6ocjTbr2WwX_2ygX5uqtw_=Hdcr5p_A+idkZ2GzhX5EFsfg@mail.gmail.com>
--===============7034492559343290493==
Content-Type: multipart/alternative; boundary="94eb2c07077affaa0105682ddb58"

--94eb2c07077affaa0105682ddb58
Content-Type: text/plain; charset="UTF-8"

You could basically just create a script that runs those two commands and
then run that script from an openbox menu or keybinding... I took the
liberty of making an example for you here, includes a pipe menu:

http://openbox.org/wiki/User:Spoiledbroth/obend.sh

systemctl poweroff/reboot should work assuming you're using a relatively
recent version of Debian, and not Devuan or something that isn't using
systemd. Otherwise you might have to investigate dbus-send ...

--94eb2c07077affaa0105682ddb58
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">You could basically just create a script that runs those t=
wo commands and then run that script from an openbox menu or keybinding... =
I took the liberty of making an example for you here, includes a pipe menu:=
=C2=A0<div><br></div><div><a href=3D"http://openbox.org/wiki/User:Spoiledbr=
oth/obend.sh">http://openbox.org/wiki/User:Spoiledbroth/obend.sh</a><br></d=
iv><div><br></div><div>systemctl poweroff/reboot should work assuming you&#=
39;re using a relatively recent version of Debian, and not Devuan or someth=
ing that isn&#39;t using systemd. Otherwise you might have to investigate d=
bus-send ...</div></div>

--94eb2c07077affaa0105682ddb58--

--===============7034492559343290493==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18Kb3BlbmJveCBt
YWlsaW5nIGxpc3QKb3BlbmJveEBpY2N1bHVzLm9yZwpodHRwOi8vaWNjdWx1cy5vcmcvbWFpbG1h
bi9saXN0aW5mby9vcGVuYm94

--===============7034492559343290493==--