From 03e717ee4176499030b18141229a0ccccff20509 Mon Sep 17 00:00:00 2001 From: dcarrillo Date: Sun, 19 Jan 2020 19:33:39 +0100 Subject: [PATCH] Rename install.sh to config.sh and add a parameter to dump dconf configs --- install.sh => config.sh | 32 ++++++++++++++++++++++++++++---- dconf/dash-to-panel.ini | 3 ++- dconf/topiconsplus.ini | 4 ++++ 3 files changed, 34 insertions(+), 5 deletions(-) rename install.sh => config.sh (53%) diff --git a/install.sh b/config.sh similarity index 53% rename from install.sh rename to config.sh index 295d88d..0847474 100755 --- a/install.sh +++ b/config.sh @@ -2,7 +2,7 @@ set -e -dotfiles() +copy_dotfiles() { echo "[INFO] Installing dot files..." @@ -34,15 +34,39 @@ dconf_loader() echo "" } +dconf_dumper() +{ + if ! command -v dconf > /dev/null 2>&1; then + echo "[WARNING] dconf command not found" + echo "" + return 1 + else + for file in dconf/*; do + dconf_conf=$(grep -E -m1 '^#.+dconf-path=.+$' "$file") + dconf_path=$(echo "$dconf_conf" | cut -f2 -d "=") + + echo "[INFO] Dumping $dconf_path to $(basename "$file")..." + printf "%s\n\n" "$dconf_conf" > "$file" + dconf dump "$dconf_path" >> "$file" + done + fi + + echo "" +} + main() { cd "$(dirname "$0")" - dotfiles - dconf_loader + if [ x"$1" = x"--dump-dconf" ]; then + dconf_dumper + else + copy_dotfiles + dconf_loader + fi cd - > /dev/null } -main +main "$1" diff --git a/dconf/dash-to-panel.ini b/dconf/dash-to-panel.ini index 9fbf9c8..0d1cdec 100644 --- a/dconf/dash-to-panel.ini +++ b/dconf/dash-to-panel.ini @@ -32,9 +32,10 @@ show-activities-button=true show-appmenu=false show-favorites=false show-show-apps-button=false -show-showdesktop-button=false +show-showdesktop-button=true stockgs-keep-dash=true taskbar-position='LEFTPANEL_FIXEDCENTER' +trans-bg-color='#000000' trans-panel-opacity=1.0 trans-use-custom-bg=true trans-use-custom-opacity=true diff --git a/dconf/topiconsplus.ini b/dconf/topiconsplus.ini index 7694627..249adbd 100644 --- a/dconf/topiconsplus.ini +++ b/dconf/topiconsplus.ini @@ -1,4 +1,8 @@ # dconf-path=/org/gnome/shell/extensions/topicons/ + [/] +icon-saturation=0.5 +icon-size=24 icon-spacing=6 +tray-order=1 tray-pos='right'