add labwc to mb-reset script

This commit is contained in:
Daniel Napora 2024-12-29 01:41:57 +01:00
parent 118dc863c3
commit 0150c2c1ab

View File

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
# Daniel Napora 2021-22 <napcok@gmail.com> # Daniel Napora 2021-24 <napcok@gmail.com>
#: mb-reset - reset/update user config files to (current) distro defaults. #: mb-reset - reset/update user config files to (current) distro defaults.
#: It only affects files shipped with Mabox. #: It only affects files shipped with Mabox.
#: Be aware that you may loose your own customizations (if any). #: Be aware that you may loose your own customizations (if any).
@ -26,7 +26,9 @@
#: rightpanel - right panel custom commands #: rightpanel - right panel custom commands
#: allmenus - overvrite all menus, panels and exit dialog #: allmenus - overvrite all menus, panels and exit dialog
#: logout - logout dialog #: logout - logout dialog
#: labwc - labwc session configs
#: mabox-labwc - mabox-labwc session configs
#: waybar - waybar configs
case $LANG in case $LANG in
@ -168,6 +170,20 @@ mkdir -p $HOME/.config/picom/include
rsync -a /usr/share/mabox/common/picom/include/* $HOME/.config/picom/include/ rsync -a /usr/share/mabox/common/picom/include/* $HOME/.config/picom/include/
rsync -a /usr/share/mabox/common/picom/configs/mabox-jaskier.conf $HOME/.config/picom/configs/ rsync -a /usr/share/mabox/common/picom/configs/mabox-jaskier.conf $HOME/.config/picom/configs/
} }
__labwc() {
mkdir -p $HOME/.config/labwc
rsync -a /etc/skel/.config/labwc/* $HOME/.config/labwc/
}
__mabox-labwc() {
mkdir -p $HOME/.config/mabox-labwc
rsync -a /etc/skel/.config/mabox-labwc/* $HOME/.config/mabox-labwc/
}
__waybar() {
mkdir -p $HOME/.config/waybar
rsync -a /etc/skel/.config/waybar/* $HOME/.config/waybar/
}
case "$1" in case "$1" in
-c|check) __compare "$2";; -c|check) __compare "$2";;
@ -185,6 +201,9 @@ case "$1" in
bashrc) __bashrc ;; bashrc) __bashrc ;;
terminator) __terminator ;; terminator) __terminator ;;
picom) __picom ;; picom) __picom ;;
labwc) __labwc ;;
mabox-labwc) __mabox-labwc ;;
waybar) __waybar ;;
-h|--help) __usage ;; -h|--help) __usage ;;
*) __usage ;; *) __usage ;;
esac esac