Recently Written · git

dmenu-scripts

Ask for things

git clone https://github.com/equwal/dmenu-scripts

Log | Files | Refs


dopenrc-runlevel (249 bytes)

1 #!/bin/sh
2 
3 # set an alias with alias drc="sudo dopenrc-runlevel"
4 
5 run_folder=/etc/runlevels
6 runlevel="$(find "$run_folder" -mindepth 1 -maxdepth 1 -type d  | sed 's:.*/::' | sort -h | dmenu -p "Runlevel: ")"
7 [ -n "$runlevel" ] && openrc "$runlevel"