diff options
| author | realtradam <[email protected]> | 2023-08-14 18:16:08 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2023-08-14 18:16:08 -0400 |
| commit | 440f126691c42e45b7c85e130c0bec9f6a8ab0df (patch) | |
| tree | 38f04bf592476ef202eb30b6dbfbcae99ff33081 /config_edit | |
| download | Scripts-master.tar.gz Scripts-master.zip | |
Diffstat (limited to 'config_edit')
| -rwxr-xr-x | config_edit | 25 |
1 files changed, 25 insertions, 0 deletions
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 + + |
