From 440f126691c42e45b7c85e130c0bec9f6a8ab0df Mon Sep 17 00:00:00 2001 From: realtradam Date: Mon, 14 Aug 2023 18:16:08 -0400 Subject: init --- config_edit | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 config_edit (limited to 'config_edit') diff --git a/config_edit b/config_edit new file mode 100755 index 0000000..0aa1b03 --- /dev/null +++ b/config_edit @@ -0,0 +1,25 @@ +#!/bin/bash +# simple dmenu config editor for archbang +# poorly written by Mr Green +# + +# configs you can edit +choices="mirrorlist\npacman\nlocales\nopenbox-rc\nopenbox-menu" + +# dmenu to give prompt and choices +chosen=$(echo -e "$choices" | dmenu -fn 'Sans Mono-10' -nb '#000000' -nf '#FFFFFF' -sb '#96A79F' -sf '#EEEEEE' -i -p "Select config file to edit..." ) + +# terminal command +comm="lxterminal -e nano" + +opath="~/.config/openbox" + +case "$chosen" in + mirrorlist) sudo ${comm} /etc/pacman.d/mirrorlist ;; + pacman) sudo ${comm} /etc/pacman.conf ;; + locales) sudo ${comm} /etc/locale.gen;; + openbox-rc) ${comm} ${opath}/rc.xml ;; + openbox-menu) ${comm} ${opath}/menu.xml ;; +esac + + -- cgit v1.2.3