mb-reset update

master
Daniel Napora 2021-04-24 20:18:07 +02:00
parent dc1b4a6ce4
commit f7ae2614a3
1 changed files with 19 additions and 4 deletions

View File

@ -5,15 +5,19 @@
#: Usage: mb-reset option #: Usage: mb-reset option
#: #:
#: Options: #: Options:
#: obrcxml - rc.xml default OpenBox configuration file
#: obautostart - default autostart file
#: bashrc - bash config file (~/.bashrc)
#: terminator - terminator config
#: conky - overwrite conky config files in ~/.config/conky/
#: tint2 - overwrite tint2 panel config files in ~/.config/tint2/ #: tint2 - overwrite tint2 panel config files in ~/.config/tint2/
#: jgthemes - overwrite menu/sidepanels color schemes in ~/.config/mabox/jgobthemes/ #: jgthemes - overwrite menu/sidepanels color schemes in ~/.config/mabox/jgobthemes/
#: mainmenu - overwrite main menu files (favorites.csv) #: mainmenu - overwrite main menu files (favorites.csv)
#: leftpanel - left panel custom commands #: leftpanel - left panel custom commands
#: rightpanel - right panel custom commands #: rightpanel - right panel custom commands
#: logout - logout dialog #: logout - logout dialog
#: obrcxml - rc.xml default OpenBox configuration file
#: obautostart - default autostart file
#: conky - overwrite conky config files in ~/.config/conky/
case $LANG in case $LANG in
pl*) LNGDIR="pl";; pl*) LNGDIR="pl";;
@ -72,7 +76,8 @@ rsync -a /usr/share/mb-jgtools/jgobthemes/* $HOME/.config/mabox/jgobthemes/
} }
__conky() { __conky() {
rsync -a /usr/share/mabox/lang/$LNGDIR/.config/conky/*conkyrc $HOME/.config/conky/ rsync -a /usr/share/mabox/lang/$LNGDIR/.config/conky/* $HOME/.config/conky/
killall -SIGUSR1 conky
} }
__maboxthemes() { __maboxthemes() {
@ -87,6 +92,14 @@ __obautostart() {
rsync -a /usr/share/mabox/common/autostart $HOME/.config/openbox/ rsync -a /usr/share/mabox/common/autostart $HOME/.config/openbox/
} }
__bashrc() {
rsync -a /usr/share/mabox/common/.bashrc $HOME/
}
__terminator() {
rsync -a /usr/share/mabox/common/terminator/* $HOME/.config/terminator/
}
case "$1" in case "$1" in
"allmenus") __allmenus ;; "allmenus") __allmenus ;;
"mainmenu") __mainmenu ;; "mainmenu") __mainmenu ;;
@ -99,6 +112,8 @@ case "$1" in
"maboxthemes") __maboxthemes ;; "maboxthemes") __maboxthemes ;;
"obrcxml") __obrcxml ;; "obrcxml") __obrcxml ;;
"obautostart") __obautostart ;; "obautostart") __obautostart ;;
"bashrc") __bashrc ;;
"terminator") __terminator ;;
"-h|--help") __usage ;; "-h|--help") __usage ;;
*) __usage ;; *) __usage ;;
esac esac