diff --git a/dconf/dash-to-panel.ini b/dconf/dash-to-panel.ini new file mode 100644 index 0000000..3f5898a --- /dev/null +++ b/dconf/dash-to-panel.ini @@ -0,0 +1,37 @@ +# dconf-path=/org/gnome/shell/extensions/dash-to-panel/ + +[/] +appicon-margin=1 +appicon-padding=1 +dot-color-1='#5294e2' +dot-color-2='#5294e2' +dot-color-3='#5294e2' +dot-color-4='#5294e2' +dot-color-override=false +dot-color-unfocused-1='#5294e2' +dot-color-unfocused-2='#5294e2' +dot-color-unfocused-3='#5294e2' +dot-color-unfocused-4='#5294e2' +dot-size=0 +dot-style-focused='METRO' +dot-style-unfocused='METRO' +focus-highlight-color='#12e2d1' +group-apps=false +group-apps-label-font-color='#dddddd' +group-apps-label-font-size=14 +group-apps-label-font-weight='inherit' +group-apps-label-max-width=0 +hotkeys-overlay-combo='TEMPORARILY' +location-clock='BUTTONSRIGHT' +middle-click-action='QUIT' +panel-position='TOP' +panel-size=22 +shift-click-action='MINIMIZE' +shift-middle-click-action='LAUNCH' +show-activities-button=true +show-appmenu=false +show-favorites=false +show-show-apps-button=false +show-showdesktop-button=false +stockgs-keep-dash=true +taskbar-position='LEFTPANEL_FIXEDCENTER' diff --git a/dconf/tilix.ini b/dconf/tilix.ini index 1ce907d..78793d9 100644 --- a/dconf/tilix.ini +++ b/dconf/tilix.ini @@ -1,5 +1,4 @@ -# dconf dump /com/gexperts/Tilix/ > tilix.ini -# dconf load /com/gexperts/Tilix/ < tilix.ini +# dconf-path=/com/gexperts/Tilix/ [/] enable-wide-handle=false diff --git a/install.sh b/install.sh index 89a3b0d..746bcf9 100755 --- a/install.sh +++ b/install.sh @@ -1,26 +1,50 @@ #!/usr/bin/env bash -cd $(dirname $0) +set -e -echo "Installing dot files..." +function dotfiles() +{ + echo "[INFO] Installing dot files..." -rsync --exclude "dconf/" \ - --exclude ".vscode/" \ - --exclude "install.sh" \ - --exclude "LICENSE" \ - --exclude "README.md" \ - -hla --no-perms . ~ + rsync --exclude "dconf/" \ + --exclude ".vscode/" \ + --exclude "install.sh" \ + --exclude "LICENSE" \ + --exclude "README.md" \ + -hla --no-perms . ~ -echo "" + echo "" +} -if which dconf >/dev/null 2>&1; then - echo -e "[INFO] Loading tilix config..." - dconf load /com/gexperts/Tilix/ < dconf/tilix.ini -else - echo "[WARNING] dconf command not found" -fi +function dconf_loader() +{ + local file + local dconf_path -echo "" + if ! which dconf > /dev/null 2>&1; then + echo "[WARNING] dconf command not found" + echo "" + return 1 + else + for file in dconf/*; do + echo -e "[INFO] Loading $(basename $file) config..." + dconf_path=$(egrep -m1 '^#.+dconf-path=.+$' $file | cut -f2 -d "=") + dconf load $dconf_path < $file + done + fi -cd - > /dev/null + echo "" +} + +function main() +{ + cd $(dirname $0) + + dotfiles + dconf_loader + + cd - > /dev/null +} + +main