commit 1ebcc06dab61babcc13f82cd8046dbe9e68b6577 Spenser Truex <truex@equwal.com> 2025-09-01 19:38:28 -0400 dopenrc-runlevel: choose openrc runlevels for various advanced tasks like networking
README.md | 1 + dopenrc-runlevel | 7 +++++++ 2 files changed, 8 insertions(+)
diff --git a/README.md b/README.md index fa11301..3f07bdf 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ with that. - `dmenu_run/dsudo`: run programs, maybe from a keybind set with xbindkeys or a wm - `dmenupass`: ask for the sudo password as SUDO_ASKPASS - `dmount/dunmount`: mount/unmound drives +- `dopenrc-runlevel`: choose openrc runlevels for various advanced tasks like networking - `dshow`: run a command and show output without having to open a terminal - `dsysact`: reboot/shutdown/etc. - `passmenu`: unix [`pass`](https://www.passwordstore.org/) interface diff --git a/dopenrc-runlevel b/dopenrc-runlevel new file mode 100755 index 0000000..3c08c66 --- /dev/null +++ b/dopenrc-runlevel @@ -0,0 +1,7 @@ +#!/bin/sh + +# set an alias with alias drc="sudo dopenrc-runlevel" + +run_folder=/etc/runlevels +runlevel="$(find "$run_folder" -mindepth 1 -maxdepth 1 -type d | sed 's:.*/::' | dmenu -p "Runlevel: ")" +openrc "$runlevel"